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!

converting secretkey to string and string to secretkey

843811Apr 8 2005 — edited Nov 4 2008
Hi, I have written a program which encrypts and decrypts the text.
After encryption is completed, its giving the secret key as follows..
But I think it is not secure as it is showing desedekey as follows.

So, I need to show only b069aa26 (only key) with out showing the algorithm.
I am thinking that it is better to convert this secretkey to string and manipulate it and save it. While at the time of decryption i add the manipulated code to the key and convert to scretkey.. So, please help me to convert secretkey to string as well as string to secretkey.,
thanks in advance.

Encrypted Key : com.sun.crypto.provider.DESedeKey@b069aa26

sridhar reddy gudipalli
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 2 2008
Added on Apr 8 2005
13 comments
814 views