
BT Mag User Manual
Copyright © 2010-2020, International Technologies & Systems Corp. All rights reserved.
5.2.2. ISO/ABA Data Output Format
•card encoding type (0: ISO/ABA, 4: for Raw Mode)
•track status (bit 0,1,2:T1,2,3 decode, bit 3,4,5:T1,2,3 sampling)
•track 1 unencrypted length (1 byte, 0 for no track1 data)
•track 2 unencrypted length (1 byte, 0 for no track2 data)
•track 3 unencrypted length (1 byte, 0 for no track3 data)
•track 1 masked (Omitted if in Raw mode)
•track 2 masked (Omitted if in Raw mode)
•track 3 data (Omitted if in Raw mode)
•track 1 encrypted (AES/TDES encrypted data)
•track 2 encrypted (AES/TDES encrypted data)
•track 3 encrypted (Only used in Raw mode)
•track 1 hashed (20 bytes SHA1-Xor)
•track 2 hashed (20 bytes SHA1-Xor)
•DUKPT serial number(10 bytes)
5.2.3. Non ISO/ABA Data Output Format
•card encoding type (1: AAMVA, 3: Others)
•track status (bit 0,1,2:T1,2,3 decode, bit 3,4,5:T1,2,3 sampling)
•track 1 length (1 byte, 0 for no track1 data)
•track 2 length (1 byte, 0 for no track2 data)
•track 3 length (1 byte, 0 for no track3 data)
•track 1 data
•track 2 data
•track 3 data
5.3. Description
5.3.1. Track 1, Track 2 and Track 3 Unencrypted Length
This one-byte value is the length of the original Track data. It indicates the number of bytes in
the Track masked data field. It should be used to separate Track 1, Track 2 and Track 3data
after decrypting Track encrypted data field.
5.3.2. Track 3 Unencrypted Length
This one-byte value indicates the number of bytes in Track 3 data field.
5.3.3. Track 1 and Track 2 Masked
Track data masked with the MaskCharID (default is ‘*’). The first PrePANID (up to 6 for BIN,
default is 4) and last PostPANID (up to 4, default is 4) characters can be in the clear
(unencrypted).