Skip to content

Post-quantum access control SDK

PQ-CP-ABE Documentation

PQ-CP-ABE is a ciphertext-policy attribute-based encryption (CP-ABE) library and access control SDK for Python, JavaScript / WebAssembly, native C/C++, the command line and HashiCorp Vault.

CoverCrypt provides post-quantum attribute-based encryption with ML-KEM-based key encapsulation, while optional ML-DSA signatures provide message authenticity.

How it works

Post-quantum attribute-based encryption

PQ-ABE brings attribute-based access policies together with cryptography designed to withstand quantum attacks.

Access follows the ciphertext

In ciphertext-policy ABE (CP-ABE), the sender sets the policy and a trusted authority issues keys carrying attributes. The policy protects a data key; AES-GCM encrypts the payload.

Understand post-quantum CP-ABE

Post-quantum with CoverCrypt

For post-quantum CP-ABE, choose CoverCrypt, the SDK's post-quantum ABE backend, with ML-KEM-768 in hybridized or post-quantum mode. AC17 and TKN20 remain classical; ML-DSA adds signatures independently.

Compare schemes and PQ modes

Choose your SDK

  • Python SDK


    Native Python bindings with typed classes, functional APIs, file operations, and CLI support.

    Python guide

  • JavaScript / WebAssembly


    Run the SDK in Node.js or browsers through WebAssembly with TypeScript declarations.

    WASM guide

  • Native C / C++


    Link directly against the native library and use the public ABI without a language binding.

    Native API

  • Command line


    Set up authorities, issue user keys, encrypt, sign, decrypt, and verify from a terminal.

    CLI reference

  • HashiCorp Vault


    Use the Vault secrets engine to centralize authority operations and controlled key issuance.

    Vault integration

  • Architecture


    Understand AC17, TKN20, CoverCrypt, access policies, hybrid encryption, and PQC modes.

    Architecture

Build a policy-based workflow

  • Encrypt files in Python


    Create an authority, encrypt a report for finance admins and check that a viewer is denied access.

    Python file tutorial

  • Encrypt files in JavaScript


    Use the same access policy with the WASM SDK in Node.js and understand browser file handling.

    JavaScript file tutorial

  • Choose an ABE backend


    Compare AC17, TKN20 and CoverCrypt, then interpret the published benchmark for your workload.

    Scheme comparison

Cryptographic building blocks

  • CP-ABE + AES-GCM
    Attribute-based key protection with authenticated bulk encryption.

  • ML-KEM
    Post-quantum key encapsulation inside supported CoverCrypt modes.

  • ML-DSA
    Optional post-quantum signatures for authenticated encrypt/decrypt flows.

  • SHA3-256
    Cryptographic hashing for data integrity verification and secure fingerprinting.

  • Curve25519
    Classical elliptic-curve key agreement used by CoverCrypt in hybridized mode.

  • CoverCrypt
    Policy-based key encapsulation with classic, post-quantum, and hybridized modes.

Security model: AC17 and TKN20 remain classical ABE schemes. ML-DSA signatures do not make their key encapsulation post-quantum. CoverCrypt provides the post-quantum confidentiality path when configured with the applicable ML-KEM mode.

Reference

Parameters and ciphertext format · Build from source · Benchmarks · Release notes