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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file mathcrypto-0.3.2.tar.gz.

File metadata

  • Download URL: mathcrypto-0.3.2.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for mathcrypto-0.3.2.tar.gz
Algorithm Hash digest
SHA256 1040eb09c911ebb469ece1d364d7879fceea1e37a565735ac923bf5b8dc27036
MD5 bfba7907b52c144ec426913145530f7e
BLAKE2b-256 3e9b4f632490ff0b4221ee6d7d8dd8c63f28266b89ea900f19b84241080a4058

See more details on using hashes here.

File details

Details for the file mathcrypto-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: mathcrypto-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for mathcrypto-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a13f28cb0e3d386d91aeb571be04ab15c703b8a8109e9b1b663c0a27f9a36d19
MD5 f4664f94cd65ee1530e7c51c817df9ed
BLAKE2b-256 3543f803b08372f23b6bd81dfc40201348e9aff6a56be29d3960fc4f2931d2c4

See more details on using hashes here.

Supported by

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