Hardpass builds a Pi Zero password manager around pass and USB keyboard emulation

Pi Zero, password manager

This is the read-only HTML version. For the full Visual Space experience, open the app.

Pi Zero, OLED, keypad — Images

Pi Zero, OLED, keypad — Images

Source: RPi Zero WiFi-Enabled Hardware Password Manager on Hackaday.io · gir

USB HID, smart cards

An OLED and keypad put password selection on the device, while existing Linux tools handle the password store. Hardpass reached a working menu, but its planned smart-card key storage exposed a harder dependency: a reader chip is only useful if its driver still works.

🔥 1

Hardpass aims to make a Raspberry Pi Zero carry your passwords and type a selected login into a connected computer. Creator gir shared the hardware password manager on Hackaday.io, pairing an OLED and button matrix with pass, the UNIX Password Manager, rather than writing a new cryptographic system. Started on February 7, 2016, the project offers a useful look at both sides of a small Linux appliance: getting the interface into a compact package, and keeping the software underneath it usable.

The architecture is straightforward. The Pi is designed to appear over USB as both a keyboard, for entering credentials, and an Ethernet adapter, for SSH access. Password selection and master-passphrase entry belong on the device itself. Later work would try to move private-key storage onto a smart card—but that addition became the project's largest documented obstacle.

One USB connection, two jobs

Hardpass uses Linux's libcomposite driver to combine the keyboard and network functions. That distinction matters: keyboard emulation is the output path for credentials, while USB networking gives the builder a way to administer the Pi without a separate display or keyboard.

The original Wi-Fi plan used an ESP module so the device could fetch password-store updates through Git, a capability of pass. The listed parts include an ESP-03 and a 0.96-inch SSD1306 OLED; subsequent logs describe revised hardware, including an ESP12 tucked beneath a board and, later, a Pi Zero W. These are stages of the build, not a single fixed bill of materials.

Host compatibility complicated the combined USB approach. In the 2016 discussion, a builder reported trouble connecting the composite setup to Windows. Gir offered a legacy g_hid alternative that dropped Ethernet emulation. The builder subsequently reported that the driver worked in Windows, though the test intended to type a letter still wasn't producing output. That's useful progress, but not evidence of a fully working Windows password-entry workflow.

The tradeoff is easy to miss: falling back to keyboard-only mode also removes the USB SSH connection. A workaround for the host can take away a convenient route for debugging the device.

The menu worked before the enclosure was settled

In the January 31, 2017 assembly update, gir reported a working board and menu. The keypad used * to move up, # to move down and 0 to select. Direct number-key shortcuts and button debouncing were still on the to-do list.

A header let gir swap hardware revisions without dedicating a Pi to every board. The resulting assembly was described as roughly car-key-fob-sized; omitting the header could reduce board-to-board thickness to about 8 mm. That is a practical prototype compromise: a little extra height buys much easier iteration.

The display also moved from a breakout module to circuitry integrated onto the custom PCB. That change brought its own problem. In July 2017, gir reported being unable to reset the OLED with an RC circuit and replacing it with an APX803-based circuit used in Adafruit's design.

By August 25, 2017, the stack included the interface board, a Pi Zero W and a smart-card interface PCB. Gir measured 12 mm to the top surface of the upper board, but the smart-card circuit was still untested while awaiting a capacitor. Finishing the hardware, improving the UI and designing a case remained next steps.

The smart-card plan depended on an aging driver

The proposed smart-card addition followed the same principle as using pass: reuse an established cryptographic stack. In the March 14, 2017 proposal, gir chose a GnuPG card because GnuPG—and therefore pass—already supported it. The stated goal was to keep the encrypted private key out of an attacker's reach if the device were lost. That was a design objective, not a demonstrated security result.

The initial interface used a Philips/NXP TDA8029 to bridge the card protocol to serial data. Finding an existing driver made the chip look promising. Only after preparing the hardware did gir discover how much work that dependency needed.

In the January 30, 2018 update, gir explained that the original driver targeted a very old PC/SC version and lived outside the main distribution. Later changes in a GitHub repository had not produced a complete implementation. The smart-card interface still wasn't working, and gir reported little progress over the preceding year.

The proposed replacement was Microchip's SEC1210, another UART smart-card interface chip. According to gir, its driver had entered mainline PC/SC the previous May. Replacement PCBs had been ordered, but had not yet arrived; the QFN package also presented a new assembly challenge. The visible logs don't establish a successful SEC1210 build. An August 2019 reply does confirm that gir abandoned the older TDA chip because its drivers no longer worked with modern tools.

For builders considering a similar device, the supplied Hardpass repository and HID-sending repository are starting points, not proof of a finished security product. The strongest lesson here comes before PCB layout: test the peripheral's driver against the software stack you actually intend to use. Hardpass could reuse password encryption and USB gadget support, yet one unsupported reader driver was enough to stall the next hardware revision.

Source: RPi Zero WiFi-Enabled Hardware Password Manager

Hardware

3 Followers

A workshop for electronics and physical computing. Share circuits, boards, tools and prototypes; work through measurement and debugging, compare components, and document the choices that turn an idea into working hardware.

Visual Space is built for projects like this—where creators collaborate, organize goals, and grow communities around real work.