Hardware password manager

Your passwords, on a board you already own.

Kleidos is free firmware that turns one of the small ESP32 boards it runs on, from M5Stack and LILYGO, into a hardware password manager. Your passwords stay encrypted on the board, which types the one you pick into your computer or phone over Bluetooth, and only after you have unlocked it on the board itself.

A board, here, is a pocket-size ESP32 device that M5Stack or LILYGO sells finished, in its own case and with its own screen.

  • No app
  • No cloud
  • No account
  • Free

Where the project stands

Have one of these? Pick it below and see Kleidos on yours.

Don't have one? See which one suits you

Modeled case, captured glass Nine boards at one scale. 50 mm Until you pick one, this page shows Kleidos on the M5StickS3.

M5StickS3

The same step, on another board

1. Unlock

You unlock it on the board.

The M5StickS3 has two buttons and no keypad. You hold button A while the dial on its screen fills from 0 to 9 and let go on your digit, one hold per digit. When the last one is set, the PIN is checked with no further press.

  • Key derived with PBKDF2-SHA256: 175,000 iterations on its ESP32-S3
  • The PIN or passphrase is never stored

Modeled case, captured glass

Screen captured on a real StickS3.

the Kleidos PIN screen with the timing arc mid-sweep, no digits entered, on the glass of the modeled M5StickS3 case, turned slightly to the right
Modeled case, captured glass

2. Vault

Your vault, on the board's own screen.

The M5StickS3 holds up to 250 entries and 40 two-factor (2FA) codes. An entry opens as a card: the service, the username, and the password, masked until you ask to see it.

  • Encrypted with AES-256 and authenticated with HMAC-SHA256, checked before anything is decrypted
  • It has no clock chip, so 2FA codes are off as it comes; turned on, they need the time set from the network or your browser since the board last went to sleep

Modeled case, captured glass

Screen captured on a real StickS3.

the unlocked vault list with the six demo entries and their logos, 2FA codes off as this board ships, on the glass of the modeled M5StickS3 case, turned slightly to the left
Modeled case, captured glass

3. Send

It asks, then it types.

Opening an entry sends nothing: the board first asks you what to type. Only once you have chosen does Bluetooth come up: the board connects as a keyboard and types it, one keystroke at a time. Your computer or phone receives keystrokes, the same ones any keyboard sends, and never the vault.

Modeled case, captured glass

Screen captured on a real StickS3.

the GitHub demo entry's card, password masked, on the glass of the modeled M5StickS3 case, turned to the left
Modeled case, captured glass

4. Lock

Then it locks. Radios off.

As it comes, the board locks itself and goes to sleep once a send has gone through. A press while its screen is dark only wakes it: nothing else happens until the next press.

  • Bluetooth off
  • Wi-Fi off
  • The key wiped from memory

Modeled case, screen off

the modeled M5StickS3 case, seen face on, its screen off
Modeled case, screen off

5. Yours

And it is still your board.

Kleidos solders nothing and adds no part. It is firmware: it goes in through the StickS3's own USB port and turns it into a password manager, whether you already own the board or buy one for this.

  • The case, the controls and the port stay as the maker made them
  • The open build leaves the board re-flashable: any other firmware can go over it

Modeled case

the modeled M5StickS3 case, turned to its edge, toward the left, its screen off
Modeled case

Each picture's badge says how I made it, and the legend of the badges explains every kind.

  • Device screen

The fleet

Nine boards, one firmware.

The same vault, the same rules and the same interface, redrawn for each screen. What changes from board to board is how you hold it, how you unlock it, how much it holds and what its hardware adds: a clock chip, a card slot, room for the hardened build. If you have none, compare them below by what you would need from one.

