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-3.1.3.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bb42bf2fcfa79c294184a4f5c696f47e2b44f2cdb883cb039e859a212f5bf56 |
|
MD5 | 6e67a5072b18103ddf2e78e5e8265fc2 |
|
BLAKE2b-256 | 7840d8017a39e40cc74b24cacfaa648caf2ed7da0830ddad4f59591728a3cec5 |
Hashes for pymonocypher-3.1.3.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6b9cf1ab79fc7741602e74bc4cd9246cc9f48e858ac8e31c60b6bc274ff0ff |
|
MD5 | c531d025728b93e6503039a1860629ef |
|
BLAKE2b-256 | c109654e019909db257272edc65ee68cfe71971670a102286893da349e0a5211 |
Hashes for pymonocypher-3.1.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601e685f21dfafefb050731695a17d69e63d1b2485b632f0fca396be0dcccec6 |
|
MD5 | 6dbaa8f9b658e0fc1eee5b61e1d00830 |
|
BLAKE2b-256 | 615df9681ea252abeccf3ca66fd0756c9ec52c8e77524bd36a31ba5867af116e |
Hashes for pymonocypher-3.1.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1642f138c3c3bc3d8b9141934293ded6802e07d73d7c23714fb651aade470449 |
|
MD5 | 1194034728ff745946329d2dc583a203 |
|
BLAKE2b-256 | 972142e0f38c21c241cc8473b8f75ec8119a0505386cb9e125d5277dfcb12454 |