This Python file contains a simple implementation of the RSA encryption and decryption algorithm.
The encryption formula used is:
where m is the plaintext message, e is a randomly generated co-prime integer to n, and n is the product of two large prime numbers, p and q.The decryption formula used is:
where c is the encrypted message, d is the private key generated using p and q and e, and n is the product of the same two prime numbers used for encryption.