Showing results for 
Search instead for 
Did you mean: 

IDTECH card reader - which part of the encrypted string needs to be submitted?



I have an IDTECH SecureMag card reader that was pre-configured to work with As far as I know, it uses encryption level 3.


I have looked through the support documents and manuals both from and IDTECH but have not found the details I need.


We are planning on writing an API that will send the plain text output of the card reader to I have found the entries in the documentation that tells me where this code needs to go, but what I couldn't find out is which part of the output needs to be submitted.


As far as I know, the encrypted text should start with "02" and end with "03". The entire output does, but not all of it is encrypted. There are the owner's name and the first and last 4 digits of the card number embedded in plain text within the encrypted code.


The example in your documentation only shows hex input, so I am wondering what it actually is that I need to submit to your API - the entire string starting with "02" and ending with "03", or only the part before/after the plain text information?


I am aware that the reader needs to have a key for the decryption to work - it supposedly was already entered before we got it.


Thanks in advance!



I should add that the card reader I have is a USB Keyboard reader, not USB/HID. So this device creates the output like a regular keyboard would.


I don't know if this will make a difference, but I thought I'd add it.



Here is an example string of what the card reader sends back (with a few minor changes to avoid abuse):


02D901801F4F2800039B%*3751*******1356^SMITH/JOHN              ^**********************************?*;3751*******1356=*********************?*E490DA8F8BB96CEC8B1C25AD7933EA11EAA2C15C23D4AC073318AED730FA80B5036BB530D1C144629BB85E98491E697F4642C3CB8EA3B3C7B6A6A5D55D1BACF72B17D7EB136CA14C810B65EA9880493F59D78C4BA1FDB7F6822324DC8DC1F21DC165B139AB18BAAE8AB1004627B470081C844CFB6296B815123D1C1109BC2D9AFDC020CBC9AEEAD863D2C2290077277D32C2B90F2FB526272282C656E21F5D4276379501000233000008224C03

I have looked at the documentation of the card reader, but I can't make heads or tails of it, and I don't know what expects to receive.

Hello @rlund


Normally you would obtain the encrypted data block from the SDK provided by the hardware manufacturer.  I'll check with our integration team about your observations.


Was the specific device you have injected with the Authorize.Net key?



Administrator Administrator



Yes, the device I have has received an key.


I have had trouble finding an SDK from the manufacturer that gives me useful information so far, but I could probably find out the details I need once I know what information I need to supply to you.


I found a program on the manufacturer's site that decrypts the data as far as it can, and does split up the information into Key Value, KSN, and Decrypted Data in HEX Format. I don't know which of this information is needed by you - I was under the impression that everything between the starting "02" and the ending "03" was needed...


If you only need that encrypted data block, I at least have something to look for in the SDK (even though I don't know the programming language it uses).


Someone else I have talked to says you need the KSN information, and if that is correct, how do I add the KSN to the encrypted data - or is that included in the encrypted data?


Then there's the issue of the Device Information - another forum post first talks about how it can be a specific string for every device, and then another answer says that the key needs to be included in it ...


To be honest, I am completely stuck and confused because I have yet to find the correct information I need.


Can you supply me the bits I am missing?


Thanks so much!

Still looking for an answer...


I have managed to pick apart the string from the card reader into its parts, but I still don't know what information you require - track 1, track 2, track 3, ksn, some of them, all of them? And if you require multiple parts, how do they need to be separated and in what order?


Hello @rlund


Can you please confirm the specific model/part number of the device you are using.


You won't be parsing the encrypted data, you must send the entire encrypted data block to Authorize.Net to be decrypted.



The Model # is: IDRE-334133BE.

It's a SecureMag reader in KB mode, so it outputs the masked data as ASCII (see my submitted example).


Please give me a definition of what is considered "the entire encrypted data block" since I have heard too many answers to know what is what anymore...


The data coming from the reader contains 10 bytes of header data (data length, track information, etc.), then track 1 masked, track 2 masked, track 3 encrypted, track 1 and 2 hashes (20 bytes each), then 3 Bytes of checksum and end data.


Out of this, what is considered "the entire encrypted data block" - all of it?



Hi Rlund,


We have implemented the IDTech Shuttle for card-present MPOS payments in our app. Be advised that there are two versions of the IDTech Card Readers on the POS Portal website, one for Dev and one for Production. The devices encrypt the card data at the magentic head with one-way encryption and the key is different between Dev and Prod and this is why you need to have both for testing and deployment.


You do not want to decrypt this data. Below is a sample XML request using AIM method. I've placed the important part relating to your question in red.


Instead of placing the <creditCard> block inside <payment>, you use <encryptedTrackData> instead. You'll leave most of that block alone, as the <DeviceInfo> tells how to decrypt the data. You'll take the encrypted block that the IDTech device spits out and put it inside <EncryptedData><Value>. You'll also need the <retail> block at the bottom. The API documentation will tell you what values to enter there.


<createTransactionRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
     <description>INVOICE DESCRIPTION</description>
      <name>MARINA TAX</name>
      <description>Sales Tax</description>

Thanks for your reply.


I already knew the basics of the XML structure to submit, but what was missing was the Device Info and the Encrypted Data that actually needs to be included.


In your example, it looks as if the entire string that the card reader produces goes into the data section (starting "02" and ending "03"), so that's good to know.


Where did you get the Device Info string, though? I have tried various versions that I found in this forum, but all kept returning "E00061 Device information is not formatted correctly(1)".