MathCrypto is a library of useful funtions used in cryptography. Do not use this library for improving the security of your application, it is not safe or powerful enough to provide that.
Available functions include:
- Multiplicative group operations
- Generate a group from modulus including group elements and generators
- Get inverse element any element of the group
- Get element order of any element in group
- Math functions
- Number primality checks
- Classic number modulus check
- Fermat's primality test
- Euler's Totient function (Phi)
- Euclidean algorithm (GCD)
- Simple number factorization
- Chinese Remainder Theorem
- Extended Euclidean Algorithm
- Number primality checks
Functions from this library can be used to solve recreational mathematics, cryptographic and programming problems.
MathCrypto is avalaible through Python Package Index (PyPI) using pip. :
foo@bar:~$ python3 -m pip install --upgrade mathcrypto
To uninstall using pip. :
foo@bar:~$ python3 -m pip uninstall mathcrypto
You can read the full documentation here.
Source code repository is available on GitHub. Feel free to contribute. Bug reports and suggestions are welcome.
mathcrypto is licensed under the MIT License.