Developers

ECRE Core + SDK. Post-quantum security inside your own systems.

The same engine that runs every ECRE product, as a Python library and a command-line tool: hybrid post-quantum encryption, composite signatures and a recovery ledger, with a stable, documented API.

Status: Private Beta. Release 0.4.0, API version 1. Internally audited against NIST FIPS 203/204/205, OWASP ASVS 5.0 and the CWE Top 25. Read the report.Independent third-party audit: planned.

What you get

Everything needed to integrate, and to check the integration.

ECRE implements no cryptographic primitive itself. It combines NIST standards from maintained libraries and tests every combination.

Python library

A typed API of 21 functions for identities, encryption, signatures and hardware custody. Every failure raises one family of errors; nothing returns half-verified data.

Command-line tool

Create identities, pin peers by fingerprint, encrypt, decrypt, sign, verify, inspect a file and check the installation, with JSON output for scripts.

Formats and test vectors

A byte-exact file format specification, 36 file test vectors and 1,532 NIST ACVP and Wycheproof vectors for the underlying algorithms.

Runnable examples

Four short programs: quick start, files and keys, document signatures and recovery. They run on every change, so they never go stale.

Verifiable releases

Each release ships a wheel, a source archive, a software bill of materials (CycloneDX) and SHA-256 checksums, tested as installed.

Recovery ledger

The ledger library and HTTP node behind ECRE Recovery, running on the public testnet.

Quick start

Encrypt, sign and verify in four lines.

The recipient decrypts only if the file is addressed to them, signed by the sender they expect, and unchanged.

from ecre_pq import api

alice, bob = api.generate_identity(), api.generate_identity()
blob = api.encrypt_bytes(b"contract", sender=alice, recipient=bob.public)
assert api.decrypt_bytes(blob, recipient=bob, sender=alice.public) == b"contract"

The same steps from a terminal:

ecre-pq keygen --out alice.vault
ecre-pq peer add bob bob.public.json --fingerprint "<checked by phone>"
ecre-pq encrypt report.pdf -o report.pdf.ecre --identity alice.vault --to bob
ecre-pq inspect report.pdf.ecre
ecre-pq doctor
API

A small surface, documented in full.

Integrators import only from ecre_pq.api. The developer guide that comes with the SDK describes every argument, return value and error.

FunctionWhat it does
generate_identityCreates an identity: two signing keys and one hybrid key for receiving.
pin_publicAccepts a colleague's public key only if it matches the fingerprint you checked.
save_identity, load_identityStore an identity sealed with a password (Argon2id).
encrypt_bytes, encrypt_fileEncrypt and sign, with profile A (fast) or B (maximum assurance).
decrypt_bytes, decrypt_fileVerify first, then decrypt; optional replay protection and a minimum profile.
inspect_bytes, inspect_fileShow who a file is from and for, before decryption, clearly marked as not yet verified.
sign_bytes, verify_bytes, sign_file, verify_fileDetached signatures for documents that stay readable.
save_identity_hsm, load_identity_hsmSeal an identity with a key that never leaves a hardware security module (PKCS#11).
backend_infoReports library versions and which profiles work on this machine.

Stability promise

  • Within API version 1, no function, argument, default or error type changes incompatibly.
  • Files in format v3 stay readable by every later release.
  • Any incompatible change gets a new API version, a changelog entry and a deprecation period.
  • An automated test compares the code with the documented API on every change.

Requirements

  • Python 3.12 or 3.13 on Linux (x86-64, ARM64) or macOS.
  • liboqs for SLH-DSA, built from a pinned commit by the included script. Profile A works without it.
  • Or no installation at all: the container image for Intel and ARM.
  • Optional: a PKCS#11 hardware security module for key custody.

Building on ECRE?

During the private beta we share the SDK package, the developer guide and the test vectors with integrators. Tell us what you are building. The SDK is provided under a commercial licence.

Request SDK access

Our security promise

After you install ECRE, we cannot see your keys or your files, and we cannot change the software on your systems. Every new version is public and signed, so nobody, ECRE included, can slip a harmful version to you in secret.

Read the full promise, its limits and how to check it