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!

Encrypt message text friendly

843810Jul 8 2003 — edited Jul 9 2003
I have a simple class to make encryption/decryption of string data using a cipher. However, when looking at the crypted text, it's all a bunch of cryptic characters:
Original string: Hello World!
Crypted string: ��?H?�s v���?

The algortihm i'm using is DES provided by javax.crypto. I need to store this text in some email message or other text container and i have problem with certains characters that are not well understood on another machine.

Is there a way to encrypt the string so that it is text friendly, i.e. that it use only letters and numbers to generate the crypted output?
Something like the MIME format.








Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 6 2003
Added on Jul 8 2003
3 comments
154 views