Installation¶
Warning
4.0.0rc1 is a release candidate, a pre-release. The envelope format, the
public API, the command line, and the JSON documents are frozen for 4.0.
It is not independently audited, and it is under public review for at least
60 days before 4.0.0. Do not protect production data with it yet. Without
--pre, pip selects
cryptography-suite 3.0.0, the retired v3 toolkit, which has nothing in
common with this API.
Requirements¶
Python 3.11 or later. CI tests 3.11 through 3.15 on Linux, and the oldest and newest of them on macOS and Windows.
pyca/cryptography 50.0.0 or later, installed automatically. Post-quantum recipients need a build whose OpenSSL provides ML-KEM, and the post-quantum audit chain one that provides ML-DSA; the official 50.0.2 wheels provide both.
From PyPI¶
python -m pip install --pre "cryptography-suite==4.0.0rc1"
Pin the exact version: a later release candidate may still fix what the review finds.
From source¶
git clone https://github.com/Psychevus/cryptography-suite.git
cd cryptography-suite
python -m pip install .
The key-service integrations are separate distributions, released with the core at the same version (each pins it exactly). Install only the ones you use, together with the vendor SDK they are written against:
Distribution |
Install |
Vendor SDK |
|---|---|---|
|
|
boto3 |
|
|
google-cloud-kms |
|
|
azure-keyvault-keys, azure-identity |
|
|
hvac |
|
|
opentelemetry-api |
The core package has one dependency, pyca/cryptography. No integration is discovered or imported implicitly: you import a provider and construct it with a client you built.
Check the installation¶
cryptosuite doctor
doctor reports the versions of the package, Python, pyca/cryptography, and
OpenSSL, whether ML-KEM is available, whether the backend runs in FIPS mode,
and the atomic-output guarantees of the platform’s filesystem. From Python:
from cryptography_suite.providers.hpke import post_quantum_available
print(post_quantum_available()) # True when ML-KEM is available
Next steps¶
Quick start: seal and open your first envelope.
Concepts: what an envelope is and what it guarantees.