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!

Implementing DES encryption in Java

843811Jan 5 2010 — edited Jan 8 2010
Hi there everyone,

I had been thinking how to implement DES encryption for my program, but failed so far thus I would like to seek advise from the experts.

So far, i was planning to grab data and save it into a .txt file. For example, a user may input "155.55" in a JTextField and I am supposed to encrypt it before saving it into a .txt file.

However, I am not sure how I can convert my data into a format that would be acceptable for the DES encryption because I am not familiar with how Java is dealing with the data format. ( for example, if my data was "155.55" in "double", I do not understand how I can convert it to machine language, bits, and thus running it into the 64-bit DES encrpytion. )

Are the variable values saved in ASCII value, or am I not understanding how Java is working? Please assist me. Thank you.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2010
Added on Jan 5 2010
3 comments
433 views