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!

Problem with TripleDES Decryption

843811Jul 30 2008 — edited Jul 31 2008
Hi folks,
while trying to invoke a past licensing module application.. i am facing a problem like
java.security.InvalidKeyException: Wrong algorithm: DESede or TripleDES required...

its like while encryption, to generate symmetric key he uses
this.SymmetricKey = this.keyGenerator.generateKey(); which produces a symmetric key like
com.sun.crypto.provider.DESedeKey@b069bf67

while decryption, he gets the secret key correctly but he uses
SecretKeySpec(key,getKeyGeneratorInstance()) to generate the symmetric key.. which produces
javax.crypto.spec.SecretKeySpec@bd7ba1de

its like i have the secret key... how to generate symmetric key out of it?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 28 2008
Added on Jul 30 2008
14 comments
934 views