Encrypt and decrypt with AES and Base64 encoding
Your Order for encrypt: getBytes, encrypt, encode, toString Your Order for decrypt(Wrong*): getBytes, decrypt, decode, toString Two problems: As someone already mentioned you should reverse the order of operations for decryption. You are not doing that. encrypt gives you 16 bytes, encode 24 bytes, but toString gives 106 bytes. Something to do with invalid chars … Read more