Board You operate it with Screen Chip It holds 2FA codes Card backup Can be hardened
M5StickS3 Two buttons 135×240 LCD ESP32-S3 250 entries, 40 codes Off as it comes; when on, they need a time sync since the board last went to sleep No Yes
M5StickC Plus2 Two buttons 135×240 LCD ESP32 90 entries, 40 codes On as it comes No Yes, on chip revision 3.0 or later
M5StickC Plus 1.1 Two buttons 135×240 LCD ESP32 90 entries, 30 codes On as it comes No No (4 MB flash)
M5StickC Plus SE Two buttons 135×240 LCD ESP32 90 entries, 30 codes On as it comes No No (4 MB flash)
M5Stack CoreInk Wheel 200×200 e-paper ESP32 90 entries, 30 codes On as it comes No No (4 MB flash)
M5Stack CoreS3 SE Touch screen 320×240 LCD ESP32-S3 500 entries, 50 codes On as it comes Yes Yes
M5Stack Core2 v1.3 Touch screen 320×240 LCD ESP32 500 entries, 50 codes On as it comes Yes Yes, on chip revision 3.0 or later
M5Cardputer ADV Keyboard 240×135 LCD ESP32-S3 250 entries, 40 codes Off as it comes; when on, they need a time sync since the board last went to sleep Yes Yes
LILYGO T-Deck Plus Keyboard 320×240 LCD ESP32-S3 500 entries, 50 codes Off as it comes; when on, they need a time sync since the board last went to sleep Yes Yes

Security, said plainly

What it protects against, and what it does not.

It protects against

  • A lost or stolen board. The vault is encrypted at rest, and ten wrong tries in a row erase it and make the board forget every computer and phone it was paired with.
  • A breach somewhere else. There is no server and no account: no copy of the vault is kept anywhere but on the board, unless you export a backup yourself.
  • A radio left listening. Bluetooth is on only to send or to pair, and Wi-Fi only while the admin panel is open or the clock is being synced. Both are off once the board locks.
  • A computer or phone it has never met. Before a new one receives a single keystroke, you confirm a six-digit number on the board's own screen.

It does not protect against

  • A compromised computer or phone. Kleidos types into whatever has the focus, and whatever runs there sees every keystroke. Once a password has left the board, I cannot protect it.
  • Someone who copies the flash memory of an open build. They can then try PINs offline, where nothing counts the tries. A longer PIN or a passphrase slows them down; what stops them is binding the vault to the chip, which is what the hardened build is for, on the boards with the flash for it (on a classic ESP32, from chip revision 3.0).
  • Someone who watches you unlock it. On the boards that dial a PIN, the dial shows each digit as it fills; on the others, your fingers show what you press.
  • Losing the only copy. A board that breaks takes its vault with it, unless you kept a backup. Nobody else holds a copy, so I cannot recover the vault.
  • My own mistakes. I have not had it audited by anybody independent. What I publish instead is the threat model: what stops each attack, and what does not.

I am José M. Requena Plens. I build Kleidos on my own, and these limits are mine to state.

Free software

Free. No payments, ever.

There is nothing to buy from me. You buy the board from whoever sells it, and the firmware is free software under GPL-3.0-or-later: no account, no subscription and no paid tier.

For whoever uses it

One board, one PIN or passphrase, and a vault that stays on it. An admin panel the board serves itself, over its own Wi-Fi, to add entries and back them up.

For whoever builds on it

Pure ESP-IDF, no Arduino. Its own driver for every chip. One source tree and one test suite for all nine boards.

Follow the project.

One person builds it, and says where it stands.

The roadmap lists what is done, what comes next and what I decided against, with the reason. Each of the other sections takes one subject as far as its evidence goes.

  1. Overview

    What Kleidos is, how it works, the nine boards, and how it compares with other hardware password managers.

    The nine boards one by one, and Kleidos beside five other password managers on a small board, then beside an OnlyKey and a YubiKey 5.

  2. Recordings

    Recordings from one board of each kind, and how each picture on the site was made.

  3. Roadmap

    What works, what is being built, and what is still only a plan.

    Still to do: eight steps, in the order they have to happen.

  4. Security

    What attacks it, and what stops each attack.

    It counts twenty-three threats, fifty-one controls that answer them, twenty-four register entries citing a published CVE or advisory, and five of the risks I have accepted.

  5. Measurements

    What the boards I have measured draw, state by state, and how long a charge lasts where I can estimate it.

    Of the nine boards, I have measured one with the measurement system in the battery wire.

  6. Architecture

    How the firmware is put together, one module at a time.

    The firmware in twenty-three modules, in an order no include may climb.