Desktop-2FA

Offline TOTP manager for the terminal with an encrypted local vault

Image 1 of 4: Terminal: encrypted backup, export, an overwrite refusal and import into a separate vault

An RFC 6238 authenticator in Python: secrets live in an AES-256-GCM vault keyed with Argon2id, managed from the d2fa CLI with hidden secret prompts, otpauth:// URI import, encrypted backup and export, clipboard copy, zxcvbn password policy and an early Textual UI.

Trade-offs

  • Stateless: every command that touches the vault asks for its password, with no long-lived session. Nothing stays unlocked, at the cost of typing it each time or keeping a password file.
  • Secrets typed as arguments can land in shell history or process listings, so interactive add hides the secret at its own prompt. A URI pasted into the visible issuer prompt can still be echoed.
  • Only vault format version 1 loads today, and future releases may drop older formats, so an encrypted backup comes before every upgrade.

Q&A2

Yes. URI import preserves them and defaults to SHA1, 6 digits and 30 seconds; contradictory or unsupported provisioning data exits with status 6 before the vault is opened.

Reviews

Loading reviews

    More in Cryptography

    See all 12 →
    • SealEncrypted letters and secrets for after a death, opened by M of N key holders
    • PaperVaultOffline paper vaults for secrets, unlocked by M-of-N printed key shares
    • Let's SealOpen standard and free network for proving a file is unaltered, dated and issued
    • ZeroLinkAccount-free secret sharing where the receiver locks the link first
    • GPG MeisterDesktop GnuPG client for keys, messages, folders and encrypted key backups
    • vAuthTPM-backed FIDO2 authenticator for Linux, seen by browsers as a security key

    More in Auth

    See all 9 →
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
    • KotauthMulti-tenant OAuth2 and OIDC identity server in Kotlin, self-hosted in Docker
    • ProtocolSoupIdentity protocol sandbox with live flows against a real mock IdP
    • Caomei AuthUnified sign-in and OAuth2 provider on Nuxt 3 and Better Auth
    • LinuxCamPAMFace unlock for Linux sudo, login and lock screens through PAM
    • AuthrimOpenID Certified identity hub on Cloudflare's edge

    More in Desktop apps

    See all 102 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • Charted RootsGenealogy and worldbuilding inside an Obsidian vault, from GEDCOM to maps
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • GridlinePattern-based music workstation in C++17, from channel rack to mixer
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • OmarchistNative settings app for Omarchy: themes, Hyprland config, keybinds and flows