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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pyquorum-0.1.2-cp312-cp312-win_amd64.whl (127.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pyquorum-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (200.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyquorum-0.1.2-cp311-cp311-manylinux_2_28_x86_64.whl (227.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

File details

Details for the file pyquorum-0.1.2-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pyquorum-0.1.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 127.2 kB
  • Tags: CPython 3.12, 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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9f883c33656fbcadbcfb605182b983fa3035c14f43d98d9f481a17e01dcfb11d
MD5 aaaf18f777da03bba782d3b7eff96933
BLAKE2b-256 e24891ab8ae5bc60a5f0f5f26ae13c4e44e2fefc5d7d652d9be905f2e77534b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.2-cp312-cp312-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.2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyquorum-0.1.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41b9e7af81ad1bcccf2f4433ceb1c79a22e6b95f1e7c2ee7544cb54c20e373b5
MD5 39d21dbab3d67f9580bf2ec2c009f83d
BLAKE2b-256 7c49557c48496421cb692b1f7f6e0c9173e85e5dc1621e518261cc09240f4e0c

See more details on using hashes here.

Provenance

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

File details

Details for the file pyquorum-0.1.2-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyquorum-0.1.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ff4ea5cef5ea0a0a213a46246e78106b0dd5fa831ffa0350d5ed5bd2ff887cc9
MD5 c8b395d2b096d38a2b29651c80fc3b98
BLAKE2b-256 285c1013aa95afa451ed91fde4b5a52cf1b3b33b49125b264bf56ab8231d3728

See more details on using hashes here.

Provenance

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

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