forked from malladisiddu/ZCrypt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZCrypt.py
48 lines (47 loc) · 1.01 KB
/
ZCrypt.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from banner import *
banner()
print("""
[1] - RSA
[2] - XOR
[0] - Exit
""")
check = int(input("==> "))
if check == 2:
banner()
print("""
[1] - Single Byte XOR
[2] - Repeating Key XOR
[0] - Exit
""")
y = int(input("==> "))
if y == 1:
os.system('tput reset')
import XOR.bruteforce
elif y == 2:
os.system('tput reset')
import XOR.repeating_key
else:
exit()
elif check == 1:
banner()
print("""
[1] - (c,n,e)
[2] - (c,p,q,e)
[3] - (c,n,e,{p or q})
[4] - (c,n,d)
[5] - (c1,c2,c3,n1,n2,n3) [Hasted Broadcast Attack]
[6] - (c,e) [Small Exponent("e") Attack]
[7] - (c,p,q,dp,dq) [Chinese Remainder Theorem]
[8] - (c,n,e) [Fermat Factorization]
[9] - (c1,c2,n1,n2,e) [Common Factor Attack]
[10] - (c1,c2,e1,e2,n) [Common Modulus Attack]
[0] - Exit
""")
z = int(input("==> "))
if int(z) >= 1 and int(z) <= 10:
os.system('tput reset')
exec('import RSA.RSA'+str(z))
else:
exit()
else:
exit()