Skip to main content

A library of useful funtions used in cryptography. For learning purposes only.

Project description

MathCrypto

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

Functions from this library can be used to solve recreational mathematics, cryptographic and programming problems.

Installation

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

Documentation

You can read the full documentation here.

Development

Source code repository is available on GitHub. Feel free to contribute. Bug reports and suggestions are welcome.

License

mathcrypto is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mathcrypto-0.3.2.tar.gz (13.5 kB view hashes)

Uploaded Source

Built Distribution

mathcrypto-0.3.2-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page