Skip to main content

Python ctypes bindings to the Monocypher library

Project description


This python package uses cython to wrap the Monocypher C library. Monocypher is an easy to use, easy to deploy, auditable crypto library written in portable C.

Normal Python installations have access to a wide selection of quality crypto libraries. This python binding is intended to communicate with other implementations that do use the Monocypher library. A typical application is to communicate with a microcontroller that uses Monocypher.

The Python binding API mirrors the underlying C API, but with simplifications to only pass bytes objects, not uint8_t * and length.


You can install directly from pypi:

pip install pymonocypher

You can then use pymonocypher:

>>> import monocypher
>>> monocypher.blake2b(b'hello world')

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

pymonocypher- (103.2 kB view hashes)

Uploaded source

Built Distributions

pymonocypher- (73.6 kB view hashes)

Uploaded cp39

pymonocypher- (73.6 kB view hashes)

Uploaded cp38

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