You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
187 B
18 lines
187 B
from Crypto.Util.number import inverse
|
|
import binascii
|
|
|
|
e = 42667
|
|
c = 32949
|
|
n = 64741
|
|
|
|
# From factordb
|
|
|
|
p = 101
|
|
q = 641
|
|
|
|
phi = (p-1) * (q-1)
|
|
|
|
d = inverse(e,phi)
|
|
m = pow(c,d,n)
|
|
|
|
print (m)
|
|
|