Skip to main content

A python library for generating cryptographically secure lamport signatures

Project description

Pylamport

A python library for producing lamport signatures.

Lamport signatures can be constructed with any secure one-way function (usually a hash).

Anything in hashlib (for example, hashlib.sha256) is supported.

Example usage

Generating keys:

keys = pylamport.Lamport().gen()

Signing a message:

identity = pylamport.Lamport()
signature = identity.sign("Hello, world!")

Verifiying a signature:

identity = pylamport.Lamport()
identity.verify(signature)

Exporting keys:

identity = pylamport.Lamport()
keys = identity.export()

Warnings

This project was written in less than a few hours, so it may contain mistakes and/or bugs.

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

pylamport-0.2.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file pylamport-0.2.tar.gz.

File metadata

  • Download URL: pylamport-0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for pylamport-0.2.tar.gz
Algorithm Hash digest
SHA256 44358b7eec60f77ff3a08eddfe86b9ca96a20da73585dc7469b14220889a880b
MD5 5c9f50903554be55d079a1355b375aa5
BLAKE2b-256 43c3aac507c381b8e21bd8d1ac27a77b51300ad662972652604a2028cdd2a2c7

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