I have two classes, one is main class and another is the implementation of AES.
However, in my AES class i have a method to decrypt a string, but whenever i run it, it g
secretKey
is clearly null.
Other problems:
cipherText
.cipherText
should be a byte[],
not a String
: cipher text is binary, and String
is not a container for binary data.strDecryptedText
should be a local variable, not a member variable.