raia Command offers optional, per-organization encryption for your document content. When an organization Owner turns it on, Command encrypts the text it stores for each document before saving it, using AES-256-GCM.
What gets encrypted
- The document content Command creates from your files (the converted text used for search, preview and AI delivery).
- Saved connector and agent credentials, such as API keys and access tokens. These are always encrypted, whether or not the setting is on.
Original uploaded files are kept in cloud storage that is encrypted at rest with AES-256.
How it works
Command uses envelope encryption, the same model major cloud providers use.
- Each organization gets its own data key. When encryption is turned on, Command generates a random 256-bit key for that organization alone.
- The data key is locked with a master key. Command never stores the organization's data key in readable form. It is encrypted ("wrapped") with a 256-bit master key that is held as a server-side secret and never stored in the database.
- Each document is encrypted with the data key. Every save uses AES-256-GCM with a fresh random 96-bit nonce, so encrypting the same text twice gives two different results.
- Tampering is detected. GCM includes an authentication tag. If encrypted content is altered, decryption fails instead of returning modified text.
- Decryption happens only on the server, after a permission check. Content is decrypted only after Command confirms the person or agent is allowed to read that document.
Master key (server secret, AES-256)
└── wraps ──> Organization data key (random, 256-bit, one per org)
└── encrypts ──> Document content (AES-256-GCM, new nonce per save)What this protects against
- Database exposure: a copy of the database without the master key shows only encrypted content.
- Cross-tenant mix-ups: each organization's content is encrypted under its own key.
- Silent modification: altered ciphertext is rejected.
Encryption in a post-quantum world
Quantum computers threaten some kinds of encryption much more than others.
- Public-key algorithms (RSA, elliptic-curve): a large enough quantum computer running Shor's algorithm could break these. They are mainly used to set up secure connections and digital signatures.
- Symmetric algorithms such as AES: the best known quantum attack (Grover's algorithm) only halves the effective key strength. AES-256 therefore keeps roughly 128-bit security against a quantum attacker, which is still considered infeasible to break. NIST and NSA (CNSA 2.0) both list AES-256 as suitable for the post-quantum era.
How this applies to Command:
- Stored data (at rest): both the per-organization data keys and the document content use only AES-256. Encryption of stored data involves no RSA or elliptic-curve step, so a future quantum computer has no public-key shortcut to break it. That also addresses "harvest now, decrypt later" attacks on stored data.
- Data in transit: connections to Command use TLS (HTTPS), run by our hosting and network providers. As with most web services today, TLS key exchange depends on public-key cryptography. Post-quantum protection in transit depends on support for hybrid post-quantum key exchange (such as X25519MLKEM768) by both the browser and our providers. This is being adopted across the industry, but Command does not control it directly.
Summary
| Area | Algorithm | Quantum outlook |
|---|---|---|
| Document content (optional, per org) | AES-256-GCM | Quantum-resistant (~128-bit effective) |
| Organization data keys | AES-256-GCM, wrapped by a 256-bit master key | Quantum-resistant |
| Stored credentials | AES-256-GCM | Quantum-resistant |
| Data in transit | TLS (provider-managed) | Depends on hybrid post-quantum key exchange |
Our post-quantum plan
To see how raia is responding to recent news about RSA, and how we will adopt new post-quantum standards as our providers support them, read raia post-quantum readiness.