|
|
|
找工作
联系我,q1256294164。 |
|
[求助]rsa根据e、d计算n
limee 能否详细一点,我也想知道。 from gmpy2 import * from Crypto.Util.number import sieve_base def solve_p_q(): # step 1 x = 0 k = ed - 1 # step 2 for i in range(len(sieve_base)): g = sieve_base[i] t = k # step 3 if t % 2 == 0: t = t // 2 x = powmod(g,t,n) else: continue # step 4 y = gcd(x-1,n) if 1<y<n: p = y q = n // p return p,q p,q = solve_p_q() |
|
[求助]rsa根据e、d计算n
有个工具,python的 |
|
[求助]rsa根据e、d计算n
禾之舟 加密过程:c = m^e MOD n 解密过程:m = c^d MOD n 人家不知道n。。。
最后于 2020-5-8 20:30
被要吃饭的嘛编辑
,原因:
|
|
|
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值