Skip to main content

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


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)

Uploaded Source

Built Distribution

pysequoia-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (1.6 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

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