This release is a pre-release and may not be stable for production use.
cyphera
Data protection SDK for Python — format-preserving encryption (FF1/FF3), AES-GCM, data masking, and hashing.
pip install cyphera
Usage
from cyphera import Cyphera
# Auto-discover: checks CYPHERA_CONFIG_FILE env, ./cyphera.json, /etc/cyphera/cyphera.json
c = Cyphera.load()
# Or load from a specific file
c = Cyphera.from_file("./config/cyphera.json")
# Or inline config
c = Cyphera({
"configurations": {
"ssn": {"engine": "ff1", "key_ref": "my-key", "header": "T01"},
},
"keys": {
"my-key": {"material": "2B7E151628AED2A6ABF7158809CF4F3C"},
},
})
# Protect
encrypted = c.protect("123-45-6789", "ssn")
# → "T01i6J-xF-07pX" (DPH-prefixed, dashes preserved)
# Access (header-based, no configuration name needed)
decrypted = c.access(encrypted)
# → "123-45-6789"
Configuration File (cyphera.json)
{
"configurations": {
"ssn": { "engine": "ff1", "key_ref": "my-key", "header": "T01" },
"ssn_mask": { "engine": "mask", "pattern": "last4", "header_enabled": false }
},
"keys": {
"my-key": { "material": "2B7E151628AED2A6ABF7158809CF4F3C" }
}
}
The header (Data Protection Header, DPH) is a short prefix prepended to
protected output that identifies the configuration used. It lets access()
reverse a value without the caller naming the configuration.
Cross-Language Compatible
All SDKs produce identical output for the same inputs:
Input: 123-45-6789
Java: T01i6J-xF-07pX
Rust: T01i6J-xF-07pX
Node: T01i6J-xF-07pX
Python: T01i6J-xF-07pX
Go: T01i6J-xF-07pX
.NET: T01i6J-xF-07pX
Status
Alpha. API is unstable. Cross-language test vectors validated against Java, Rust, Node, Go, and .NET implementations.
License
Apache 2.0 — Copyright 2026 Horizon Digital Engineering LLC
Metadata
Release files for cyphera 0.0.1a10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cyphera-0.0.1a10.tar.gz | 18.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cyphera-0.0.1a10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.8 kB
Release files / cyphera-0.0.1a10.tar.gz
| Download URL | cyphera-0.0.1a10.tar.gz |
|---|---|
| Size | 18.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
749e52fd36df1669e94771cc9d76e217dfacca7a377ac44b23da9758710f0e21
|
|
BLAKE2b-256 checksum How to use checksums |
04c3810a59bccb84c17df48e6c55e203608271041a59f2d587813e8e20078702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency logRelease files / cyphera-0.0.1a10-py3-none-any.whl
| Download URL | cyphera-0.0.1a10-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
13eb9ace5add2d7f38b515955b25f8afc8ef73b3d06ae4411a187d363115d7c0
|
|
BLAKE2b-256 checksum How to use checksums |
3be4c282ec3671a95d377f90342fe6040d0c413d9790c41291aaf3d13fff9709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 23, 2026.
Transparency log