Hi,
In my application, data is being created by an ETL job. It uses Oracle function to do the encryption. Below is the encryption and digest used by the Oracle function:
DBMS_CRYPTO.ENCRYPT_AES128
+ DBMS_CRYPTO.CHAIN_CBC
+ DBMS_CRYPTO.PAD_PKCS5;
My java code uses hibernate to read the encrypted values. I am using the "Bouncy castle" provider. I tried with all algorithm combination in that provider 'PBEWITHMD5AND128BITAES-CBC-OPENSSL'. Nothing is working out. I am not able to decrypt that data. I always get an exception saying 'Decryption not possible.'.
Also, in Oracle, while calling DBMS_CRYPTO.DECRYPT function, they also pass a 'key' value. How do I pass it in Jasypt. Is it 'setPassword' method?.
I would really appreciate your help.
thanks,
Arun.