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 details)

Uploaded Source

Built Distribution

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

Uploaded CPython 3.10 manylinux: glibc 2.34+ x86-64

File details

Details for the file pysequoia-0.1.3.tar.gz.

File metadata

  • Download URL: pysequoia-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for pysequoia-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5fc5a673caab00c7882a4943fcca3163edde4902985332696100731c541a1e32
MD5 acbfec2548ed2fb1a8a44da2b898968f
BLAKE2b-256 156a5aee744310ceea111994872e90a620cabe0b0411e869dc818f0f73e79f0e

See more details on using hashes here.

File details

Details for the file pysequoia-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pysequoia-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6bfbb20a68dd095830eeb44de8da17aa19562a8487605f855bf091e34ab58096
MD5 0e5de3987afbb9db563467ef945881ac
BLAKE2b-256 f07037946c92c5ccc095f886ae7e3151a1bc901c972307deb06011b4e8d5cbca

See more details on using hashes here.

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