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, generate_key

k=3 # threshold for combine
n=4 # number of total shares
key = generate_key()
Scheme = ShamirScheme(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

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.1.3.tar.gz (7.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.1.3-cp39-abi3-win_amd64.whl (123.9 kB view details)

Uploaded CPython 3.9+Windows x86-64

pyquorum-0.1.3-cp39-abi3-manylinux_2_28_x86_64.whl (227.5 kB view details)

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

pyquorum-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (200.2 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pyquorum-0.1.3.tar.gz
  • Upload date:
  • Size: 7.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.1.3.tar.gz
Algorithm Hash digest
SHA256 74f08539e0ccb98c90d60c36fc4226e8970fa37ff740a9252321bcdeac5551f0
MD5 4eb1fc5148c3c3a1e4f5ea395f70289a
BLAKE2b-256 46832896c1be042b6bed83889c13c2fbfb648ce334ef8affab9765bb803b2f1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.3.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.1.3-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pyquorum-0.1.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 123.9 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.1.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d1bdd3df9c989fc10fa1cbcc543e5a68b30dc412b44056d55a36342a790d5536
MD5 6a40d6a3af300a8791e857b06e999806
BLAKE2b-256 322992bf7718971505cccfa15054517b13ed7250823398111e4e59d53ab31dc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.3-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.1.3-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyquorum-0.1.3-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 93511f6c98ca616b40f0de6a6b8e86bf8f74df106fc114f1bcf08ee4683ef522
MD5 04873f0cd0ec1e80f6f31f6de99b817e
BLAKE2b-256 b475a6fc5326388730dc5f9ae68b303980bcccc47de3b94a8a2b85b2772a949d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.3-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.1.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyquorum-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f67b8e267057f2862f066081198ac81f98e9b838bcc7dfffabebb578be930dd6
MD5 cb38d217884fcd1c867d369357901f2f
BLAKE2b-256 063b867c46293774f6e6f3637c3ac4ce469c72abddc61b6cb467258b36f1b04a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.3-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