CSICTF-Writeups/Crypto/little RSA/flag.py

19 lines
187 B
Python
Raw Normal View History

2020-07-31 18:20:47 +05:30
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)