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.4.tar.gz (6.1 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.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_minisign-0.13.4.tar.gz
  • Upload date:
  • Size: 6.1 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.4.tar.gz
Algorithm Hash digest
SHA256 2d734bef75b5f3771980181b9ce6e2548476d6281ae52ad8df39fbacfe26e71f
MD5 17ddec21c1b022263379de62f6006118
BLAKE2b-256 66eee5dbb238d2cf81f7d311a72cf14b83f21d4b0fa9b8128e9f98387365a4a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_minisign-0.13.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: py_minisign-0.13.4-py3-none-any.whl
  • Upload date:
  • Size: 7.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 caf57c5f9a7d995e2012ce9747d8b4e8b270af5d8d1e21e17eb5eb44f2a47f6c
MD5 5b287583c1cf66c725b6e50a4b0b841f
BLAKE2b-256 8dc6aa1c8f56c0344d3b3d9bec52f4442d538aeb3ed1c8c033eb314555e61b7c

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_minisign-0.13.4-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

This release

0.13.4 This release

2 files

0.13.3

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