Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 696 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 696 Bytes

simpleWiener

A simple and fast implementation of Wiener's attack against small RSA exponent d

Requirement

shield

Usage

cd to the root of this repository and run the following in your terminal:

python3 -m simpleWiener.core e n

e and n are usually large integers you already know

Example

python3 -m simpleWiener.core 9292162750094637473537 13029506445953503759481

output:

phi=13029506445724987531764
k=363
d=509

Credits

https://www.cits.ruhr-uni-bochum.de/imperia/md/content/may/krypto2ss08/shortsecretexponents.pdf https://github.com/orisano/owiener/blob/master/owiener.py

License

MIT