ID TECH SREDKey 2 Integration Manual
Page | 23
9.
Data Output Format
The SREDKey 2’s default output mode is the enhanced MagStripe reader and key-in format.
<STX><DataLenL><DataLenH><Card Data><CheckLRC><CheckSum><ETX>
<STX> = 02h, <ETX> = 03h
•
<LenL><LenH>
is a two-byte length of
<Card Data>
.
•
<CheckLRC>
is a one byte Exclusive-OR sum calculated for all
<Card Data>
.
•
<CheckSum>
is a one-byte sum value calculated for all
<Card Data>
.
9.1.
ID TECH Swipe Data Original Encryption Output Format
9.1.1.
ISO/ABA Card
Field
Description
0
STX (02)
1
Data Length low byte
2
Data Length high byte
3
Card Encode Type (note 1)
4
Track 1-3 Status (note 2)
5
T1 clear/mask data length
6
T2 clear/mask data length
7
T3 clear/mask data length
8
T1 clear/mask data
9
T2 clear/mask data
10
T3 clear/mask data
11
T1, T2, T3 encrypted data
12
20 bytes 0x00 (if T1 encrypted, T1 null hash data)
13
20 bytes 0x00 (if T2 encrypted, T2 null hash data)
14
20 bytes 0x00 (if T3 encrypted, T3 null hash data)
15
KSN (10 bytes)
16
CheckLRC
17
CheckSum
18
ETX (03)
Note
: Field 10 Present only ISO-4909 card.