Skip to main content

DPQC - Developer's PQC (Post-Quantum Cryptography) Library

Project description

dpqc

DPQC: Developer's Post-Quantum Cryptography Library

PyPI version GitHub

Install

pip install dpqc

Quick Start

from dpqc import MLKEM512, MLDSA44

# Example: Key Encapsulation (KEM)
kem = MLKEM512()
public_key, secret_key = kem.keypair()
ciphertext, shared_secret_enc = kem.encapsulate(public_key)
shared_secret_dec = kem.decapsulate(ciphertext, secret_key)
assert shared_secret_enc == shared_secret_dec

# Example: Digital Signature
sig = MLDSA44()
public_key, secret_key = sig.keypair()
message = b"Hello PQC!"
signature = sig.sign(message, secret_key)
verified = sig.verify(signature, public_key)
assert verified == message

Features

  • ML-KEM (512/768/1024)
  • ML-DSA (44/65/87)
  • Falcon (512/1024)
  • Cross-platform: Windows, Linux, macOS

Documentation

License

MIT

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

dpqc-0.0.1.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

dpqc-0.0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file dpqc-0.0.1.tar.gz.

File metadata

  • Download URL: dpqc-0.0.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dpqc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2305f8effc98a0817be94220d1e6f8435e396d5b0e96dfc8ab9b2ed443315c15
MD5 76c439a7cc100649e0260bb2ea61b08a
BLAKE2b-256 217c94487a956c6469be959a5c0b5ae4855a2ec626950db2e53fdf61ac288092

See more details on using hashes here.

File details

Details for the file dpqc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dpqc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dpqc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cc90b6849199ae31389792d17e22e788bad1d992cd082e03888b6f7b1fc0ffb
MD5 8ba68d7d77eed4f007d8f685807ffea7
BLAKE2b-256 d414b3dc996d1d64c049b0b15a29ab0593cb4d23a7353da7bc58d02ebd6e5c27

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page