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!

Blowfish/Cookie

843810Nov 12 2002 — edited Nov 15 2002
I am trying to pass some encrypted information as a cookie; a Perl program will read this cookie and decrypt it. I can get an encryption/decryption scheme to work in Java, as long as I leave the encrypted part as a byte. If I convert it to a string (to print to a file, say) and then try to convert that back to a byte and decrypt it, I have no success.

At least, that's what I think is happening. I am using Blowfish in CBC mode and PKCS5 padding (this is at the request of Perl). I am also doing an MD5 hash on the key before I use it. Is there something going on in terms of type conversion when I encrypt/decrypt a file that I'm not aware of?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2002
Added on Nov 12 2002
3 comments
163 views