pcsc

Requiring a JavaScript Node.js module in TypeScript (allowJs' is not set)

杀马特。学长 韩版系。学妹 提交于 2019-11-29 01:25:40
I have an Angular2 app inside Electron. Now, I would like to use the @pokusew/pcsclite library to use NFC functionality. This library uses native Node.js modules. When I try to require the library in my component.ts like this: declare var pcsclite: any; var pcsclite = require('../../../node_modules/@pokusew/pcsclite/'); I get and error that says: error TS6143: Module '../..' was resolved to '../../lib/pcsclite.js', but '--allowJs' is not set. On the other hand, if I try to import the library via a <\script>-Tag in the index.html I get an error that says: ZoneAwareError Error: Could not locate

working with IC card reader and SLE5528 smart card

十年热恋 提交于 2019-11-28 10:32:14
问题 Am having an IC contact card reader and SLE5528 smart cards.Am wondering how to get started working with these items really. The reader is being read and i see no effect when i insert the smart card . i also installed the smart card shell of opensmart from http://www.openscdp.org/ but i can't get to read any card reader with it.Am wondering whether it has compatibility issues. Please i know i may have asked the question inappropriately, but am kindly asking anyone there to help me out on this

Communicate with smartcard reader through Android USB host

谁说胖子不能爱 提交于 2019-11-28 07:51:49
I'm trying to send a command to a smart card. I use a Gemalto IDBridge CT30 (PC TWIN reader) and a IDBridge K30 connected to the Android device over USB. I try to send a SELECT APDU command over USB: boolean claim = openedConnection.claimInterface(usbInterface, true); byte[] data = new byte[]{ (byte) 0x00, (byte) 0xA4, (byte) 0x04, (byte) 0x0C, (byte) 0x07, (byte) 0xA0, (byte) 0x00, (byte) 0x00, (byte) 0x01, (byte) 0x18, (byte) 0x45, (byte) 0x4E}; After that I receive an answer: final int dataTransferred = this.openedConnection.bulkTransfer(endPointOut, data, data.length, TIMEOUT_MS); if(!

Smartcard terminal removal : SCARD_E_NO_SERVICE CardException

跟風遠走 提交于 2019-11-26 20:28:55
问题 I am working on an Java application which uses smartcardio to work with smartcard. It must be possible to have one removing its USB card reader and then inserting it again without starting again the applet. I am using the terminals() and waitForChange() methods to detect terminal changes and it is working fine on Linux, MacOS and Win7. But on Windows 8 (and Windows 8 only), after the removal of the last terminal, these methods throw a SCARD_E_NO_SERVICE CardException , and don't detect any

Architectures to access Smart Card from a generic browser? Or: How to bridge the gap from browser to PC/SC stack?

最后都变了- 提交于 2019-11-26 07:58:47
问题 What are the possible client-side architectures to access a local Smart Card from a generic browser (connected to a server through http(s)), preferably from Javascript, with the minimum installation hassle for the end user? The server needs to be able to at least issue APDUs of its choice to the card (or perhaps delegate some of that to client-side code that it generates). I am assuming availability on the client side of a working PC/SC stack, complete with Smart Card reader. That\'s a