Python ctypes bindings to the Monocypher library
Project description
pymonocypher
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.
- pymonocypher Source code
- Monocypher official site
The Python binding API mirrors the underlying C API, but with simplifications to only pass bytes objects, not uint8_t * and length.
Installation
You can install directly from pypi:
pip install pymonocypher
You can then use pymonocypher:
python
>>> import monocypher
>>> monocypher.blake2b(b'hello world')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for pymonocypher-0.1.4-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2af4eedaaeddae0d8ad60b703da41759a313683177a683b2a1e529412bba32 |
|
MD5 | 6034cd0d46c7402e5516e06584863cf1 |
|
BLAKE2b-256 | b7e8e68005e6dde99b2d15dedb1a1d5e82969472541455761e073454a38b6a77 |
Hashes for pymonocypher-0.1.4-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a802f2fb7b1847a363501fd646e05b3bfb9e2f163f028b2e4058baaae25c1fd |
|
MD5 | 4192d90d5c24af4febc359279cec1045 |
|
BLAKE2b-256 | 0ac6eb60e6009e4634cb7c1df82554ea5b8acb5dd4111252a44a0513ed5857d7 |