extended euclidean algorithm and the concept of multiplicative inverse

后端 未结 2 1011
迷失自我
迷失自我 2020-12-21 13:48

I have with python:

e*d == 1%etf

we know (e) and (etf) and must discover (d) using the extended euclidean algorithm and the concept of mul

2条回答
  •  梦毁少年i
    2020-12-21 14:24

    The trick you list with d = (e**(etf-2)) % etf will work only if etf is prime. If it's not, you have to use the EEA itself to find the modular multiplicative inverse.

提交回复
热议问题