Encrypting with BouncyCastle and decrypting with openssl
843811May 25 2006 — edited May 30 2006Hi,
I am a novice in the field of encryption/decryption and facing a severe problem. I am trying to encrypt an xml file using bouncycastle with AES algorithm using CBC engine. Now i am trying to decrpt the encrypted file using openssl using the following command:
openssl enc -debug -p -d -aes-256-cbc -k mykey -in /home/encrypted.cfg -out opt.cfg
Running the command displays an error saying: "Bad decrypt". I am not sure what the problem is and I am stuck. Can anybody help me out.
Thanks in advance.