IDTech Augusta S

The Augusta S is a secure EMV chip and magnetic stripe reader. It is available in USB-HID or USB-KB configuration and uses common HID drivers. It supports TDES and AES encryption of sensitive data with DUKPT key management. Manufacturer (ID Tech) provides .NET SDK, that facilitates interface between Windows Form applications, the device and payment application.

Magnetic Stripe Read

MSR data is returned as byte stream.

023201801F4F2800A39B252A353431332A2A2A2A2A2A2A2A343131315E444920544553542F4341524420303420202020202020202020205E2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A3F2A3B353431332A2A2A2A2A2A2A2A343131313D2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A3F2A6F0F25415970287199A844F416AE153B45F3838F6FA0FEDA6399AF0DB5E23880335FA51120A7EC89CA3D946AD27FF773C32D1D90F462EEDD17173E2E373895FAB6C4CCEB83ACEF900B81FAFBC25E87291BAB6D5740844AC8AF35B88EBA06BDC359DC6128B2F0867556C5CDA29CCBD1B86BD8835E2796531E00000000000000000000000000000000000000000000000000000000000000000000000000000000373136543439343031306299490000000A0000022B2303

This data is parsed as follows:

CharsValueDescription
1-202Start of transmission (STX)
3-63201Total Data Length (low, high byte) of card data. It is 0x0132 or 306 characters in decimal.
7-880Card Encoding type (ISO/ABA, new format)
9-101FTrack status (track1 and track2 are good). Binary 0001 1111 is interpreted as follow:
Bit 7: 0=reserved for future use
Bit 6: 0=no “optional bytes length” is present
Bit 5: 0=no track3 sampling data
Bit 4: 1=track2 sampling data exists
Bit 3: 1=track1 sampling data exists
Bit 2: 1=track3 decode succeeded
Bit 1: 1=track2 decode succeeded
Bit 0: 1=track1 decode succeeded
11-124FUnencrypted track1 length (79 bytes)
13-1428Unencrypted track2 length (40 bytes)
15-1600Unencrypted track3 length (not present)
17-18A3Clear/masked data sent status. Binary 1010 0011 is interpreted as follow:
Bits 0,1,2: 011 = track1 and 2 are sent, track3 is not;
Bit 3: 1 = fixed key, 0 = DUKPT key management;
Bit 4: 0=TDES; 1, if AES
Bit 5: 1=Chip present on card (Card service code starts with ‘2’ or ‘6’)
Bit 6: 0= Data Encryption Key was used; 1, if PIN Encryption Key was used
Bit 7: 1=Device Serial Number is included; 0= is not
19-209BEncrypted data sent status. Binary 1001 1011 is interpreted as follow:
Bits 0,1,2 = track1 and 2 are sent, track3 is not;
Bits 3,4,5 = track1 and 2 dummy hashes are sent, track3 is not;
Bit 6: 0 = session ID is not included
Bit 7: 1=Key Sequence Number (KSN) is included
21-178252A35...2A3F2A

Hex string of masked track1 data. As a text string:

%*5413********4111^DI TEST/CARD 04           ^*******************************?*
179-2583B3534...2A3F2A

Hex string of masked track2 data. As a text string:

;5413********4111=********************?*
259-4186F0F25...5E8729

Track1 encrypted data. Total length is 80 bytes: real length 79 is rounded up to 8 bytes = 80 bytes. Decrypted Data in ASCII (1 zero byte padded at the end):

%B5413330089604111^DI TEST/CARD 04           ^25122010123409172              ?C
419-4981BAB6D...96531E

Track2 encrypted data. Total length is 40 bytes: real length 40 is rounded up to 8 bytes = 40 bytes. Decrypted Data in ASCII (no zero bytes padded at the end):

;5413330089604111=25122010123409172000?6
499-538000000...000000Track1 dummy hash data (20 zero bytes)
539-578000000...000000Track2 dummy hash data (20 zero bytes)
579-598373136...30313010 bytes of device serial number. As a text string: 716T494010
599-618629949...00000210 bytes of Key Sequence Number (KSN)
619-6202BCheckLRC - one byte Exclusive-OR sum calculated for all data bytes
621-62223CheckSum - one byte Sum calculated for all data bytes
623-62403End of transmission (ETX)

EMV Data

Transaction data from chip-card interactions (EMV data) is returned primarily as TLV (tag-length-value) triplets.

ID Tech transaction data consists of mix industry-standard EMV tags and proprietary ID Tech tags. Tag value is encoded as follow:

  • Byte 1: First (and possibly the only) value of the Tag. If the bottom 5 bits are ON, then next byte is also part of the tag. In other words:
    (1stByte & 0x1F == 0x1F) // TRUE means more tag bytes follow
  • Byte 2..n (if necessary): If the most significant bit is ON, then next byte is also part of the tag. In other words:
    (Byte & 0x80 == 0x80) // TRUE means more tag bytes follow

