Skip to main content

A python library for generating cryptographically secure lamport signatures

Project description


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

Exporting keys:

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


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.

Files for pylamport, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size pylamport-0.2.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page