I’m new to Frida Hook. In this study, I am trying to get the iv key and string methods. I keep getting errors
I’m trying to solve the encrypt method here.
I would be very happy if you could help me on this issue.
private String encrypt(Key key, AlgorithmParameterSpec algorithmParameterSpec, String str) {
try {
Cipher cipher = Cipher.getInstance(CIPHER_AES_GCM_NOPADDING);
cipher.init(1, key, algorithmParameterSpec);
return Base64.encodeAsString(cipher.doFinal(str.getBytes("UTF-8")));
} catch (Exception e2) {
logger.error("Error in encrypting data. ", e2);
return null;
}
New contributor
Mesut ÖZCAN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.