Christmas is coming!

To celebrate the new year and thank for the support from all our dear customers, Christmas promotional activity is being held in JavaCardOS online store.

During the event, you can enjoy many promotional activities - High Discount on JavaCardOS products,Lucky Draw,Double forum Points.

Come to choose your own Christmas gift and try your luck now!

3DES Encryption

Algorithm School

Moderator: UNKNwYSHSA

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

3DES Encryption

Postby 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: 23
Joined: Mon Nov 23, 2015 4:52 am
Points: 176
Contact:

Re: 3DES Encryption

Postby 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: 112
Joined: Tue Sep 27, 2016 10:58 am
Points: 1460
Contact:

Re: 3DES Encryption

Postby 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

Postby Methen » Mon Jan 30, 2017 9:12 am

Do you have any sample code on this?

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

Re: 3DES Encryption

Postby 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: 43
Joined: Thu Apr 06, 2017 8:01 am
Points: 416
Contact:

Re: 3DES Encryption

Postby 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.


Return to “Algorithm School”

Who is online

Users browsing this forum: No registered users and 1 guest

JavaCard OS : Disclaimer