Skip to main content

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.4.0.tar.gz (1.8 MB view details)

Uploaded Source

File details

Details for the file mcleece-0.4.0.tar.gz.

File metadata

  • Download URL: mcleece-0.4.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

Hashes for mcleece-0.4.0.tar.gz
Algorithm Hash digest
SHA256 de8c22c2c86019c42c1bf10bd1be4f68379a8b8c82a22614e04b3d1d5fd07e88
MD5 abde6e3becfdecf71ca83c73b3397410
BLAKE2b-256 6e303ff0fbeb2cac1b7ea8d03d648bb72d5b7a319c26c310551e92c1acb8e3b6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page