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.1-cp312-cp312-win_amd64.whl (127.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pyquorum-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (200.4 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyquorum-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl (227.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pyquorum-0.1.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 cb56f8e13469581daefd32c4af3f10c189e7f2eae098ad3010f637743ad7bfe4
MD5 b241ebae17a7edefee5223c66988fde5
BLAKE2b-256 900b8953f6989c47bc4753700243b24a152c2f81e9e4d5311c2598f2e0d651b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyquorum-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 190cb314c827e07f985c53eaa08c0d4649777125b12a94d717305b2df296fa39
MD5 e7e5223e89595b48d7c18a9e2c069d13
BLAKE2b-256 3ab618adeca65e5cf5e1bffdec885e86a22b113ea209864a2cb7c6909a552b21

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyquorum-0.1.1-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.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pyquorum-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 115cc322b454d7c559c315b415ccbcc7678bfc5d778c97dd36282a5e7ecbdcc6
MD5 570dc1e29ae2ac475ca400c685ab6481
BLAKE2b-256 c109e7f4457afef0169c8523f66a88371dc428d94d368c9b596851c78c7cb249

See more details on using hashes here.

Provenance

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