Page 1 of 1

3DES Encryption

Posted: Sat Jan 28, 2017 10:53 am
by Methen
In my work I need to send some encrypted sms message to server. And I want to use two keys burned in SIM and get them and then encrypt with 3DES 2 keys. Now my question is how to read the keys from sim? Any help? Thanks a bunch.

Re: 3DES Encryption

Posted: Sun Jan 29, 2017 8:37 am
by chaholic
Firstly, you should know where are the keys located. Usually the keys are stored on EFs. Regarding which EFs and what access conditions, you should ask SIM card provider.

Re: 3DES Encryption

Posted: Sun Jan 29, 2017 10:39 am
by tay00000
I would be surprised if they would give up their keys. What they might implement if they are using JavaCard is the RMI method with some API interface or set the Cipher (by the SIM card vendor) to enable sharing so that you can share the key's usage but you are unlikely to receive the actual key.

Approach whoever supplied the SIM card (or relevant authorities) whether they have some API or APDU calls.

Re: 3DES Encryption

Posted: Mon Jan 30, 2017 9:12 am
by Methen
Do you have any sample code on this?

Re: 3DES Encryption

Posted: Tue Jan 31, 2017 1:42 am
by chaholic
Sorry, I don't have any sample on 3DES. But you can refer to 3DES sample implemented on javacard.

Re: 3DES Encryption

Posted: Tue Aug 08, 2017 11:37 pm
by deepanshsinghal
https://javacardos.com/wiki/javacard-api-samples/des

check the above link, i hope it is useful for you for 3DES.