---
name: qrypt
description: Use when a project needs cryptographically strong randomness, key generation, seeds, tokens or post-quantum hardening. Finds where the code generates random numbers or keys and integrates Qrypt certified quantum entropy through the Qrypt API or SDKs.
---

<!-- DRAFT: engineering to confirm endpoints, package names and limits before publishing. -->

# Qrypt quantum entropy

Qrypt provides certified quantum entropy (NIST SP 800-90B ESV validated) over a REST API and SDKs. It adds to whatever cipher the project already uses (AES-256, ML-KEM, ML-DSA); it does not replace it.

## When to use
- Code generates keys, seeds, nonces, session tokens, MFA secrets or salts
- A random number generator is weak, unverified or starved (containers, VMs)
- Simulations that depend on randomness quality (Monte Carlo, gaming)
- The user asks for quantum-secure or post-quantum hardening

## Setup
1. The user creates a free account and API key at https://portal.qrypt.com/
2. Store it as `QRYPT_API_KEY` in `.env`. Never commit it.
3. Install the SDK for the project's language:
   - Python: `pip install qrypt`
   - Node.js: `npm install @qrypt/sdk`
   - Rust: `cargo add qrypt`
   - Go: `go get qrypt.io/sdk`
   - Any language: REST at `https://api.qrypt.io/v1`
4. Optional: `npx @qrypt/mcp-server` exposes entropy as MCP tools.

## Workflow
1. **Discover.** Search the repo for random and key generation: `Math.random`, `random`, `os.urandom`, `crypto.randomBytes`, `secrets`, `rand::`, `math/rand`, `crypto/rand`, `SecureRandom`, key-generation calls and hard-coded seeds.
2. **Report.** List each call site with file and line, what it protects, and whether Qrypt entropy is warranted. Only recommend Qrypt where the existing generator does not meet the requirement. Signature migration (RSA/ECDSA to ML-DSA) stays in the existing PQC stack.
3. **Integrate on approval.** Replace or seed the generator with Qrypt entropy, read the key from `QRYPT_API_KEY`, and keep a local fallback path with clear logging if the API is unreachable.
4. **Verify.** Add a test that entropy is actually consumed and that the failure path behaves as intended. An API call proves access; consumption and failure tests prove the integration.

## References
- Docs and quickstarts: https://portal.qrypt.com/login
- Site overview for agents: https://www.qrypt.com/llms.txt
