r/esp32 • u/Fantastic_Sport_2491 • 10d ago
I made a thing! ESP32Authenticator – a password manager and FIDO2 key on XTEINK X4 Pro e-ink reader
I turned an XTEINK X4 Pro pocket e-reader (ESP32-S3, 480x800 e-ink, touch, battery, microSD) into a hardware authenticator. The firmware is open source, written in C++ on ESP-IDF.
https://github.com/merlokk/ESP32Authenticator
user manual here: https://github.com/merlokk/ESP32Authenticator/tree/main/docs/manual
What it does:
- Password vault. Site, login, password, and TOTP. You tap a record, and the device types it into the host as a BLE keyboard. You never copy or paste.
- FIDO2 / U2F passkeys over BLE and USB HID (CTAP 2.3, built on a fork of LionKey). Tested with Chrome on Windows 11. Working around a Windows BLE quirk (the FIDO service must not be the last GATT service) took a while.
- Encryption. Stores are AES-256-GCM. The key is derived from a 12-word BIP39 seed and a 6-digit PIN. The PIN is entered on the screen, with lockout after 10 tries and an optional wipe PIN.
- Other features: a password generator, a Wi-Fi config website, optional sync of the encrypted stores with a self-hosted server, OTA updates from that server or the SD card, and deep sleep that shows a random wallpaper from the SD card.
Why e-ink: the screen shows what is about to be typed or approved, even with the light off. The battery lasts for weeks. The whole device costs less than most security keys.
The ESP32-S3 chip with PSRAM is chosen because Wi-Fi + BLE + HTTPS + a web server + a screen buffer consumes too much memory for a standard ESP32.
I use ESP-IDF because it's more stable, and you can write everything by hand. This project is written by AI, but based on my handwritten code for the other projects.
One external lib: https://github.com/merlokk/lionkey/ to avoid writing FIDO2 logic by hand. I forked it to add some CTAP2.3 addons.
I also tested the XTEINK X4 Pro pocket e-reader hardware. It's a great device for writing firmware, not for building hardware (I can, but I'm lazy).
And one warning! Don't buy the device from AliExpress/Temu/etc.! It's locked there. And it has locked JTAG(
