Danger

Nothing here should be used for any security purposes.

  • If you need cryptographic tools in a Python environment use pyca or PyNaCl.

  • If you need efficient and reliable abstract math utilities in a Python-like environment consider using SageMath.

RSA#

Imported with:

from toy_crypto import rsa

The RSA algorithm is probably the public key algorithm that is most widely known by the general public. There are lots of toy implementations of it. Unfortunately not all of them are clearly labeled as toys or understood as such by their developers.