pcsc

How to send APDU to PCSC reader from web broswer using javascript

拥有回忆 提交于 2019-12-05 06:25:00
问题 Problem: Sending APDUs from webpage to PCSC reader using javascript. I don't have much reputation to comment on a question so I am asking new question. I have tried/searched most of the solutions provided by experts. The solution provided by cslashm in question looks good for my requirement. But, I am not able to execute this solution. Please guide me to make it work or provide some other similar solution. Currently, I am successfully using Java Applet approach which uses signed java applet

Smartcard reader naming

倾然丶 夕夏残阳落幕 提交于 2019-12-05 05:27:06
问题 I have two readers (HID OMNIKEY 5321) in system (every reader performs a different function) reader 1 - "Smart Card Reader 0 " reader 2 - "Smart Card Reader 1 " In my program is set up that "Smart Card Reader 0 " - action 1 "Smart Card Reader 1 " - action 2 but sometimes (without rebooting, perhaps lost contact) reader 1 gets name "Smart Card Reader 1 " reader 2 gets name "Smart Card Reader 0 " and the program does not do what users need. I use SCardGetStatusChange (requires the name of the

Unkown error 0x16 on smartcard reader access

ε祈祈猫儿з 提交于 2019-12-04 13:26:08
I am trying to change the buzzer duration on the ACR1252U. Link to API: http://www.acs.com.hk/download-manual/6402/API-ACR1252U-1.09.pdf According to the API documentation I need the 'E0000028010A' command to change the buzzer status, whereby '0A' marks the duration as 0A*10ms (Page 44). Following Java code is used: public static void main(String[] args) { try { byte[] send = new byte[6]; send[0] = (byte) 0xE0; // Commandclass send[1] = (byte) 0x00; // Protocoll send[2] = (byte) 0x00; // Param 1 send[3] = (byte) 0x28; // Param 2: Buzzerstatus send[4] = (byte) 0x01; // Change Flag send[5] =

Authenticating Ultralight EV1 with PC/SC reader

∥☆過路亽.° 提交于 2019-12-04 12:00:46
I have a problem trying to authenticate an Ultralight EV1 card using a PC/SC reader (specifically an ACR1222L) in Java. I'm able to write and read on an unprotected tag using the corresponding APDUs for ISO 14443-3 tags. However, I can't find a way to run the PWD_AUTH command since it is not part of the 14443-3 standard (or any native command for that matter). Is it possible to run this command (or any native command for that matter)? I have tried sending the following APDU {e0 00 00 24 07 1b ff ff ff ff 63 00} where 1b is the native command, ff ff ff ff is the password and 63 00 is the CRC_A

How to programmatically load a Java card applet ( a .cap file ) using Visual C++/PCSC

自作多情 提交于 2019-12-04 10:46:26
I am currentlly on a project that requires me to load a JavaCard application Applet ( a .cap ) file to a JavaCard. Our framework is based on Visual C++ and PCSC, so we need to load the same applet to a series of JavaCards. Does anyone know how this can be processed? I mean, where should I start. Thanks! You are correct that this is not a trivial job. There are differences between different javacards, but generally you need to do 4 things: initialize secure communications with the card (because many javacards are "global platform" cards they require a secure channel) send a command saying "i

Are there javax.smartcardio analogues on Android?

社会主义新天地 提交于 2019-12-04 10:32:58
Are there javax.smartcardio analogues on Android? but not using Open Mobile API. Thanks! I'm using javax.smartcardio.* as a facade to IsoDep on Android in a project called SCUBA . Note that this is for trancieving APDUs to ISO14443 cards in the field of the NFC chip (in NFC capable Android phones), and not for communicating with SIM or SE. (Main motivation was to be able to use the same JMRTD ePassport reading API jar both on J2SE and Android without changes.) EDIT: If you're interested in communicating with a card in an external reader, have a look at this SCDroid project . Also ACS appears

How to send APDU to PCSC reader from web broswer using javascript

末鹿安然 提交于 2019-12-03 22:27:59
Problem: Sending APDUs from webpage to PCSC reader using javascript. I don't have much reputation to comment on a question so I am asking new question. I have tried/searched most of the solutions provided by experts. The solution provided by cslashm in question looks good for my requirement. But, I am not able to execute this solution. Please guide me to make it work or provide some other similar solution. Currently, I am successfully using Java Applet approach which uses signed java applet along with javascript. Support of java plugin will be discontinued soon from most of the browsers due to

Smartcard reader naming

无人久伴 提交于 2019-12-03 22:15:59
I have two readers (HID OMNIKEY 5321) in system (every reader performs a different function) reader 1 - "Smart Card Reader 0 " reader 2 - "Smart Card Reader 1 " In my program is set up that "Smart Card Reader 0 " - action 1 "Smart Card Reader 1 " - action 2 but sometimes (without rebooting, perhaps lost contact) reader 1 gets name "Smart Card Reader 1 " reader 2 gets name "Smart Card Reader 0 " and the program does not do what users need. I use SCardGetStatusChange (requires the name of the reader) in WinScard.dll What to do? Is there a way to change the name of the reader (firmware, drivers..

C# - Write in Smartcard using PCSC-Sharp

可紊 提交于 2019-12-03 21:45:17
Good day everyone, I would like to ask on how to write in Smartcard. I just rely on the example given on the documentation but it only has read tag. I follow the examples here in https://github.com/danm-de/pcsc-sharp/blob/master/Examples/Transmit/Program.cs using System; using PCSC; using PCSC.Iso7816; namespace Transmit { public class Program { public static void Main() { using (var context = new SCardContext()) { context.Establish(SCardScope.System); var readerNames = context.GetReaders(); if (readerNames == null || readerNames.Length < 1) { Console.WriteLine("You need at least one reader in

How to send APDU to Mifare Classic 1k card?

こ雲淡風輕ζ 提交于 2019-12-03 13:42:55
问题 What I am trying to achieve is to send APDU command to MIFARE Classic 1K card to change its A and B keys. I was able to establish a connection with the card and use a default key ( FFFFFFFFFFFF ) to read block 0 and block 1. I used HID MifareSamples application for it. Now, I would like to change A key from default to something else. I found a solution here, at stackoverflow (Mifare Change KEY A and B) which suggests that I have to send this APDU: New key A = 00 11 22 33 44 55 Access bits not