给了n,p**2+q**2,c的数值
flag = bytes_to_long(open("flag.txt", "rb").read())
p = getPrime(1024)
q = getPrime(1024)
n = p*q
e = 65537
c = pow(flag, e, n)
是RES,利用初中数学算出p,q
phi = (p - 1) * (q - 1)
d = pow(e, -1, phi)
m = pow(c, d, n)
flag = long_to_bytes(m)
咸潘多拉病毒 2026-04-16 14:36:44 1 0 返回题目详情
给了n,p**2+q**2,c的数值
flag = bytes_to_long(open("flag.txt", "rb").read())
p = getPrime(1024)
q = getPrime(1024)
n = p*q
e = 65537
c = pow(flag, e, n)
是RES,利用初中数学算出p,q
phi = (p - 1) * (q - 1)
d = pow(e, -1, phi)
m = pow(c, d, n)
flag = long_to_bytes(m)
***收费WriteUP请购买后查看,VIP用户可免费查看***
***收费WriteUP请购买后查看,VIP用户可免费查看***
***收费WriteUP请购买后查看,VIP用户可免费查看***
***收费WriteUP请购买后查看,VIP用户可免费查看***
***收费WriteUP请购买后查看,VIP用户可免费查看***