Problem with TripleDES Decryption
843811Jul 30 2008 — edited Jul 31 2008Hi 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