Docs.
The inner workings, in four minutes: where the keys live, what the server sees, how apps dock and how you check the logbook.
Inner workings
You write notes, shelve them in folders and say which app may reach which folder. Your browser scrambles all of it before anything is sent.
- PBKDF2-SHA-256 stretches the passphrase 600,000 times, with a salt only your vault uses. HKDF then splits the result in two.
- One half signs you in; the server stores its hash. The other half stays in the page and unwraps a random root key.
- The root key wraps a random key for every folder. Title, text, tags and the folder's own name are boxed under that folder's key with AES-256-GCM.
- A box knows which note and which folder it belongs to. Put it anywhere else and it will not open.
- The 24 words carry 192 random bits and reach the same root key without the passphrase.
Docking an app
Go to Apps in the vault, give the app a name, tick its folders, make a key. Put the block in its MCP settings and start it again.
{
"mcpServers": {
"airlock": {
"command": "npx",
"args": ["-y", "https://airlock.metaforge.fun/airlock.tgz"],
"env": { "AIRLOCK_KEY": "alk_…" }
}
}
}It needs Node 20 or newer. The connector is one readable file with no dependencies. You can download it and run node connector.mjs instead of npx.
The four tools
folders | Names and counts of what the app was given. |
look_up | Downloads boxes from the ticked folders, opens them locally, looks through them locally. |
open_note | A single note, by id. |
leave_note | Leaves a note in the outer chamber, boxed for your eyes. |
Seals
Every call from an app writes a line before it is answered: time, vault id, app id, kind of call, folder id and a random salt. The SHA-256 of that line is its leaf.
On the hour the leaves of all vaults fold into one Merkle root. The seal is the SHA-256 of the seal number, the hour, the count, the root, the seal before it, and the number and hash of the newest Robinhood Chain block at that moment. Nobody can know a block hash early, so each seal carries a not earlier than date taken from a public chain. Airlock reads the chain and writes nothing to it.
Hours without reads are sealed with the root of an empty list, so a missing hour would show. When no node answers for ten minutes, the hour is sealed without a block and says so.
leaf = SHA256(0x00 | line)
node = SHA256(0x01 | left | right) a lone node moves up unchanged
seal = SHA256(0x02 | [n, hour, count, root, previous, block, blockHash])Check any of it on the seals page or with the Check button in your read log. The maths runs in your browser.
Security
Not independently audited. All cryptography is WebCrypto. Our tests drive an actual server and connector with the code shipped to you; one of them pulls all that is stored for a vault and fails if any word is legible.
The vault page runs under a policy that allows scripts from this site only. Keys live in the page's memory: reload it, or leave it for 15 minutes, and the vault is shut.
Attacks
| The disk is copied | Boxes and hashes walk away. The keys were never on it. |
| An operator is curious | Names, text and tags are boxed. What remains visible is listed under Privacy. |
| Passphrases are tried | Full stretching on each try, with limits per vault and per connection. A weak passphrase stays weak. |
| An app key goes astray | It reaches what you ticked for that app until you pull it. From then on it bounces. What has been seen cannot be unseen. |
| A false inbox key is planted | Apps take the key from a box that only you can write, so the false one is ignored. |
| Past hours are rewritten | That root and all seals after it disagree. |
| The server serves bad code | Not solved. Like every web app with browser encryption, you trust the page you load. The connector file can be pinned and read. |
| Your device is compromised | Not solved. Whoever controls your device can read what you read. |
Privacy
The server can see: a hash of the vault name, sizes and times of boxes, which app id called, which kind of call, which folder id, and the network address of a request while it is being served (used for rate limits, kept in memory only). It cannot see names, text, tags, or what was searched for.
No email, no account, no cookies. Delete the vault in Settings and its boxes, keys, apps and log lines go at once. Sealed hours keep hashes only.
Limits
2,000 memories, 40 folders and 20 apps per vault. 24 KB per memory once sealed. 30 suggestions an hour per app. 600 calls per ten minutes per app. It is early software: keep a backup.
Token
$AIRLOCK is planned for Robinhood Chain through Pons. Its address goes on the home page. You do not need the token for the vault, and Airlock has no wallet button.