-
Notifications
You must be signed in to change notification settings - Fork 3
/
keygen.py
20 lines (16 loc) · 1.01 KB
/
keygen.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def get_key(n):
key = ""
while (n != 0):
if n & 1:
key += "0"
n = (n - 1) // 2
else:
key += "1"
n = (n - 2) // 2
return key[::-1]
secret_key = ""
data_arr = [0x1B, 0x59, 0x29, 0x4C, 0x3D, 0x6F, 0x22, 0x7F, 0x26, 0x1C, 0x2C, 0x2F, 0x7, 0x4E, 0x17, 0x1E, 0x61, 0x0A, 0x53, 0x10, 0x34, 0x65, 0x4A, 0x42, 0x58, 0x8, 0x1D, 0x60, 0x33, 0x55, 0x37, 0x44, 0x52, 0x39, 0x2E, 0x72, 0x0F, 0x6E, 0x7E, 0x3F, 0x32, 0x47, 0x5A, 0x13, 0x19, 0x6, 0x7A, 0x51, 0x18, 0x1A, 0x63, 0x48, 0x2, 0x77, 0x3E, 0x54, 0x35, 0x16, 0x4, 0x5E, 0x4F, 0x49, 0x30, 0x3, 0x15, 0x71, 0x4D, 0x11, 0x38, 0x12, 0x5, 0x45, 0x27, 0x68, 0x3A, 0x75, 0x9, 0x20, 0x1, 0x40, 0x69, 0x23, 0x6A, 0x3B, 0x41, 0x5F, 0x7B, 0x57, 0x3C, 0x1F, 0x66, 0x56, 0x5C, 0x0C, 0x36, 0x73, 0x2D, 0x67, 0x43, 0x5D, 0x4B, 0x28, 0x76, 0x78, 0x7D, 0x31, 0x6D, 0x25, 0x14, 0x74, 0x5B, 0x6B, 0x0D, 0x50, 0x70, 0x64, 0x0E, 0x62, 0x2B, 0x0B, 0x46, 0x2A, 0x7C, 0x79, 0x6C, 0x24, 0x21]
for i in range(1, 128):
x = data_arr.index(i)
secret_key += get_key(x) + '?'
print(secret_key)