Provides encryption and signing capabilities through Sequoia
Project description
#+PROPERTY: header-args :tangle yes :exports both
Note: This is a work in progress. The API is not stable!
Building:
python3 -m venv .env
source .env/bin/activate
pip install maturin
maturin develop
Now open the console with python
{.verbatim} and import the library:
import pysequoia
Available functions
encrypt
Signs and encrypts a string to one or more recipients:
s = open("signing-key.asc", "r").read()
r = open("wiktor.asc", "r").read()
pysequoia.encrypt(s, r, "content to encrypt")
merge
Merges data from old certificate with new packets:
old = open("wiktor.asc", "r").read()
new = open("wiktor-fresh.asc", "r").read()
pysequoia.merge(old, new)
minimize
Discards expired subkeys and User IDs:
cert = open("wiktor.asc", "r").read()
pysequoia.minimize(cert)
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
pysequoia-0.1.3.tar.gz
(3.2 MB
view hashes)
Built Distribution
Close
Hashes for pysequoia-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bfbb20a68dd095830eeb44de8da17aa19562a8487605f855bf091e34ab58096 |
|
MD5 | 0e5de3987afbb9db563467ef945881ac |
|
BLAKE2b-256 | f07037946c92c5ccc095f886ae7e3151a1bc901c972307deb06011b4e8d5cbca |