已知私钥(12091, 2945) , 分解因式以后 12091 = 107 * 113
同时还知道 对字符 'o' (asc 111) 加密以后的值为 10574
公钥应该怎么算啊?
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课
N = 12091 , P = 107 , Q = 113N = prime P * prime Q=> phi(N) = (P-1)(Q-1) = 11872D = 2945D*E = 1 mod (phi(N))2945* E = 1 mod (11872)
E = 1/2945 mod (11872)
=>E = inverse(D) mod (phi(n)) = 129
readyu N = 12091 , P = 107 , Q = 113N = prime P * prime Q=> phi(N) = ...
月太冷 感谢, 感谢~~~~~没想到这么快就有回复了,试了一下果然可以
已懂 2945* e= 11872*k+1