I have a string holding some parameters that needs to be encrypted in AES-128 in ECB mode with PKCS7 padding, and then Base-64 encoded.
My code base is Java 1.4. Is this possible with Java 1.4 api ?
I have a string holding some parameters that needs to be encrypted in AES-128 in ECB mode with PKCS7 padding, and then Base-64 encoded.
My code base is Java 1.4. Is this possible with Java 1.4 api ?
Yes, you can. You would need a separate library for the base 64 encoding/decoding though. For the encryption you can use Cipher.getInstance("AES/ECB/PKCS5Padding")
. Note that PKCS#5 padding is the same as PKCS#7 padding.