apdu

External authentication in DESFire card with ISO 7816-4 APDUs

北城余情 提交于 2021-02-07 04:39:14
问题 I tried to do the authentication process on a DESFire card (resident card) using ISO 7816-4 APDUs. But it always fails. Do I miss anyithing? >>> 00 84 00 00 00 (challenge request - 5 bytes) <<< 15 29 84 E3 6A AA A6 B7 90 00 (response of challenge 10 bytes - OK) >>> 00 82 00 00 10 B5 02 0B 80 4F 95 CB E7 8C A6 4D E9 C1 B1 23 A7 00 (external auth request - 22 bytes) <<< 67 00 (response of external auth - Checking error: Wrong length) Code: // STEP Authentication // send initial authentication

JavaCard 3 in real world?

你。 提交于 2021-02-06 10:19:28
问题 I'm currently working on my diploma work. Part of the work includes development of JavaCard applet for regular SIM cards. First option is to use JavaCard2.X API and use APDU commands to communicate with the applet. This might be very tricky as I need to develop client-app for android (which will be communicate with this applet) and that is so far possible only trough special - not so user friendly - API called Seek-for-android . (if I'm wrong, please correct me) However, I also came across

ACR122U LED controlling

蓝咒 提交于 2020-08-03 09:20:12
问题 Does anybody have any clue how to control the bi-color LED of ACR122U via the method Reader.control() on Android? (library acssmc-1.1.3). I am reading the API and have no idea what the command description means: Example: byte[] command = {(byte) 0xFF, (byte) 0x00, (byte) 0x40, (byte) 0b01110111, (byte) 0x04, (byte) 20, (byte) 30, (byte) 3, (byte) 2}; These things I do not understand: Byte 3 (P2): I cannot figure out how to set that up. Byte 5 (T1): First cycle state duration that is somehow

How to Access Smart Card from a Chrome browser using WebUSB API and PC/SC? [closed]

你。 提交于 2020-08-02 07:27:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago . Improve this question I'm trying to write a web application which needs to exchange messages with a local Smart Card. Currently I'm trying to use WebUSB API to connect the Chrome with the smart card reader, but I'm struggling to use the PC/SC specification. In my researches I

'6985 Conditions of use not satisfied' while sending APDU command to javacard

蓝咒 提交于 2020-04-16 04:26:11
问题 I'm sending below command to javacard but I'm getting this error Env: android app running on galaxy s3 over nfc 6985 Conditions of use not satisfied It would be nice if you let me know what would be cause of this error. byte[] APDU_Command = new byte[]{ (byte)0x80,//CLA (byte)0xD0,//INS (byte)0x01,//P1 (byte)0x00,//P2 //Length (byte)0x21,//Lc //id (byte)31, (byte)32, (byte)33, (byte)34, //number (byte)33, (byte)35, (byte)31, (byte)36, (byte)39, (byte)38, (byte)30, (byte)35, (byte)37, (byte)37

Authentication on website using smart card in python

*爱你&永不变心* 提交于 2020-02-27 22:33:08
问题 So I have a smart card provided by the company which looks like a credit card with a chip. This card logins on a website after the card is inserted into the card reader. Now I have to write a program in python which can read the card and login on that website using Requests module. I tried to find out how to retrieve this authentication data from the card using python script and then use this data but I am partially successful. I installed the pyscard : from smartcard.System import readers

Authentication on website using smart card in python

為{幸葍}努か 提交于 2020-02-27 22:32:08
问题 So I have a smart card provided by the company which looks like a credit card with a chip. This card logins on a website after the card is inserted into the card reader. Now I have to write a program in python which can read the card and login on that website using Requests module. I tried to find out how to retrieve this authentication data from the card using python script and then use this data but I am partially successful. I installed the pyscard : from smartcard.System import readers

Developing a smartcard reader in Android

旧巷老猫 提交于 2020-02-26 08:21:10
问题 We developed a prototype board with a microcontroller, which can communicate with a SmartCard (It can read the ATR, issue and read responses to APDU commands, etc).Now I want to use this hardware with an Android phone or tablet. Our board has a USB connection, through which we can read and write to the MCU via Android. The end goal is to have a functioning smartcard reader on the Android platform with PKCS #11 support and provide a library to the end-users of the SmartCard reader so they can

Can't exchange data between Android phone and Arduino with NFC module, using HCE

你离开我真会死。 提交于 2020-01-23 03:27:06
问题 Please, I need any help to solve my problem. I can't exchange data normally between Android (4.4.2) phone and Arduino with NFC module, using HCE. I took example from Android samples, and slightly changed to return just IMEI number. public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) { if (Arrays.equals(SELECT_APDU, commandApdu)) { String data = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); return ConcatArrays(data.getBytes(), SELECT_OK_SW); }

APDU Write block commands on mifare classic

℡╲_俬逩灬. 提交于 2020-01-13 20:27:53
问题 I have been trying to write some data to my mifare classic cards. first I send these two commands which returns 90 00: Load Mifare Keys: FF 82 20 01 06 FF FF FF FF FF FF Authenticate: FF 86 00 00 05 01 00 01 60 01 now I can write commands to sector 0 and block 1 + 2 ff d6 00 01 10 14 01 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 ff d6 00 02 10 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 03 E1 i mistakenly overwritten block 3 a few times rendering this sector unreadable it seems: if I send the