smartcard

Read EMV data from Mastercard/VISA Debit/Credit Card [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2020-02-25 09:47: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 5 months ago . I am trying to build an application to read/encode data on Cards, information like PAN, expiry, customer name, PIN etc, So far I could figure out that I need to send APDU commands to read data from Card but there seems to be no clear documentation available as to what commands

Read EMV data from Mastercard/VISA Debit/Credit Card [closed]

我的梦境 提交于 2020-02-25 09:44: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 5 months ago . I am trying to build an application to read/encode data on Cards, information like PAN, expiry, customer name, PIN etc, So far I could figure out that I need to send APDU commands to read data from Card but there seems to be no clear documentation available as to what commands

Pinvoking adwapi.dll - cryptDecrypt and cryptEncrypt functions, weird problem

旧街凉风 提交于 2020-01-25 07:23:06
问题 I am observing wierd behaviour of this function, the string that I want to encrypt contains 14 bytes, if I use the function to send lenght of buffer = 14, it fails ("an internal error" - very descriptive and most helpful error code), but it works when the buffer length (and the buffer itself) is 128 bytes large. I overcame this problem by making a size 128 byte array and I copied the 14 bytes from the plain text (that I wish to encrypt), When I decrypt those bytes, I must once again give the

java SunPKCS11 multiple etokens(smartcards) same time , provider not found error

只愿长相守 提交于 2020-01-24 20:12:25
问题 I am using SSL connection with X509 certificates provided from smartcards. I have 2 identical tokens from athena . I initialise the keystores after I am reading the certificates, but when I am trying to to do the actual connection for the second token I am getting no provider found for my Private key.Connecting using the first token it's not affected, it works. I tried adding different SunPCKS11 provider by specifing the slotIndexList to 1 , the number for the second token given by "slots =

Request Client Certificate

女生的网名这么多〃 提交于 2020-01-23 12:09:35
问题 I've seen a lot of unsolved questions about this. Apparently many developers have gotten past this issue, but I haven't seen any solutions posted. I'm trying to read a smart card (X.509 CAC) for my ASP.NET MVC 5 web app. When I try to pull the certificate information like this: var request = HttpContext.Request; var cert = request.ClientCertificate; The cert has empty values. The problem appears to be I am not presenting the dialog to request user certificate info like I see on other websites

Android NFC: Exception “transceive failed” when using transceive()

北城以北 提交于 2020-01-22 15:38:04
问题 I'm trying to communicate between a Samsung Galaxy S3 and a smartcard that supports NfcA and IsoDep (Mifare DESFire EV1). To do this, I enabled forgeground dispatch and started a task when a tag is discovered. The code in the task looks like this: IsoDep isoDep = IsoDep.get(tag); byte[] selectCommand = { (byte)0x00, // CLA (byte)0xA4, // INS (byte)0x04, // P1 (byte)0x00, // P2 (byte)0x0A, // LC (byte)0x01,(byte)0x02,(byte)0x03,(byte)0x04,(byte)0x05,(byte)0x06,(byte)0x07,(byte)0x08,(byte)0x09,

find certificate on smartcard currently on reader

廉价感情. 提交于 2020-01-19 07:46:30
问题 I am using Visual Studio 2013 (C#) to digitally sign document using certificate from smartcard. I cannot identify certificate currently inserted in the card reader :( Windows copy certificates from all card inserted in the reader and keep it in the store. I want to use just card cuurently in the reader. code I using is public static byte[] Sign(Stream inData, string certSubject) { // Access Personal (MY) certificate store of current user X509Store my = new X509Store(StoreName.My,

Reading HID proxy card in Windows Store app

半世苍凉 提交于 2020-01-16 01:12:10
问题 I'm trying a PoC where in I'm trying to authenticate a user based on their HID card value. I don't have any specific API for the reader. The reader outputs plain number of the card by keyboard emulation. The PoC permits a user to authenticate through username/password or through HID proxy card. To simplify things I wanted to use a hidden TextBox to which the value from HID is read and a corresponding webservice is triggered from TextChanged event. I was unable to do so. Can anyone advice how

How to make an android phone act as Contactless smart card?

萝らか妹 提交于 2020-01-15 07:46:31
问题 I would like to know how to make the android phone act as contactless card to transfer certain data to POS. Is there any specific Intent we should try to catch and how to communicate with that eternal POS via NFC. 回答1: I am afraid it is not directly possible. You need to enable NFC Card emulation which involves recompiling a custom firmware image. I am not aware if beyond Android 2.3.6 emulation is already enabled by default (so Google Wallet can be used). If you want to enable card emulation

Detection of smart card removal and insertion using PCSC in C

拈花ヽ惹草 提交于 2020-01-14 19:14:47
问题 I am using PCSC-lite v1.6.4 for my smartcard based application development. I need a way to detect as soon as smart card is removed from reader and then to detect the insertion into reader so that smartcard will be forced to complete a specific process again. If possible, is there any interrupt/event based way instead of simple polling? 回答1: There is SCardGetStatusChange in WinSCard library. Blocks execution until the current availability of the cards in a specific set of readers changes.