Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Encrypting with BouncyCastle and decrypting with openssl

843811May 25 2006 — edited May 30 2006
Hi,

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2006
Added on May 25 2006
11 comments
3,197 views