Skip to main content

Missing python minisign library.

Install

pip install py-minisign

Library

import os
import minisign

# verify

pk = minisign.PublicKey.from_base64(
    'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3')
sig = minisign.Signature.from_bytes(
    b'untrusted comment: signature from minisign secret key\n'
    b'RWQf6LRCGA9i59SLOFxz6NxvASXDJeRtuZykwQepbDEGt87ig1BNpWaVWuNrm73YiIiJbq71Wi+dP9eKL8OC351vwIasSSbXxwA=\n'
    b'trusted comment: timestamp:1555779966\tfile:test\n'
    b'QtKMXWyYcwdpZAlPF7tE2ENJkRd1ujvKjlj1m9RtHTBnZPa5WKU5uWRs5GoP5M/VqE81QFuMKI5k/SfNQUaOAA=='
)
pk.verify(b'test', sig)

# sign

sk = minisign.SecretKey.from_file('/path/to/secret.key')
sk.decrypt('strong_password')
sig = sk.sign(b'very important data')

# generate key pair

key_pair = minisign.KeyPair.generate()
sk = key_pair.secret_key
pk = key_pair.public_key

# save key

sk.encrypt('strong_password')
with open(os.open('/path/to/secret.key', os.O_CREAT | os.O_WRONLY, 0o600), 'wb') as f:
    f.write(bytes(sk))

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_minisign-0.13.3.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_minisign-0.13.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file py_minisign-0.13.3.tar.gz.

File metadata

  • Download URL: py_minisign-0.13.3.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for py_minisign-0.13.3.tar.gz
Algorithm Hash digest
SHA256 fe4736db8ba0bc7e55ce55977018983dc3c1c32bfc0fdb573166c3ab6e313f90
MD5 889d4efa08d45211c8df2d861cf8952e
BLAKE2b-256 0abb6087e920187ec00d26eff6ca54c0339f6c5176a34dbc9ee91481f0e2a189

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_minisign-0.13.3.tar.gz:

Publisher: publish.yml on x13a/py-minisign

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file py_minisign-0.13.3-py3-none-any.whl.

File metadata

  • Download URL: py_minisign-0.13.3-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for py_minisign-0.13.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f3f2678d49cdfc93fc275f2d67df5b1c49619f55a94554981a0d2706beac9eb3
MD5 db28a87970b870b5635debf82c8910f1
BLAKE2b-256 305fd44b83e0c0ccbbbdf9ee0e7f699304379142a82d4c32e80b0a3cc903319c

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_minisign-0.13.3-py3-none-any.whl:

Publisher: publish.yml on x13a/py-minisign

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.21.1

2 files

0.21.0

2 files

0.20.0

2 files

0.13.4

2 files

This release

0.13.3 This release

2 files

0.13.2

2 files

0.13.1

2 files

0.13.0

2 files

0.12.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page