Implementing DES encryption in Java
843811Jan 5 2010 — edited Jan 8 2010Hi 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.