MagTek Bluetooth MagneSafe V5 Swipe Reader User Manual

Page 81

Advertising
background image

Appendix D. Command Examples

73

%[Tk1 Masked Data]?
;[Tk2 Masked Data]?
+[Tk3 Masked Data]?
|[Reader Encryption Status]
|[Tk1 Encrypted Data (including TK1 SS and ES)]
|[Tk2 Encrypted Data (including TK2 SS and ES)]
|[Tk3 Encrypted Data (including TK3 SS and ES)]
|[MagnePrint Status]
|[Encrypted MagnePrint data]
|[Device serial number]
|[Encrypted Session ID]
|[DUKPT serial number/counter]
|[Clear Text CRC]
|[Encrypted CRC]
|[Format Code]
<ENTER>

Using this information, we can put the respective data from the Raw Data into the
structure:

%B5452000000007189^HOGAN/PAUL ^08040000000000000000000?
;5452000000007189=080400000000000000?
+5163000050000445=000000000000?
|0600
|C25C1D1197D31CAA87285D59A892047426D9182EC11353C051ADD6D0F072A6CB3436560B3071FC1FD11D9F7
E74886742D9BEE0CFD1EA1064C213BB55278B2F12
|724C5DB7D6F901C7F0FEAE7908801093B3DBFE51CCF6D483E789D7D2C007D539499BAADCC8D16CA2
|E31234A91059A0FBFE627954EE21868AEE3979540B67FCC40F61CECA54152D1E
|A1050000
|8628E664C59BBAA232BA90BFB3E6B41D6F4B691E633C311CBE6EE7466B81196EC07B12648DCAC4FD7FD0E21
2B479C60BAD8C74F82F327667
|
|21685F158B5C6BE0
|FFFF9876543210E00008
|B78F
|
|0000

Note: The Device Serial Number field is empty because the DSN has not
been set.

Note: The Encrypted CRC field is empty because the default configuration
is to send it empty.

Note that at Security Level 3 the following fields are represented as
ASCII characters:
Masked Track data
Format Code

Note that all other fields are represented as Hexadecimal data, that is
two ASCII characters together give the value of a single byte.

The data is coherent structurally, let's work on decryption.

First, we note the KSN = FFFF9876543210E00008, counter is 8.
For the standard ANSI key example, counter 8 gets us the following
Encryption Key: 27F66D5244FF621E AA6F6120EDEB427F

Advertising