How encryption works

ShellDeck encrypts your vault on your device. The sync server, ours or your own, only stores ciphertext: it can't read your hosts, keys or snippets, and we can't either.

Keys and how they are derived

Your master password turns into 64 bytes through Argon2id. Half of them is the auth key, which signs you in. The other half is the wrap key, which never leaves the device.

master password ──Argon2id──► 64 bytes ├─ auth key → server (hashed again) └─ wrap key → stays on the device wrap key ──XChaCha20-Poly1305──► vault key (random, 32 bytes) vault key ──XChaCha20-Poly1305──► every host, key and snippet

The wrap key encrypts the vault key, a random key created once per vault. The vault key encrypts every record. Changing the password only re-encrypts the vault key, so nothing else has to be uploaded again.

Algorithms

Key derivation
Argon2id, 64 MiB of memory, 3 passes, a random 16-byte salt per account.
Encryption
XChaCha20-Poly1305 with a random 24-byte nonce for every record. The record id is bound in as associated data, so ciphertext can't be swapped between records.
Keys
256-bit, from the operating system's secure random number generator.
On the server
The auth key is hashed once more with Argon2id, so a stolen database doesn't let anyone sign in.
In transit
HTTPS for the API and the change notifications, on top of the encryption above.
Key sharing
A hybrid of X25519 and ML-KEM-768 (FIPS 203), the post-quantum standard. A sealed copy stays secret as long as either of the two holds.

What the server stores

Account
Email, the Argon2id hash of the auth key, the salt and cost of the key derivation.
Keys
The vault key wrapped with your wrap key, and a second copy wrapped with the recovery key. Neither opens without what only you have.
Data
Encrypted records and their revision numbers. Nothing else about your hosts: not their names, addresses, users or count by type.
Devices
The name of each signed-in device and when it was last seen, so you can sign one out remotely.
Two-factor sign-in
If enabled, the TOTP secret. It protects the sign-in only; your data doesn't depend on it.

The master password, the wrap key and the vault key are never sent anywhere.

On your device

The vault is a local encrypted file (IndexedDB in the browser), so the apps open and connect without internet. It unlocks with the master password, or with Windows Hello or a fingerprint on Android, and locks itself on a timer or when the app is minimised.

You can use ShellDeck without an account at all. Then the vault never leaves the device.

Locking, host key checks and two-factor sign-in are described in the security overview. Security overview

Shared vaults

A shared vault has its own random vault key. Every account has an identity key pair, and an admin's app seals a copy of the vault key to each member's public key; the server stores these copies but can't open them. Admins compare key fingerprints with a member before the first copy is sealed.

Sealing combines X25519 with ML-KEM-768, the post-quantum key encapsulation standardised as FIPS 203. Someone who records the copies today and gets a quantum computer later still can't open them: they would have to break both.

Connections

SSH, SFTP, port forwarding, RDP and VNC connect straight from your device to your servers, directly or through your own jump hosts. Nothing goes through our servers. A host's key is remembered on the first connection, and if it changes later the app refuses to connect and tells you, before any password or key is sent.

SSH sessions use the post-quantum hybrid key exchange mlkem768x25519-sha256 whenever the server offers it (OpenSSH 9.9 and newer), and fall back to X25519 otherwise.

Account recovery

At sign-up you get a recovery key: 160 random bits, shown once. It's the only way back in if you forget the master password. We can't reset the password for you, because we never have your key.

Your own server

The encryption is the same with a server you run yourself; self-hosting only decides where the ciphertext lives. Self-hosting guide

Standards and further reading