Lazyfact tries to factorise a RSA modulus using very basic methods. This project is created for educational purposes and covers the following subjects:
- C, GMP
- C, OpenSSL
- Python, C extensions/packaging
- Python, threading using Queue
- Semiprime integer factorisation
- Trial division
- Pollards rho
- Shanks squares
- Findings another semiprime with a common GCD
Usage - building/installing
$ cd src
$ sudo python setup.py install
Usage - using
$ cd tryOut
$ gcc generator.c -o generator -lgmp -lcrypto
$ ./generator > moduli.txt
$ python lazyfactThreading.py
Sources / Reading
-
Factoring RSA moduli (semiprime integer factorisation)
-
GMP
-
OpenSSL
-
Python threading using Queue
-
Creating a Python C extension and packaging
-
Licensing