Announce two new product: SmartCard Reader Rockey200 and USB2.0 Extension Cable

ROCKEY 200 is a handy and portable USB Smart Card reader that can perform read/write operations on any ISO 7816-1/2/3/4 smart cards which are compatible with protocol T=0 and T=1.

USB2.0 Extension Cable With high speed USB 2.0 devices such as USB token ,USB Card Reader and so on.

Come to try it 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: 24
Joined: Mon Nov 23, 2015 4:52 am
Points: 184
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: 1476
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: 24
Joined: Mon Nov 23, 2015 4:52 am
Points: 184
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: 44
Joined: Thu Apr 06, 2017 8:01 am
Points: 452
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 2 guests

JavaCard OS : Disclaimer