在一次RSA密钥对生成中,假设p=473398607161,q=4511491,e=17 求解出d作为flag提交
直接用python写脚本
from gmpy2 import invert
p=473398607161
q=4511491
n=p*q
e=17
phiN=(p-1)*(q-1)
d=invert(e,phiN)
print(d)
得到d=125631357777427553
最后合成flag
flag{125631357777427553}
MuFeng·2022-03-17·199 次阅读
在一次RSA密钥对生成中,假设p=473398607161,q=4511491,e=17 求解出d作为flag提交
直接用python写脚本
from gmpy2 import invert
p=473398607161
q=4511491
n=p*q
e=17
phiN=(p-1)*(q-1)
d=invert(e,phiN)
print(d)
得到d=125631357777427553
最后合成flag
flag{125631357777427553}
Comments NOTHING