MuradKey: a security key I'm building from parts still in the mail
MuradKey is a security key I'm building on an M5Stack Cardputer ADV: a password vault, 2FA codes and, later, a real token with a TROPIC01 secure element, offline and open source. The parts are still in the mail, so here is the plan and how it comes together.
A YubiKey looks like a USB stick that never grew up. It hangs from a keyring, it has one button, and it does a single job very well: it proves that the person logging in is really me, without ever revealing the secret it uses to prove it.
MuradKey is my attempt at a key that also has a screen, a keyboard and a clock. The name is provisional. Right now the project is three planning documents, one small computer on my desk and a parcel somewhere between China and Brazil, so this post is about what I'm going to build and how, before a single line of firmware exists.

What a security key does #
Inside a key like the YubiKey1 there's a chip that holds secret keys. When a website wants to check who's there, it sends a challenge, which is just a handful of random bytes. The chip signs those bytes with a private key that never leaves the chip and sends back only the signature. The website checks it against the public key it saved when the device was registered. The private key stays home the whole time, so a stolen password alone gets nobody in.
The button matters as much as the chip. The key only signs when a finger touches it, which stops malware on the computer from quietly collecting signatures in the background.
What the button can't do is say what's being approved. A touch means yes, and the question behind that yes stays invisible. A key with its own screen could show the question first, and that's the starting point of MuradKey.
The idea #
MuradKey puts a few familiar tools into one physical device with its own screen and keyboard: a security key, a password vault, a 2FA code generator and a small safe for secrets. It works offline by default. There's no account to create, no cloud and no server it needs to talk to.
I don't want to copy the YubiKey, and a homemade gadget won't get to claim the security of a certified device. What I want is to learn how these things work from the inside and end up with something useful, open and verifiable. The whole project will be open source, under a license I'll pick once I know what the dependencies allow.
One more decision shapes everything: no custom circuit board. MuradKey is built from off-the-shelf parts that plug into each other, which keeps the work on the firmware and on security instead of on soldering and plastic.
The body: a computer the size of a card #
The base is the M5Stack Cardputer ADV, which I already own. M5Stack sells it as a card-size computer, and it packs an ESP32-S3 chip, a 1.14-inch screen of 240 by 135 pixels, a 56-key keyboard, a 1500 mAh battery, a microSD slot and USB-C.

For a security key, the screen and keyboard are the whole point. The PIN gets typed on the device itself, so it never travels through a computer that might be infected. Before anything sensitive happens, the screen shows what's being asked and waits for a Y or an N.
Wi-Fi, Bluetooth, the microphone and the speaker get switched off wherever the hardware allows it, since a box that keeps secrets has no reason to listen to the room.
The modules #
Three small modules connect to the Cardputer, each one for a job the Cardputer can't do alone.
A clock #
Most 2FA apps show six digits that change every 30 seconds. Those are TOTP codes2, calculated from a secret shared with the website and from the current time. Both sides run the same math, and when their clocks agree, the numbers match. A TOTP generator with the wrong time is a random number generator with extra steps.
The Unit RTC is a tiny clock with its own battery, so it keeps time while the Cardputer is off. It isn't a trusted clock, though. Batteries run out and dates get reset, so the firmware has to notice when the time looks wrong and warn on screen, instead of showing a confident, useless code.

An NFC reader #
NFC is the tap-your-card technology, and some security keys log in by touching the back of a phone. The Unit NFC uses an ST25R3916 chip that reads and writes tags, and M5Stack says it can also pretend to be a card. Whether that's enough to work as a real security key over NFC is an open question, so this module is an experiment. If it doesn't work out, it gets dropped. Either way, seed phrases and passwords will never travel over a tap.

