Skip to main content

Python wrapper around implementation of the X25519 and Ed25519 cryptosystems

X25519

Import library:

from lib25519 import x25519

Key generation:

alicepk, alicesk = x25519.keypair()
bobpk, bobsk = x25519.keypair()

Shared-secret generation:

bobk = x25519.dh(alicepk, bobsk)
alicek = x25519.dh(bobpk, alicesk)

Check:

assert (alicek == bobk)

Ed25519

Import library:

from lib25519 import ed25519

Key generation:

alicepk, alicesk = ed25519.keypair()

Signature generation:

m = b'Hello'
sm = ed25519.sign(m, alicesk)

Signature verification and message recovery:

recoveredm = ed25519.open(sm, alicepk)

Check:

assert (m == recoveredm)

Metadata

Release files for lib25519 20241004.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lib25519 20241004.1
File Size Uploaded Provenance Actions
lib25519-20241004.1.tar.gz 9.2 kB Without provenance Details for lib25519-20241004.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lib25519 20241004.1
File Interpreter ABI Platform Actions
lib25519-20241004.1-py3-none-any.whl Python 3 none any Details for lib25519-20241004.1-py3-none-any.whl

Total release size: 18.9 kB

Release files / lib25519-20241004.1.tar.gz

Download URL lib25519-20241004.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
61b1d76df2d1f95078275bf4d8fd445c98812c51b4baaddd69fac984e310614f
BLAKE2b-256 checksum
How to use checksums
ca74aab020af9b008a798eca814144aa5b5d4fe3b1e0e88da38fd75d7a77551b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / lib25519-20241004.1-py3-none-any.whl

Download URL lib25519-20241004.1-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
715cd23fb39d8f54017ebc8fac2cfc65c3a756777da2167fac63518f9035195d
BLAKE2b-256 checksum
How to use checksums
c4957daf3e4df079619d5df44447055295ca61b9b62e272bf998e895cb63e099
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for lib25519 20241004.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

20241004.1 This release

2 release files No provenance

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