已知私钥(12091, 2945) , 分解因式以后 12091 = 107 * 113
同时还知道 对字符 'o' (asc 111) 加密以后的值为 10574
公钥应该怎么算啊?
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
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