A vault inside the vault #
The most interesting part is the secure element, a chip built for one job: keeping keys and using them without ever handing them over. The main processor asks it to sign something, the chip signs and returns the signature, and the key has no way out.
MuradKey will use the TROPIC01, made by Tropic Square in Prague, on a small board from MIKROE called the Secure Tropic Click. Secure elements are usually black boxes that ask to be trusted. The TROPIC01 has an unusual detail for this kind of chip: most of its design is open for anyone to inspect. It signs with Ed25519 and ECDSA P-256 and does X25519 key exchange, which are the families of keys behind things like SSH, passkeys and modern file encryption.
A secure element doesn't make the whole device invulnerable3. The Cardputer's processor still runs the screen and the keyboard and handles anything stored to be read back later, like a password in the vault. That part needs its own protection, because the chip only guards the keys it holds.

This board isn't in the parcel from China. It comes from the manufacturer, and it's the next thing to order.
How the pieces connect #
The Cardputer is the coordinator. It runs the interface and the protocols, the secure element protects the keys, and the microSD card stores encrypted records and backups. The computer is optional and only shows up in one of the two modes.
Source
digraph muradkey {
rankdir=LR;
bgcolor="transparent";
nodesep=0.3;
ranksep=0.7;
node [shape=box, style="rounded", fontname="Courier", fontsize=11, margin="0.25,0.12"];
edge [fontname="Courier", fontsize=9];
pc [label="computer\n(optional)", style="rounded,dashed"];
card [label="Cardputer ADV\nscreen, keyboard,\nbattery, firmware", penwidth=2];
rtc [label="Unit RTC\nkeeps the time"];
nfc [label="Unit NFC\ntap experiments"];
se [label="TROPIC01\nkeys that\nnever leave"];
sd [label="microSD\nencrypted\nrecords"];
pc -> card [label="USB-C", dir=both, style=dashed];
card -> rtc [label="Grove"];
card -> nfc [label="Grove"];
card -> se [label="SPI, 3.3 V"];
card -> sd [label="SPI, internal"];
}Two problems are already on paper before any code runs. The Cardputer's expansion port puts out 5 V and the TROPIC01 board wants 3.3 V, and feeding it 5 V is a quick way to learn what burnt silicon smells like, so it needs a proper regulator or adapter. That same port also shares wires with the microSD card, which means the two will have to take turns talking.
Two ways to use it #
As a pocket vault. The device works alone. I unlock it with a PIN on its own keyboard, look up a password, read a recovery code or check a 2FA code. No computer is involved.
As a connected token. Plugged in over USB, the computer asks for an operation, like signing a login or an SSH session. The firmware checks its rules, shows on screen what's being asked and waits. The flow has four steps: the computer requests, the screen shows the context, I confirm or cancel, and the device returns only the result. The key stays inside.
The confirmation screen will look something like this, at the real 240 by 135 proportion:
Source
<div style="font-family: ui-monospace, Menlo, Consolas, monospace; background:#0f1419; color:#e6e6e6; width:360px; max-width:100%; aspect-ratio:240/135; border:7px solid #b8bcc2; border-radius:12px; padding:12px 16px; box-sizing:border-box; display:flex; flex-direction:column; justify-content:space-between; font-size:14px; line-height:1.45;">
<div style="display:flex; justify-content:space-between; color:#7aa2f7; font-weight:bold;"><span>MURADKEY</span><span style="color:#9aa0a6; font-weight:normal;">token mode</span></div>
<div>laptop asks for a signature<br>key: <b>demo-ssh-01</b><br>for: ssh login</div>
<div style="display:flex; gap:10px;"><span style="background:#2563eb; color:#fff; padding:2px 10px; border-radius:4px;">[Y] sign</span><span style="border:1px solid #5f6368; padding:2px 10px; border-radius:4px;">[N] cancel</span></div>
</div>What it will do #
The features come in waves, and the order is a proposal that can change once the first experiments are done.
The first wave is about storing things. The vault keeps passwords, notes, API tokens and recovery codes, with search, editing, locking and encrypted backups on the microSD card. Next to it sits a seed vault, a separate drawer for crypto wallet recovery phrases4, with stricter rules for showing and exporting them. The seed vault isn't a hardware wallet: it won't sign transactions or hold funds. For wallets with real money in them, I stick to an offline physical backup and a proper hardware wallet. The same wave brings TOTP and HOTP codes and the first real conversations with the TROPIC01.
The second wave turns it into a token. That means OpenPGP and SSH keys for signing and logging into servers, FIDO2 (the standard behind passkeys), and encrypted files on the microSD card. Private keys are created inside and can't be exported, whenever the hardware and the protocol allow it.
Later, if they fit, come NFC login, age encryption, Nostr and PIV smart card support, plus desktop tools only if they turn out to be necessary.
One feature is out of the first version on purpose: typing passwords into the computer by pretending to be a USB keyboard. It's handy, and it's also a fine way to type a password into the wrong window, so it waits.
The plan #
The work happens in small phases, and a phase only ends when there's evidence that it works: a passing test, a known answer, a backup that actually restored.
| Phase | Name | What happens |
|---|---|---|
| 0 | Review | Pick the stack, write the threat model, plan recovery |
| 1 | Bring-up | Minimal firmware; screen, keyboard, build and restore working |
| 2 | Test vault | Encryption, locking, backup and restore, all with fake data |
| 3 | Clock and OTP | Reliable time; TOTP and HOTP checked against official vectors |
| 4 | Secure element | 3.3 V power, SPI, SDK and the operations the chip really has |
| 5 | USB and NFC | One protocol at a time, tested with real software |
| 6 | Hardening | Signed updates, boot and flash protection, recovery tested |
Source
| Phase | Name | What happens | |-------+----------------+----------------------------------------------------------------| | 0 | Review | Pick the stack, write the threat model, plan recovery | | 1 | Bring-up | Minimal firmware; screen, keyboard, build and restore working | | 2 | Test vault | Encryption, locking, backup and restore, all with fake data | | 3 | Clock and OTP | Reliable time; TOTP and HOTP checked against official vectors | | 4 | Secure element | 3.3 V power, SPI, SDK and the operations the chip really has | | 5 | USB and NFC | One protocol at a time, tested with real software | | 6 | Hardening | Signed updates, boot and flash protection, recovery tested |
ESP-IDF, Espressif's official framework, is the main candidate for the firmware, since it gives the most control over USB and the ESP32-S3's security features. Rust is my personal preference, but C and C++ may fit the official libraries better, and that choice belongs to phase 0. Mixing frameworks without a good reason is off the table.
Rules I'm not breaking #
- Fake data only during development. No real seed phrase, private key or PIN goes near the device until it has been properly reviewed.
- No homemade cryptography. Only mature libraries that other people have already reviewed.
- No burning eFuses5 without a recovery plan that has been tested first.
- No big claims. MuradKey isn't certified, isn't equivalent to a YubiKey and isn't immune to physical attacks.
Where it stands #
The Cardputer is here. A clock, an NFC reader and a bag of cables are crossing the planet from China, and the TROPIC01 board is still to be ordered. I also have a CoreS3 and an ATOM in the drawer, and they only come in after the main firmware works.
Phase 0 needs no parts at all, only reading and decisions. When the parcel arrives, phase 1 starts.
Notes
-
The name mixes "your ubiquitous key" with yubi, the Japanese word for finger. Yubico, the company behind it, was founded in 2007 by Stina Ehrensvärd. ↩
-
TOTP is defined in RFC 6238, from 2011. It's HOTP (RFC 4226, from 2005) with the counter swapped for the time, usually counted in 30-second steps. HOTP moves its counter forward with each code, so it needs no clock at all, only a counter that survives a reboot. ↩
-
The TROPIC01 itself included. In June 2026, the Ledger Donjon team opened the chip's package, fired a laser at the die at the right moment and made it accept firmware without a valid signature (their write-up). It took a lab and specialist equipment, and Tropic Square published a security advisory alongside them. ↩
-
A recovery phrase, or seed phrase, is usually a list of 12 or 24 ordinary words, following the BIP39 standard, that can rebuild a crypto wallet from scratch. Whoever has the words has the wallet. ↩
-
eFuses are tiny one-time switches inside the ESP32-S3. Secure boot and flash encryption are turned on by burning them, and a burned eFuse can't be unburned. A mistake there can leave a board that won't accept new firmware ever again. ↩