beautypg.com

MagTek Bluetooth MagneSafe V5 Swipe Reader User Manual

Page 78

background image

Bluetooth MagneSafe V5 Swipe Reader


70

00 01 1E ; Get current Pre Card String (should return "")
Request : CMND=00, LEN=01, DATA=1E
Response : RC= 00, LEN=00, DATA=

00 01 1F ; Get current Post Card String (should return "")
Request : CMND=00, LEN=01, DATA=1F
Response : RC= 00, LEN=00, DATA=

00 01 20 ; Get current Pre Track String (should return "")
Request : CMND=00, LEN=01, DATA=20
Response : RC= 00, LEN=00, DATA=

00 01 21 ; Get current Post Track String (should return "")
Request : CMND=00, LEN=01, DATA=21
Response : RC= 00, LEN=00, DATA=

00 01 22 ; Get current Termination String (should return "")
Request : CMND=00, LEN=01, DATA=22
Response : RC= 00, LEN=01, DATA=0D

00 01 2C ; Get current Format Code
Request : CMND=00, LEN=01, DATA=2C
Response : RC= 00, LEN=04, DATA=31 30 30 30


Example 3: Authentication. A reader already in Security Level 3 or 4 is put into the Authenticated
Mode, allowed to stay in that mode for a time, then Deactivated.

; This example demonstrates the Authentication Sequence.
; It is not scripted; some of the data is deliberately randomized. This
; makes it impossible for a simple script to produce the correct results.
; As an example it shows all the steps in authentication and deactivation.

; It assumes the reader is at Security Level 4, with the DUKPT KSN
; counter set to 2.

09 00 ; Get current KSN (should be FFFF9876543210E00002)

; Send the Activate Authenticated Mode command (4 minutes)
10 02 00F0
Request : CMND=10, LEN=02, DATA=00 F0
Response : RC= 00, LEN=1A, DATA=FF FF 98 76 54 32 10 E0 00 03 AA AA AA AA AA AA AA
AA DD DD DD DD DD DD DD DD
|------- Current KSN -------| |---- Challenge 1 ---
-| |---- Challenge 2 ----|
Response : RC= 00, LEN=1A, DATA=FF FF 98 76 54 32 10 E0 00 03 BE 5C 98 35 17 7E 45
2A A7 2D 2D B2 36 BF 29 D2
; Challenge 1 Encrypted: BE5C9835177E452A
; Challenge 2 Encrypted: A72D2DB236BF29D2

; Note that the KSN now ends with a counter of 3!
; Decrypt Challenge 1 using variant of Current Encryption Key
; (Current Encryption Key XOR with F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0)
;
; Current Key 0DF3D9422ACA561A 47676D07AD6BAD05
; XOR F0F0F0F0F0F0F0F0 F0F0F0F0F0F0F0F0
; = FD0329B2DA3AA6EA B7979DF75D9B5DF5
;