Skip to main content

pymcleece

A python wrapper for the libmcleece encryption C/C++ library. C++ dependencies (libmcleece, libsodium) are included as a git submodule.

git clone --recursive https://github.com/sz3/pymcleece.git
python setup.py build
python setup.py install

or with pip:

pip install mcleece

... linux should work, macOS could work, windows is unknown at the moment.

Usage

from mcleece.crypto_box import PrivateKey, PublicKey, SealedBox
sk, pk = PrivateKey.generate()

ebox = SealedBox(pk)
ciphertext = ebox.encrypt(b'helloworld')

dbox = SealedBox(sk)
recoveredtext = dbox.decrypt(ciphertext)

Metadata

Release files for mcleece 0.4.0

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

Source distribution (sdist)

Source distribution for mcleece 0.4.0
File Size Uploaded Provenance Actions
mcleece-0.4.0.tar.gz 1.8 MB Without provenance Details for mcleece-0.4.0.tar.gz

Release files / mcleece-0.4.0.tar.gz

Download URL mcleece-0.4.0.tar.gz
Size 1.8 MB
Tags Source
SHA-256 checksum
How to use checksums
de8c22c2c86019c42c1bf10bd1be4f68379a8b8c82a22614e04b3d1d5fd07e88
BLAKE2b-256 checksum
How to use checksums
6e303ff0fbeb2cac1b7ea8d03d648bb72d5b7a319c26c310551e92c1acb8e3b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for mcleece 0.4.0

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