"Rawse",
The JavaRanch system shows that you have been warned at least three times already. Please correct your screen name prior to your next post, or your account may be suspended.
Can any one has a way to decrypt a 3des encrypted string. say for ex: " {3DES}SKbZpRTcR8urG/viVJL1Hw== " can you please provide any info how to do it in java any sample code
First of all, this isn't pure triple DES. Triple DES output is binary data -- not ASCII text. From the "==" ending, I would guess that the binary data has also been Base64 encoded.
Now, I am going to get disagreement here... but you can use the sun.misc.BASE64Decoder class to decode the text back to binary data. (I'll let someone else recommend an external package that is supported)
Once you have the binary data, you can decrypt it with a triple DES cypher. You can get it via...
Also notice that you will need to know what the triple DES key is. This is the equivalent to a password. It is a byte array of length 24. And you will need to know what it is.
One last point, I am only assuming that it is a triple DES follow by a base 64 encode. You need to know exactly how it is encrypted, so you can reverse the process. The triple DES algorithm built into core Java is an "ede". If the process uses an external package, with a different triple DES technique, you will need to use that external package to decrypt.
Henry
[ March 08, 2007: Message edited by: Henry Wong ]