3DES with 2 Key. Help me...
Hi all...
Maybe my question has been answered in this forum, but i haven't found yet.
i will using 3DES_2Key for 3DES and ALG_DES_CBC_ISO9797_M2 for Cipher in my applet. In the sample code (CryptoTest.java), 3DES_2Key will using 16 byte arrays. But in J2SE, it only has 8 byte (for DES) and 24 byte (for DESede). How can i using 16 byte arrays to make the encryption in host app?
Some people said it just simple. U can add the the first 8 byte to end the 24 byte --> xxxxxxxxyyyyyyyyxxxxxxxx. When i'm using it, it can do the encryption and the decryption but the result is different.
Ex : i encrypt the string "06402010" and it will sent to applet to do the descryption and will be saved in var nim. when i send apdu to read var nim, it give me response 撙:餓? (PS : i convert it to string). Am i wrong?
Can u gave me sample code for using 3DES_2Key in host application and applet?
Thanks...

