CLOUD
47
X
0
F
R
EFERENCE
M
ANUAL
34
Examples
Load Keys
– Card – Non-Secure
The command to load Mifare key A “
FF FFFFFFFFFF
” is
FF82006006 FFFFFFFFFFFF
Load Keys
– Card – Secure:
If the default AES128 reader is key is
00010203 05060708 0A0B0C0D 0F101112
then
the following explains the steps needed to calculate the key for secure mode.
Default reader key
:
00010203 05060708 0A0B0C0D 0F101112
Mifare Key to be loaded
:
FFFFFFFF FFFF
Mifare key after padding
:
FFFFFFFF FFFF0A0A 0A0A0A0A 0A0A0A0A
AES128 Encrypted
:
10229E33 189403FD A9C14110 B1BB02B4
Load keys command
:
FF82406010 10229E33 189403FD A9C14110 B1BB02B4
Load Keys
– Reader – Secure
If the default AES128 reader is key is
00010203 05060708 0A0B0C0D 0F101112
then
the following explains the steps needed to change the reader key to
10111213 15161718
1A1B1C1D 1F202122.
Reader old-key : A: 00010203 05060708 0A0B0C0D 0F101112
Reader new-key : B: 10111213 15161718 1A1B1C1D 1F202122
C = XOR (A,B) : C: 10101010 10101010 10101010 10303030
D = CRC16(C) : D: 1C5F
E = 0x00 - D : E: E3A1 (should be appended in LSB order)
F = AES-Encrypt (C) : F: 886B0872 7BDA4996 D296FB46 09D2C75F
Load-Keys Command : G: FF82E00012 886B0872 7BDA4996 D296FB46 09D2C75F A1E3