1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Mifare default constants
17 //-----------------------------------------------------------------------------
19 #include "mifaredefault.h"
20 #include "commonutil.h" // ARRAYLEN
22 const char *g_mifare_plus_default_keys
[] = {
23 "ffffffffffffffffffffffffffffffff", // default key
24 "00000000000000000000000000000000",
25 "a0a1a2a3a4a5a6a7a0a1a2a3a4a5a6a7", // MAD key
26 "b0b1b2b3b4b5b6b7b0b1b2b3b4b5b6b7",
27 "d3f7d3f7d3f7d3f7d3f7d3f7d3f7d3f7", // NDEF key
28 "11111111111111111111111111111111",
29 "22222222222222222222222222222222",
30 "33333333333333333333333333333333",
31 "44444444444444444444444444444444",
32 "55555555555555555555555555555555",
33 "66666666666666666666666666666666",
34 "77777777777777777777777777777777",
35 "88888888888888888888888888888888",
36 "99999999999999999999999999999999",
37 "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38 "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
39 "cccccccccccccccccccccccccccccccc",
40 "dddddddddddddddddddddddddddddddd",
41 "eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
42 "000102030405060708090a0b0c0d0e0f",
43 "0102030405060708090a0b0c0d0e0f10",
44 "00010203040506070809101112131415",
45 "01020304050607080910111213141516",
46 "00112233445566778899aabbccddeeff",
47 "404142434445464748494a4b4c4d4e4f",
48 "303132333435363738393a3b3c3d3e3f",
50 size_t g_mifare_plus_default_keys_len
= ARRAYLEN(g_mifare_plus_default_keys
);