Python wrapper for libmcleece encryption library
Project description
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)
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
mcleece-0.2.0.tar.gz
(1.8 MB
view details)
File details
Details for the file mcleece-0.2.0.tar.gz
.
File metadata
- Download URL: mcleece-0.2.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40cbc99b4bcd66f9294253c6319632550b247c93510dc901f02cd4ee492ee09b |
|
MD5 | 8bc5781197ddf37f35f0e065eb5ae799 |
|
BLAKE2b-256 | 31ed285e7a9f5bb36b1877a520301536eb8dbad26208ed6f225a4092a15f5f24 |