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. EachCipherhasencrpytanddecryptfunctions that MUST return/accept byte array andencrpyt_string/decrypt_stringthat work with string objects that will be abase64representation of the encrypted byte output of the underlying[en|de]crypt functions- If your cipher returns structured data (such as
IVand other data), you SHOULD usenamedtuplesand extend them withMsgPackNamedTuplemixin. 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 intodictin 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-CTRencryption with256bits (32 bytes) key length - Asymmetric -
PKCS1_OAEPencryption withSHA512hashAlgo - Envelope - Envelope encryption where the body is encrypted with the
Symmetriccipher. theDEK(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
mlcrypto[pycryptodome]ormlcrypto[pycrypto]to ensure one is installed or use the default if you know you have one installed - As
pycryptois dead, prefer usingpycryptodomeand expect some issues (The main one is encrypted ssh private keys) not to work
Metadata
Release files for mlcrypto 0.6.297
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mlcrypto-0.6.297.tar.gz | 5.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mlcrypto-0.6.297-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / mlcrypto-0.6.297.tar.gz
| Download URL | mlcrypto-0.6.297.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb93d55deaa8c21e5e3b7be4258a64d5bdd19c3494ed97ddfb57da9bbad175bc
|
|
BLAKE2b-256 checksum How to use checksums |
98d26eb946b43b67fdbd63173c712382da7128ca261206440a1641c5e1920e4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / mlcrypto-0.6.297-py2.py3-none-any.whl
| Download URL | mlcrypto-0.6.297-py2.py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
62001a7fc3e91c7ef0e59d07cae6fc7381fa2ecbef46fd4cccc854449846e582
|
|
BLAKE2b-256 checksum How to use checksums |
cb9a13d1486907faded369e49b9274f9118cba608183b0ef175edc26bd307c5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mlcrypto 0.6.297
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.