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!

How to supply a secret key

843810Nov 13 2002 — edited Nov 15 2002
My program is a Java application where I read data from different text files. I am encrypting the text files using Triple DES algorithm and distributing the encrypted files with the app. When executing the app, I am decrypting them and using in the app. I have a secret key generated while doing the encryption and I am using this secret key to decrypt the data back.

My question is how do I supply the secret key with the app? Right now I am writing the secret key to a file and distributing the file with the app. What is the preferred way of supplying the secret key?

Bhaskar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2002
Added on Nov 13 2002
11 comments
134 views