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)
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)
| File | Size | Uploaded | |
|---|---|---|---|
| mcleece-0.4.0.tar.gz | 1.8 MB | Details |
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
|