beautypg.com

MagTek iDynamo MagneSafe V5 User Manual

Page 50

background image

iDynamo MagneSafe V5 Communication Manual

44

|[MagnePrint Status]
|[Encrypted MagnePrint data]
|[Device serial number]
|[Encrypted Session ID]
|[DUKPT serial number/counter]
|[Clear Text CRC]
|[Encrypted CRC]
|[Format Code]


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: 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 that the KSN = FFFF9876543210E00008 and the counter = 8.
For the standard ANSI key example, counter 8 gets us the following Encryption Key:
27F66D5244FF621E AA6F6120EDEB427F

There are five encrypted fields:

1.

Track 1 encrypted data

2.

Track 2 encrypted data

3.

Track 3 encrypted data

4.

Encrypted MagnePrint data

5.

Encrypted Session ID


We will show the decryption of each of these fields in detail. For convenience, each
will be grouped as blocks of eight bytes.

Track 1 encrypted data
Block # 1 C25C1D1197D31CAA