能力值:
( LV7,RANK:105 )
|
-
-
2 楼
没看出r的作用,只能算出这个:Vidar{y0u_m4ster_the_rsa!!}
|
能力值:
( LV1,RANK:0 )
|
-
-
3 楼
yegu
没看出r的作用,只能算出这个:Vidar{y0u_m4ster_the_rsa!!}
大佬能发一下解题过程吗
|
能力值:
( LV7,RANK:105 )
|
-
-
4 楼
caizhe666
大佬能发一下解题过程吗
通过p和q可以计算出d、n,再用d和n进行解密enc
|
能力值:
( LV7,RANK:105 )
|
-
-
5 楼
yegu
通过p和q可以计算出d、n,再用d和n进行解密enc
通过e、p和q可以计算出d和n,再用d和n对enc进行解密
|
能力值:
( LV12,RANK:230 )
|
-
-
6 楼
我觉得题目有问题 from sympy import mod_inverse
c = 1333403556654356865384490997061671314921196574436513136222053949729070274173582803671101083001452620023252814555693624042471265110081480535653184039829432
e = 65537
p = 109027639703652206102719714599718973421972092464031278532507861478084643636697
q = 98647547377790750057247385521773649920775389703573380291023838638656647369701
r = 106265430573593532511920868728152697119400131242936626785827831969491245636353
n = p*q*r
phi = (p-1)*(q-1)*(r-1)
d = mod_inverse(e, phi)
print(d)
print()
m = pow(c, d, p*q) # ????? 为什么不是*r的n
print(m.to_bytes((m.bit_length() +7 ) // 8))
print()
c = pow(m, e, p*q) # *r根本对不上c
print(c) 算出来的Vidar{y0u_m4ster_the_rsa!!}带进题目也不对啊
|
|
|