Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

3DES Encryption

Algorithm School

Moderator: UNKNwYSHSA

Methen
Posts: 5
Joined: Wed Dec 21, 2016 11:44 pm
Points :80
Contact:

3DES Encryption

Post by Methen » Sat Jan 28, 2017 10:53 am

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.

chaholic
Posts: 24
Joined: Mon Nov 23, 2015 4:52 am
Points :184
Contact:

Re: 3DES Encryption

Post by chaholic » Sun Jan 29, 2017 8:37 am

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.

tay00000
Posts: 161
Joined: Tue Sep 27, 2016 10:58 am
Points :2324
Contact:

Re: 3DES Encryption

Post by tay00000 » Sun Jan 29, 2017 10:39 am

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.

Methen
Posts: 5
Joined: Wed Dec 21, 2016 11:44 pm
Points :80
Contact:

Re: 3DES Encryption

Post by Methen » Mon Jan 30, 2017 9:12 am

Do you have any sample code on this?

chaholic
Posts: 24
Joined: Mon Nov 23, 2015 4:52 am
Points :184
Contact:

Re: 3DES Encryption

Post by chaholic » Tue Jan 31, 2017 1:42 am

Sorry, I don't have any sample on 3DES. But you can refer to 3DES sample implemented on javacard.

deepanshsinghal
Posts: 44
Joined: Thu Apr 06, 2017 8:01 am
Points :460
Contact:

Re: 3DES Encryption

Post by deepanshsinghal » Tue Aug 08, 2017 11:37 pm

https://javacardos.com/wiki/javacard-api-samples/des

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

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Google [Bot] and 23 guests

JavaCard OS : Disclaimer