TripleDes(3des) .Net Java compatibility
843811Aug 14 2008 — edited Jun 15 2009Encryption steps in .net
1) Hex key to byte[]
2) raw password to byte[]
3) Use TripleDes in default mode and padding to get the Encrypted Password
4) enocde the Password to Base64.
Decryption steps in java
1)Hex key to byte[]
2) decode the base64 password to byte[]
3)Use TripleDes Cipher to decrypt the decoded password with same mode and padding settings as in .Net
Doesn't work!!!
possible issues
1)difference in byte representation in Java and .Net
Is there a solution if we had the do decrypt existing password (encrypted in .Net as above)
Thanks,
mc