Here's what I changed the decrypt method to:
public String decrypt(String strCipherText)
{
try
{
aesCipher.init(Cipher.DECRYPT_MODE, secretKey);
byteCipherText = new...
Type: Posts; User: wmd
Here's what I changed the decrypt method to:
public String decrypt(String strCipherText)
{
try
{
aesCipher.init(Cipher.DECRYPT_MODE, secretKey);
byteCipherText = new...
I just tested with something like:
String encryptedString = encrypt("test123");
String decryptedString = decrypt(encryptedString);
Eitherway, I managed to solve the problem myself. I just...
Can anyone see anything that's obviously wrong with my decrypt method in the code below? I'm not getting any errors during any part of the code, it's just that the decrypted data is coming out as...