Skip to content

Password vault

The password vault stores login credentials directly on the badge’s secure element. Each entry holds a title, username, password, URL, optional notes, and an optional reference to a 2FA slot. Entries can be typed into a computer or phone over a HID keyboard connection (see Auto-type).

Entries live in the TROPIC01 secure element’s R-memory, one entry per slot. The vault is assigned R-memory slots 132 through 500, so it can hold up to 369 entries.

Each write goes through the secure element’s headered R-memory API: a metadata header (with an integrity checksum) plus the entry payload. Writes are rejected while the badge is locked or in alarm mode.

Each entry has the following fields. The limits are the maximum number of characters each field can hold.

FieldMax lengthNotes
Title24Used as the entry’s name and list label.
Username64Optional.
Password64Optional; can be auto-generated (see below).
URL96Optional.
TOTP slot0-254Optional reference to a 2FA slot.
Notes173Optional free text.

The notes limit (173 characters) is what remains of a R-memory slot after the header and the fixed fields, so it depends on the other fixed-size fields, not on how much you typed elsewhere.

From the main menu, open Passwords.

The list shows New Entry first, then every stored entry sorted alphabetically by title (case-insensitive).

Footer hint: Y View   3 Menu   N Back

  1. Open Passwords → select New Entry.
  2. Step through the wizard, one field per screen, in this order: TitleUsernamePasswordURLTOTP slotNotes.
  3. Confirm the last step to save. A “Saved” toast appears and you return to the list.

On the Password step, the hint reads x=Random Y=OK N=Back. Entering a single x generates a random 16-character password from the set a-z A-Z 0-9 $ ! % =. The random bytes come from the secure element’s hardware RNG, falling back to the ESP32 RNG if the secure element is unavailable.

Select an entry (or press Y) to open its detail view, which shows the title, username, password, URL, the linked TOTP slot number (or empty), and notes.

If a HID keyboard is connected, the detail view shows a Y Type hint and the footer Y Type   2/8 Scroll   N Back. See Auto-type.

On the list, highlight an entry and press 3 to open its action menu:

  • View - open the detail view.
  • Edit - re-run the wizard pre-filled with the existing values.
  • Delete - asks for confirmation, then removes the entry.

The action menu on New Entry offers only New Entry.

The TOTP slot field stores the slot number of a 2FA entry as a reference (0-254, or none). It is a plain numeric reference: the detail view shows the linked slot number, but the password vault does not itself generate or type the 2FA code. Generate and type 2FA codes from the 2FA menu.

The vault is also scriptable over the serial console:

CommandPurpose
PASSWORD LISTList entries (sorted by title) with their slot numbers.
PASSWORD GET <slot>Show one entry.
PASSWORD ADD <slot|x> <title> <user|x> <pw|x> <url|x> <totp|-> [notes]Add an entry; x for next free slot, x for password to generate one.
PASSWORD EDIT <slot> <field> <value>Edit one field (title, username, password, url, totp, notes).
PASSWORD DEL <slot>Delete an entry.

Vault entries are included in the badge’s encrypted backup export and restore. On import, an existing entry with the same title is overwritten; otherwise a new slot is allocated.