Skip to main content

Cryptographic library for secret sharing and key management, powered by Rust

Project description

PyQuorum

Cryptographic library for secret sharing and key management, powered by Rust

Installation

pip install pyquorum

Quick Start

from pyquorum import ShamirScheme, BlakleyScheme, generate_key

k=3 # threshold for combine
n=4 # number of total shares
key = generate_key()
Scheme = ShamirScheme(k, n) # BlakleyScheme(k, n)
shares = Scheme.split(key)
combine = Scheme.combine(shares)

Security

This library does:

  • generate key
  • split secret
  • combine secret

What it doesn't:

  • replace encryption packages like cryptography, pyserpent and etc

If you found a security issue, please refer to SECURITY.md

Roadmap to v1.0.0

  • - Shamir Scheme
  • - Blakley Scheme
  • - Additive Scheme
  • - HKDF Key Derivation
  • - Threshold ECDSA

Support

If you find this package usefull, you can star repo on github

Theory

Shamir Scheme Share

How to split a secret key

Shamir split diagram

How to combine a secret key

Shamir combine diagram

Example

Source secret key

Spliting secret key to 5 shares

Combining 3 shares to secret key

Result

Blakley Scheme Share

How to split a secret key

Blakley split

How to combine a secret key

Blakley combine

Example

Spliting secret key to 4 shares

Combining 3 shares to secret key

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

pyquorum-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distributions

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

pyquorum-0.2.0-cp39-abi3-win_amd64.whl (135.3 kB view details)

Uploaded CPython 3.9+Windows x86-64

pyquorum-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl (238.5 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ x86-64

pyquorum-0.2.0-cp39-abi3-macosx_11_0_arm64.whl (210.7 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file pyquorum-0.2.0.tar.gz.

File metadata

  • Download URL: pyquorum-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyquorum-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4cd1164e53eee20025106aabd0bf9d7827c37e571f3dfc07c9fc5bc3e47a587c
MD5 64cc02ba5fb30aab5bb1bd380430cc24
BLAKE2b-256 68e113fe6b36741c497d36c67044fc44dd26e68a3310c0a0dd0e216282753e9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.2.0.tar.gz:

Publisher: publish.yml on svvqt/pyquorum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyquorum-0.2.0-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pyquorum-0.2.0-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 135.3 kB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyquorum-0.2.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1fdceb81b15f014b7c2058ff6aed28d3146781ef978065fe3029e6f84f0a5bca
MD5 cb45ee6a63a98aac3dfaec2cc9fedf3e
BLAKE2b-256 e304e16c9cb402591fdf7af641dc791e26fdebd07983c490fab8aea1111b6d8e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.2.0-cp39-abi3-win_amd64.whl:

Publisher: publish.yml on svvqt/pyquorum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyquorum-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyquorum-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41e55096374b366b08bc5faeab2ec4aa8b242cf462372a94b7fdcd8a9a2c84e7
MD5 e7bf71f68160af74b38766ced440a0b2
BLAKE2b-256 0da4e7d256af79133048fcd7b3322f0500ffa9bf4addf59bbe6209559ff1904c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.2.0-cp39-abi3-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on svvqt/pyquorum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyquorum-0.2.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyquorum-0.2.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a07ee731941590efd604b6578a76b4de9124b5897ddccbe845df3c7ba08cd746
MD5 f5b4b8f42851967d3ec8af76300c848e
BLAKE2b-256 f0cdea3ea17b8d68f463465955ee773644f0eee8d4ac2a67341e62e5c749ff26

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.2.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: publish.yml on svvqt/pyquorum

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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