Skip to main content

ML-Crypto

This library is pycrypto / pycryptodome wrapper that standardises the MissingLink.ai-s encryption and allows easy extentions to support additional encryption schemes.

Overview

  • This library contains a set of Ciphers. Each Cipher has
    • encrpyt and decrypt functions that MUST return/accept byte array and
    • encrpyt_string / decrypt_string that work with string objects that will be a base64 representation of the encrypted byte output of the underlying [en|de]crypt functions
    • If your cipher returns structured data (such as IV and other data), you SHOULD use namedtuples and extend them with MsgPackNamedTuple mixin. This will allow you to easly dump the named tuple into optimised byterarray, in order to be flexable with the object, currently we are converting the named tuple into dict in order to be able to add fields in the feature
    • You SHOULD provide key generation function as part of the cipher that will generate key (the function may perform external calls in case of cloud kms and etc.)

Current Ciphers

  • Symmetric - AES-CTR encryption with 256 bits (32 bytes) key length
  • Asymmetric - PKCS1_OAEP encryption with SHA512 hashAlgo
  • Envelope - Envelope encryption where the body is encrypted with the Symmetric cipher. the DEK (data encryption key) is encrypted using non-specific cipher provided during init

PyCryptoDome vs PyCrypto vs None

  • When installing, no cryptography package is provided by default. Use ml-crypto[pycryptodome] or ml-crypto[pycrypto] to ensure one is installed or use the default if you know you have one installed
  • As pycrypto is dead, prefer using pycryptodome and expect some issues (The main one is encrypted ssh private keys) not to work

Metadata

Release files for ml-crypto 0.7.780

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ml-crypto 0.7.780
File Size Uploaded Provenance Actions
ml-crypto-0.7.780.tar.gz 6.0 kB Without provenance Details for ml-crypto-0.7.780.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ml-crypto 0.7.780
File Interpreter ABI Platform Actions
ml_crypto-0.7.780-py2.py3-none-any.whl Python 3, Python 2 none any Details for ml_crypto-0.7.780-py2.py3-none-any.whl

Total release size: 17.1 kB

Release files / ml-crypto-0.7.780.tar.gz

Download URL ml-crypto-0.7.780.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3b0cfde069af082bd03323c766b9257513c8cbad2a7721a87b344631d82a20c0
BLAKE2b-256 checksum
How to use checksums
23a9d897f8d08128dfb6497ff035f089f4e3fe8b87b6c8f9ee4302be09687a99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

Release files / ml_crypto-0.7.780-py2.py3-none-any.whl

Download URL ml_crypto-0.7.780-py2.py3-none-any.whl
Size 11.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
777eff8feecb7da1633f771b4adc87191df4c084506466a3a6997ce6a3d4fea8
BLAKE2b-256 checksum
How to use checksums
3439157399d0f363cf97d0c484af49c4afb07c8c6263d798fd6afa9fbffc0377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.9

Security for ml-crypto 0.7.780

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page