RSA-Algorithm icon indicating copy to clipboard operation
RSA-Algorithm copied to clipboard

算法

Open zdrjson opened this issue 9 years ago • 2 comments

(c ^ E) % N --->是c的e次方然后再对N求余数,下面这么写不是每次都要对N求余数吗?请解释! for (int k = 0; k < E; k++) { result = result * c % N; }

zdrjson avatar Jun 21 '15 09:06 zdrjson

不这么写就溢出了

liufan321 avatar Jun 22 '15 18:06 liufan321

你好,我改了一下,把P=61, Q=53, E=17, 然后加解密就出问题了,为什么啊,急啊,搞了很久了

HelloZhu avatar Mar 25 '16 03:03 HelloZhu