# How SecureSecretStore's encryption works

> Every value is encrypted on your own device with the age file format, to the public key of each device allowed to read it. We store the ciphertext and the metadata around it, never a value or a private key.

Updated 2026-12-05 by SecureSecretStore.

SecureSecretStore is not open yet. This page describes the design the service is being built to, so you can judge it
before you trust it with anything. Where the design has limits, they are listed here too.

## The short version

- Your values are encrypted and decrypted only on your own devices.
- Each value is a file in the age encryption format, a small, openly specified format
  ([the age specification](https://c2sp.org/age)). The [age encryption tool](https://github.com/FiloSottile/age) or
  any other implementation of the format can decrypt it with your recovery kit's key, so you are never locked in.
- Every device you use, and every AI agent runtime, has its own key pair. A device's private key never leaves it.
  The one key made to be carried away is the recovery kit, which you keep offline.
- We store ciphertext and the metadata around it. We never receive a value, a private note or a private key.

## What is a key pair here?

Each device holds a key pair in the age format, of the classic X25519 kind:

- the **public key**, which starts with `age1`, is shared and registered with us;
- the **secret key**, which starts with `AGE-SECRET-KEY-1`, stays on the device.

Anything encrypted to the public key can be opened only with the matching secret key. To make one, see
[Make an age key pair](https://securesecretstore.com/help/make-an-age-key-pair). For what the two halves are and how the age encryption tool uses them, see
[What is an age key, and how do I make one?](https://securesecretstore.com/articles/what-is-an-age-key).

## What happens when you save a secret?

A secret is a name plus a list of versions. When you save a value:

1. Your device looks up the public key of every device allowed to read the secret: yours, your teammates', your
   agents' and your recovery kit's.
2. It encrypts the value once, as one file in the age format. Your device makes a random 128-bit file key, as the
   format specifies, encrypts the value with it, and then wraps that file key once for each reader. Each wrapped copy
   is a short block in the file's header called a recipient stanza.
3. Your device uploads that file, which we call the envelope. We store it as a new version.

Because the age format carries one stanza per reader, sharing needs no custom key wrapping of our own. The
cryptography is the age format's, unchanged:

| step | primitive |
|---|---|
| wrapping the file key for each reader | X25519 key agreement, HKDF-SHA-256, ChaCha20-Poly1305 |
| protecting the header from edits | HMAC-SHA-256 |
| encrypting the value | ChaCha20-Poly1305, in 64 KiB chunks |

Each row is from the [age specification](https://c2sp.org/age).

## What happens when you read a secret?

Your device, or your agent's code, downloads the latest envelope and decrypts it locally with its own secret key.
The value never passes through our servers in the clear. For an agent, that also means the value never needs to enter
the model's context: the code that calls the other service decrypts it. [How to give an AI agent an API key without putting it in the prompt](https://securesecretstore.com/articles/ai-agent-api-keys-outside-the-prompt)
walks through that pattern.

## What happens when you share or revoke?

Every change is a new record, and old records are never edited.

- **Sharing** encrypts the current value again, to the larger set of readers, as a new version.
- **Revoking** encrypts it again to the smaller set and flags the secret for rotation. The person or agent you removed
  may have kept a copy, so the value itself has to change at its source, for example by issuing a new API key at the
  provider.
- **Destroying** deletes every stored envelope of the secret. The record that it happened remains.

## What can SecureSecretStore see, and what can it never see?

| we can see | we can never see |
|---|---|
| vault and secret names, and tags | values |
| members and their roles | private notes, which are sealed inside the value |
| each device's public key and fingerprint | any private key |
| when each version was made, rotation and expiry dates | |
| the audit trail: who read what, when, from which IP and client | |

Names are labels you choose, and they are not encrypted. **Never put a secret in a name.** If even a name would say too
much, use an opaque one and write its meaning in the private note.

The size of an envelope is also visible, and an age file reveals the exact length of the value inside it. A 40-byte
value makes a larger envelope than a 20-byte one. For what an end-to-end encrypted store can and cannot learn in
general, see [What an end-to-end encrypted secret store can and cannot see](https://securesecretstore.com/articles/what-an-end-to-end-encrypted-secret-store-can-see).

## What does a breach of SecureSecretStore expose?

Ciphertext and metadata. A copy of our database gives an attacker the names, members, dates and audit trail above, and
envelopes they cannot open without a private key from one of your devices.

## What does the design not protect against?

- **A wrong public key.** A hostile or compromised server could hand your device someone else's public key in place of
  a teammate's, and your device would then encrypt to the wrong reader. The defense is the fingerprint: apps show each
  key's fingerprint, remember it the first time, and warn when it changes. Compare a new teammate's or agent's
  fingerprint with them directly, outside the site. See [Check a fingerprint](https://securesecretstore.com/help/check-a-fingerprint).
- **A withheld or rolled-back version.** A server could show you an older version instead of the latest. Versions are
  chained by hash, so a client that has seen a later version notices.
- **A compromised device.** Anything a device can decrypt, malware on that device can decrypt too.
- **Downtime.** The service runs as-is, with no uptime guarantee. An agent that must keep working through an outage
  keeps its own cached copy of the envelope, never of the value.

## How does a password fit in?

Your password signs you in. It never decrypts anything. A value opens only with a device key, so someone who learns
your password still cannot read your secrets without one of your devices or your recovery kit.

In a browser, the device's secret key is stored encrypted under a WebCrypto key the page cannot export. If you add a
passkey that supports the PRF extension, the passkey wraps it as well, so opening it also takes the passkey.

## What if I lose my devices?

No one, including us, can reset an end-to-end encryption key. Every account must make a recovery kit before its first
real vault opens: a second key you keep offline, and it is simply one more reader on everything you own. See
[A key per device, and the recovery kit](https://securesecretstore.com/help/devices-and-recovery-kit).

## Does SecureSecretStore use post-quantum keys?

Not in the current design. Its device keys are the age format's classic X25519 keys. Since
[version 1.4.0 of the age encryption tool](https://github.com/FiloSottile/age/releases/tag/v1.4.0) (1 December 2026),
`age-keygen` makes post-quantum hybrid keys by default (ML-KEM-768 with X25519, written `age1pq1…`), the tool warns
on any use of a classic key, and the project says future versions will refuse to encrypt to one. The age project explains why on its
[post-quantum warning page](https://age-encryption.org/pq-warning): a value encrypted to a classic key today could be
decrypted by a future quantum computer, if someone records the ciphertext now. Weigh that for any secret that must stay
secret for many years. Rotating a secret limits what a future decryption of an old copy would reveal.

## Has the design been reviewed?

Before launch, an internal review signs this encryption design and its threat model. The site does not describe the
service as "audited". A paid external audit is planned once the service's revenue covers it, and its report will be
published.

## Links

- This page for people: https://securesecretstore.com/help/how-encryption-works
- Every AI version on this site: https://securesecretstore.com/llms.txt

How little we track: no tracking scripts, no third-party scripts, no ad or analytics cookies. https://securesecretstore.com/privacy.md
