This is a Python implementation of the RSA Algorithm. Made in Python 3.7.
Just for learning, we have how to code properly the implementation of RSA Algorithm in Python, and how to deal with a project. Help is always welcomed.
- Create a project on your personal GitHub.
- Upload the project with the local Bayer ssh-keys.
- Show the creation of the ssh-keygen and the classes.
- Show RSA-algoris.
- Show the features.
- Take two distinct, large primes
p
andq
. - Ideally these have a similar byte-length.
- Multiply
p
andq
and store the result inn
. - Find the totient for
n
using the formula:𝜑(𝑛) = (𝑝−1)⋅(𝑞−1)
. - Take an
e
coprime that is greater, than 1 and less thann
. - Find
d
using the formula𝑑⋅𝑒 ≡ 1 mod 𝜑(𝑛)
. - At this point, the pair (
e
,n
) is the public key and the private key (d
,n
) is the private key.
- Create a private and public keys.
- Messages Encryption
- Messages Decrypted
The project is licensed under the MIT license.