smartcard-reader

Get UID of Mifare Ultralight with SCL010

蹲街弑〆低调 提交于 2019-11-27 23:13:33
I want get the UID of the Mifare Ultralight NFC tag. In Java I have this code: TerminalFactory factory = TerminalFactory.getDefault(); List<CardTerminal> terminals = factory.terminals().list(); System.out.println("Terminals: " + terminals); CardTerminal terminal = terminals.get(0); Card card = terminal.connect("*"); System.out.println("card: " + card); CardChannel channel = card.getBasicChannel(); ResponseAPDU answer = channel.transmit(new CommandAPDU(0xFF, 0xCA, 0x00, 0x00, 0x00)); byte[] uid = answer.getBytes(); The problem is that I receive two bytes and not the UID. What's the problem? Is

How to link access card reader with PHP?

混江龙づ霸主 提交于 2019-11-27 18:06:41
问题 I want to use an access card reader with PHP. I am doing this to monitor attendance at a college. Is there any intermediate technology which can be used to take the readings from access card reader to the database? 回答1: Likely, this cannot easily be integrated with PHP. Perhaps for a backend API interface via JSON or something, but the card reader interface will need to be something that can run and work with physical hardware. Unless you mean, you already have the readings and want to put it

Set own authentication keys MiFare Classic with APDU C#

社会主义新天地 提交于 2019-11-27 16:56:10
问题 I'm using the SMARTCARD API from CardWerk. How can I change the default key ( (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF ) using an APDU? The APDU consits of a CLASS, an INSTRUCTION, P1, P2. I have been reading documentation but I'm unable to find what parameters do I need to change the actual key to a new one. 回答1: The process for changing the keys of a MIFARE Classic card is like this: Authenticate to the secor for which you want to change the key. Read the

Getting Parser error on request for GPO command for EMV card

天涯浪子 提交于 2019-11-27 09:50:00
I have some issues with the GET PROCESSING OPTIONS (GPO) command for a VISA card. Following is my response to the SELECT command for the VISA application: 6F408407A0000000031010A535500A564953412044454249549F380C9F66049F02069F37049F1A025F2D02656EBF0C1242034761735F550255539F5A0511084008409000 I extracted the following PDOL from this: 9F66049F02069F37049F1A02 I'm not sure about tag 9F66 . My GPO command then looks like this: 80a800000100000001000000001000823DDE7A12400 But I get a parser error as response: 6A80 Your GPO command seems to have quite a lot of issues: 80 A8 0000 01 00000001

Smartcard reader access from a web browser?

大城市里の小女人 提交于 2019-11-27 01:50:23
问题 Is it possible to access a smartcard reader connected to a computer from a web browser running on the same machine, i.e. from an ActionScript, JavaScript or whatsoever script running therein? For example, I read something about the flash.external.ExternalInterface class in ActionScript. Can it be used for accessing a smartcard reader or is the Sandbox impenetrable? 回答1: Q: is it possible to access smartcard reader connected to a computer from a web browser running on the same machine? A: Yes,

Getting Parser error on request for GPO command for EMV card

≯℡__Kan透↙ 提交于 2019-11-26 17:52:25
问题 I have some issues with the GET PROCESSING OPTIONS (GPO) command for a VISA card. Following is my response to the SELECT command for the VISA application: 6F408407A0000000031010A535500A564953412044454249549F380C9F66049F02069F37049F1A025F2D02656EBF0C1242034761735F550255539F5A0511084008409000 I extracted the following PDOL from this: 9F66049F02069F37049F1A02 I'm not sure about tag 9F66 . My GPO command then looks like this: 80a800000100000001000000001000823DDE7A12400 But I get a parser error as