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

Uploaded CPython 3.12Windows x86-64

pyquorum-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (197.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pyquorum-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (224.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

File details

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

File metadata

  • Download URL: pyquorum-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 124.5 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.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 eb67514636c31ea898cf59a10673b28b26039abdbe859cc49b9f4f6ad54f8eac
MD5 e385b974a5af2dda3be761f8b3287ae0
BLAKE2b-256 26de53662a964f3d4905fb65225005b755583fac9dcd800786d0a9b8cb02f870

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyquorum-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d9f9a28a79dbb206e9ae973ab6f57e7f8310cbb82f4b7b47acd50be6e483c9e5
MD5 ed7717be922ef8f4a2a6d7037bf547cb
BLAKE2b-256 c944951163947b63b7e952f502a61e11f6e1502a1e4870ee0fe796ed43f9a267

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for pyquorum-0.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 940ebeab638a690d652a63cbfe72badd73b99e7530aa3b6a96ac0b3b806f275b
MD5 c293b0c4be2fc88323e10862da1002dc
BLAKE2b-256 21a64cdc72024707d16c001ea526b842c1b916b42a84f835024e8980f2aaef6b

See more details on using hashes here.

Provenance

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