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!

re-Converting an encrypted private key(stored as a String) back to Key type

843811Feb 21 2007 — edited Mar 6 2007
Hi - Good day to all :)

I am currently working on an application which involves encrypting a private key
I've used to encrypt a certain set of files. This encrypted private key is stored
(together with other key-value pairs) as a Properties file, which implies that it
is converted to a string (since Properties only accepts strings as key, or values).

How can I convert this stored encrypted private key back to a SecretKey type so
that I can use it to decrypt the set of files I've encrypted?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2007
Added on Feb 21 2007
24 comments
3,072 views