Hacker News new | past | comments | ask | show | jobs | submit login
Implementing RSA in Python from Scratch (coderoasis.com)
28 points by SudoSH 6 months ago | hide | past | favorite | 4 comments




Recent big discussion of very nearly the same thing

https://news.ycombinator.com/item?id=39029279


modpow() defined in the article is already provided by the built-in pow() which takes a modulus as its third argument. https://docs.python.org/3/library/functions.html#pow


Similarly, you can compute the modular multiplicative inverse by passing -1 as the second argument to pow()




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: