A project I did for IB Math (HL 1). Includes RSA key generation, Encryption, Decryption and Brute force factorizing.
Encryption and Key generation done through driver.py
, while decryption is done through decrypt.py
An unrelated file, called bruteforce.py
will factorize a number to its 2 prime factors, if they exist.
Paper I wrote on this topic here.
This is written in python2.7
.
This should manifestly not be used for any sort of cryptographic purposes, it was an exmaple of RSA encryption for a school project, that is essentially defunct.