Relocker GitHub

Early · security audit in progress

A password vault you host yourself, on a server that can't read it.

Relocker encrypts your passwords, passkeys and keys on your own devices and syncs them through a server you run. The server only ever stores ciphertext.

The repository stays private until the security audit is done.

The Relocker web app: a list of logins, API keys and notes, and one login open with its username, a hidden password and a live one-time code.
Works on
  • Web
  • Chrome
  • iPhone
  • Mac
Hosts on
  • Cloudflare Workers
  • Docker

Features

Everything you sign in with, in a vault for one.

Logins with their one-time codes, passkeys, API keys, certificates with their expiry dates, and secure notes.

  • Zero knowledge

    Titles, websites, usernames, notes and every secret are encrypted before they leave your device.

  • Three things to sign in

    A master password, a Secret Key from your printed Emergency Kit, and a one-time code. A stolen database can't even be used to start guessing.

  • Fills where you sign in

    A click in Chrome, or AutoFill behind Face ID and Touch ID on iPhone and Mac. A login is only offered on the site it was saved for.

  • Each device gets what it needs

    Chrome receives the key for logins and nothing else, so it can't open your API keys or passkeys.

  • Devices you approve

    Every device is linked through an approval that needs a fresh code. An iPhone links by scanning a one-time QR code.

  • Backups you can check

    Download an encrypted backup, verify that it opens, and restore it onto an empty server. A plain export is there if you ever want to leave.

  • A record of what happened

    Sign-ins, new devices, exports and item changes are listed in an activity log.

  • Kept to your network

    One setting makes the server refuse every address but your own. Away from home, the apps keep filling from the copy they hold.

  • Nothing extra

    No email, no analytics, no third-party crypto libraries: WebCrypto in TypeScript, CryptoKit and CommonCrypto in Swift.

How it works

Keys are made on your devices, and stay there.

Every key comes from your master password and a Secret Key that never leave your devices. A copy of the database, the server's logs and the host itself hold nothing that can open an item.

  1. On your device

    The master password is stretched with PBKDF2 and combined with the Secret Key. That gives two unrelated keys: one unlocks the vault, the other signs you in.

  2. On your server

    The server stores each item as ciphertext, and only a hash of the sign-in key. It checks that key and your one-time code, then hands back ciphertext.

  3. Back on your device

    The unlock key opens a key for each collection, and each item is sealed under its own key. Its ID and version are bound into the encryption, so one item can't be passed off as another, or as an older version.

The apps

One vault everywhere, and one code kept apart.

Relocker comes with a web app, a Chrome extension, iPhone and Mac apps, and a small offline app for the code that unlocks it all.

Relocker

Web · Chrome · iPhone · Mac

  • Web app: the whole vault, the password generator, devices, backups and the activity log.
  • Chrome extension: fills logins and one-time codes on a click, with no always-on content script.
  • iPhone and Mac: AutoFill for passwords and passkeys, unlocked with Face ID, Touch ID or Apple Watch. Relocker is your passkey provider.

Relocker OTP

iPhone · offline

  • The code that unlocks Relocker, kept out of the vault and out of the Relocker app. A compromised Relocker app gets only your logins and passkeys.
  • Offline: it makes no network requests and shares nothing with Relocker. Its accounts are sealed on the phone, with encrypted backups.
  • Optional: it's the same phone, not a second device, and any authenticator app works in its place.

Self-host

Pick where it runs. The vault is the same either way.

One server codebase, run as a Cloudflare Worker or as a container. The apps and the extension simply point at your address.

Cloudflare

Runs on
Workers
Database
D1
HTTPS
Cloudflare's
Cost
Fits the free plan
cd apps/worker
cp wrangler.jsonc wrangler.local.jsonc
npx wrangler d1 create relocker
npm run d1:migrate:production
npm run deploy

Docker

Runs on
Node, on any machine
Database
A SQLite file
HTTPS
Caddy, included
Cost
Whatever the machine costs
cd deploy/docker
cp .env.example .env    # your domain
docker compose up -d
docker compose logs relocker    # setup token

Then open your domain, create the vault and print your Emergency Kit. The extension and the Apple apps are built from source and pointed at your server.

Security

What your server sees, and what it never does.

Your server stores

  • Ciphertext, one row per item
  • A hash of your sign-in key
  • Your one-time-code seed, encrypted under a server key
  • How many items each collection holds, their rough sizes and timestamps

It never sees

  • Your master password or Secret Key
  • Any key that opens an item
  • Titles, websites, usernames or notes
  • What any item contains
  • A stolen database gives an attacker ciphertext. Without the Secret Key they can't begin to guess the master password.
  • A compromised server could serve a tampered web app and catch your master password the next time you sign in on the web. That's true of every web-based vault. The extension and the Apple apps don't load code from the server, and they notice replayed or rolled-back data.
  • Nobody can reset your master password. There is no server-side recovery. Your Emergency Kit is the recovery plan.

Questions

Good to know.

What happens if I forget my master password?

The vault can't be opened. Nothing on the server can decrypt it, by design. Write the master password on your printed Emergency Kit, or keep it somewhere equally safe.

What if I lose my phone?

Replace the lost authenticator first, with your master password, your Secret Key and control of your server. Then revoke the phone on the web app's Devices page. Keep your host account's password and second factor somewhere you can reach without Relocker and without the phone.

Why is Relocker OTP a separate app?

The code that guards your vault can't be kept in the vault: you would need the vault open to sign in to it. Keeping it out of the Relocker app as well means a compromised Relocker app gets only your logins and passkeys. Any authenticator app works in its place.

Can a family or team share a vault?

No. Relocker is built for one person. It has no sharing, roles or organisations.

Do I have to use Cloudflare?

No. The same server runs as a Docker container with a SQLite file. Cloudflare is the easy default: there's no machine to patch, and the free plan covers a personal vault. Either way the server only holds ciphertext.

Are the apps in the App Store or the Chrome Web Store?

No. You build the extension and the Apple apps from source. A build installed from Xcode with a paid Apple developer account has to be reinstalled once a year.

Can I move my passwords out again?

Yes. The web app exports everything as JSON, or logins as CSV.

Your passwords, on your server.

The source opens on GitHub under the MIT license once the security audit is done.

GitHub