The top bits of the tag length byte have special meaning:

  • If the most significant bit of the length byte is OFF, then byte represent the byte length of data to follow. Otherwise, if the bit is ON, then the lower nibble specifies how many following bytes specifies the length of the data to follow. For example, if the length byte is 84, the most significant bit is 1, the lower nibble is 4. Thus, the number of data length bytes is 4.
  • If bit 7 is set, bits 5 and 6 of the tag length byte are used in a special way:
    • Bit 6 will be set, if data is encrypted.
    • Bit 5 will be set, if data is masked (i.e. track data)

The following table lists IDTech proprietary tags for encrypted and/or masked data:

Tag Data
5A Masked or encrypted packed PAN
56 Masked or encrypted packed track1 data
57 Masked or encrypted packed track2 data
5F20 Hex string of cardholder name
5F24 Packed card expiration Date (YYMMDD)
5F30 Card service code
9F1F Hex string of encrypted track1 discretionary data
9F20 Hex string of encrypted track2 discretionary data
9F6B Packed encrypted track2 data
FFEE13 Packed encrypted track1 data
FFEE14 Packed encrypted track2 data
DFEE12 10 bytes hex string of Key Sequence Number (KSN)
DFEE26 Encryption Status Info

Example

02b70006001000dfee26022000dfee120a6299490000000000000657a1124147cccccccc6611d2007201cccccccccccc57c118e8e8b8c318cee547e6bf4529d23056c74bd49b8451a10daa5aa1084147cccccccc66115ac11073314e66ec187ad0b27bd6006efa361e5f3401015f20134b415341544b494e2f414c4558414e444552205f24032007319f20005f25031607015f2d02656e500b56495341204352454449544f07a00000000310108407a0000000031010dfee230020d003

This data is parsed as follows:

CharsValueDescription
1-202Start of transmission (STX)
3-14b70006001000Ignore.
15-20dfee26Encryption Status Info Tag
21-2202The tag data length (two byes)
23-262000The tag data
27-32dfee12KSN tag
33-340aThe tag data length (0x0A or 10 decimal)
35-54629949...000006KSN value
55-5657Track2 data tag
57-58a1The tag length. Bit 7 is 1, bit 6 is 0, bit 5 is 1, lower nibble is 1. Next byte represents byte length of masked data to follow.
59-6012Actual data length (Hex 12 or 18 bytes)
61-964147cc...ccccccMasked packed track2 data. ‘C’ is masking character
97-9857Track2 data tag
99-100c1The tag length. Bit 7 is 1, bit 6 is 1, bit 5 is 0, lower nibble is 1.
Next byte represents byte length of encrypted data to follow.
101-10218Actual data length of tags data. Hex 18 is 24 decimal.
103-150e8e8b8...a10daa

Encrypted track2. If decrypted, it gives as the following string:

57124147098628916611d200720116205903901f00000000

Data represents tag 57 with length byte 12 (18 bytes). Data starts with byte 41:

4147098628916611d200720116205903901f

Replacing ‘d’ with ‘=’ and removing ‘f’:

4147098628916611=200720116205903901
151-1525aCard PAN tag
153-154a1The tag length. Bit 7 is 1, bit 6 is 0, bit 5 is 1, lower nibble is 1
Next byte represents byte length of masked data to follow
155-15608Byte length of masked PAN data
157-1724147cc...cc6611Masked packed PAN data. ‘C’ is the masking character
173-1745aCard PAN tag
175-176c1The tag length. Bit 7 is 1, bit 6 is 1, bit 5 is 0, lower nibble is 1.
Next byte represents byte length of encrypted data to follow.
177-17810Actual data length of tags data. Hex 10 is 16 decimal.
179-21073314e...fa361e

Encrypted PAN. If decrypted, it gives as the following string:

5a084147098628916611000000000000

Data represents tag 57 with length byte 08 (8 bytes). Data starts with byte 41:

4147098628916611
211-2145f34EMV tag – Application PAN Sequence Number
215-21601The tag length
217-21801The tag value
219-2225f20EMV tag – Cardholder Name
223-22413The tag length
225-2624b4153...455220The tag value: KASATKIN/ALEXANDER
263-2665f24EMV tag – Application Expiration Date
267-26803The tag length
269-274200731The tag value
275-2789f20EMV tag – Track2 discretionary data
279-28000The tag length. No value follows
281-2845f25EMV tag – Application Effective Date
285-28603The tag length
287-292160701The tag value
293-2965f2dEMV tag – Language Preference
297-29802The tag length
299-302656eThe tag value
303-30450EMV tag – Application Label
305-3060bThe tag length
307-328564953...444954The tag value (VISA CREDIT)
329-3304fEMV tag – Application Identifier
331-33207The tag length
333-346a00000...031010The tag value
347-34884EMV tag – Dedicated File Name
349-35007The tag length
351-364a00000...031010The tag value
365-372dfee2300Ignore
373-37420CheckLRC - one byte Exclusive-OR sum calculated for all data bytes
375-376d0CheckSum - one byte Sum calculated for all data bytes
377-37803End of transmission (ETX)

Did this page help you?