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 and decrypting with PBEWithMD5AndDES

843810Apr 29 2004 — edited Apr 30 2004
Given the same passphrase, salt, iteration count, keysize, and message to encrypt, will PBEWithMD5AndDES produce the same encrypted message? I mean, is it going to generate the same key every time?

If not, how can it be done?

I am using code from http://www.javaalmanac.com/egs/javax.crypto/PassKey.html?l=rel, but its producing different encrypted messages at different times.


Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 28 2004
Added on Apr 29 2004
6 comments
1,912 views