Skip to content

About

Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator

Topics

Resources

Security policy

Stars

758 stars

Watchers

15 watching

Forks

Repository files navigation

FreeOTP Plus

FreeOTP Plus (FreeOTP+) is a modern, privacy-focused fork of Red Hat's FreeOTP two-factor authenticator with the following enhancements:

  • Backup, Restore & Easy Migration: Export and import tokens in FreeOTP+ JSON (choosing AES-256-GCM encrypted or plaintext export in any authentication mode) or Key URI (otpauth://) format (with automatic encrypted backup detection and Append / Replace All options), import directly from FreeOTP (FreeOTP Backup XML) and Aegis Authenticator (Aegis JSON, plaintext or password-encrypted, preserving groups and custom icons), and back up custom token images as a .zip archive via Google Drive or any Storage Access Framework document provider
  • Three Authentication Modes: None, App launch (Biometric / PIN), and Token encrypted (AES-256-GCM encrypted token secrets unlocked via biometric or manual key, remembering your biometric unlock preference), with automatic background session locking
  • 100% Offline & Privacy-Hardened: Requires no INTERNET or storage permissions, blocks screenshots across all screens and dialogs (FLAG_SECURE), masks passphrase inputs, offers configurable Copy to clipboard modes (Off / On reveal / Tap revealed code) with sensitive clipboard auto-clearing, and enforces client-side encryption for Android cloud backups (API 28+)
  • Jetpack Compose Material Design 3 UI: Modern single-Activity interface with a Visual menu for Theme (System default / Light / Dark), Timer style (Circle / Bar), and Code grouping (Two groups / Three groups / None, including 5-character codes), plus RTL layout support
  • 450+ Built-in Offline Icons & Custom SVG/Image Support: Automatic heuristic icon matching for 450+ services, a searchable built-in icon picker, and custom raster or SVG token icons
  • Categories, Search & Sorting: Assign multiple categories per token, filter by category (remembered across app launches), search tokens instantly, and sort by account, issuer, or custom drag-and-drop order
  • Rich Token Management: Quick-action Add menu (Scan QR code with token confirmation & icon preview, Paste Key URI, and manual entry with one-tap cryptographically strong random secret generation), new tokens added at the top, editable HOTP counter with −/+ steppers to resync tokens, protected secret reveal, QR code sharing, and URI copy
  • Fast QR Scanning: Powered by CameraX with automatic front-camera fallback on devices without a rear camera, dynamic display rotation, and hardened YUV stride handling
  • Broad Compatibility: Supports Android 7.0+ (minSdk 24) with extensive reliability and security improvements

The codebase is written entirely in Kotlin using Jetpack Compose and modern Android Jetpack libraries.

Get it on F-Droid Get it on Google Play Get it on GitHub

Requirements

  • Android 7.0+

Screenshots

Token List (Light Theme) with Active OTP Code Dark Theme with Category Filter Searchable Built-in Icon Picker Add Token with Live Icon Preview and Categories
Edit Token and Protected Secret Reveal Share QR Code and Copy Token URI AES-256-GCM Token Encryption Key Setup Encrypted Vault Lock and Export Options

Build Dependencies

  • Android SDK (compileSdk 37)
  • JDK 17+ / Android Studio

Translate

If you want a new translation for your language, please open a GitHub issue requesting the language. The project owner/collaborators will check in an initial translation using machine translation, after which contributors can fine-tune the translations directly on GitHub via pull requests.

Authentication Modes & Token Encryption

Under Authentication mode in the menu, FreeOTP+ supports three modes:

  • None: Default mode without an authentication prompt on launch; token secrets are stored unencrypted in app-private storage.
  • App launch: Prompts for Biometric or device PIN/credential when opening the app (and after a 2-minute background timeout), without encrypting token secrets in storage.
  • Token encrypted: Encrypts token secrets at rest with AES-256-GCM using a user-supplied key (minimum 6 characters, derived via PBKDF2-HMAC-SHA256). The key is encrypted with AndroidKeyStore strong biometrics when available so launching the app with biometrics automatically unlocks your tokens, and your biometric unlock preference is remembered across unlocks. If biometrics are not enrolled or become invalidated (e.g., new biometric enrolled or app restored to a new phone), you will be prompted to enter your key manually with the option to enable/re-enable biometric unlock.
    • To rotate your encryption key, switch out of Token encrypted mode (which decrypts stored secrets after confirmation) and switch back into Token encrypted mode with a new key.
    • When exporting FreeOTP+ JSON backups in any authentication mode (None, App launch, or Token encrypted), you can choose to export encrypted (freeotp-backup-encrypted_<datetime>.json, entering a backup encryption key if not already in Token encrypted mode) or decrypted (freeotp-backup_<datetime>.json). In Token encrypted mode, Key URI export likewise lets you choose encrypted (freeotp-backup-encrypted_<datetime>.txt) or decrypted (freeotp-backup_<datetime>.txt) output.

Backup & Import Notes

  • FreeOTP+ JSON (Preferred) & Key URI Backups:
    • Exporting FreeOTP+ JSON (Preferred) offers encrypted (AES-256-GCM) or plaintext output regardless of your current authentication mode, and preserves token order, multiple categories, HOTP counters, and built-in icon selections.
    • Importing FreeOTP+ JSON (Preferred) lets you choose between Append to existing tokens (inserting imported tokens at the top of the list) and Replace all existing tokens. Importing Key URI files appends tokens to the list.
    • When importing from legacy plaintext JSON, at least one of label or issuerExt is required, secret must be an array/list of signed/unsigned byte integer values, and tokenOrder is required (tokens not listed in tokenOrder are ignored).
    • When importing an encrypted JSON or Key URI backup (freeotp-backup-encrypted_*), FreeOTP+ automatically detects encryption and prompts for the backup's encryption key regardless of the app's current authentication mode.
  • Importing from Other Authenticators:
    • FreeOTP Backup XML: Supports password-encrypted FreeOTP v2 backups (externalBackup.xml / tokenBackup.xml) and legacy FreeOTP v1 tokens.xml backups, with Append (top of list) or Replace all options.
    • Aegis JSON: Supports plaintext and password-encrypted (scrypt + AES-256-GCM) Aegis Authenticator JSON vaults (Aegis JSON), preserving TOTP/HOTP/Steam entries, mapping Aegis groups to FreeOTP+ categories, importing embedded custom icons (PNG, JPEG, WEBP, SVG), and offering Append (top of list) or Replace all options.
  • Custom Token Images Backup (.zip):
    • Built-in icons selected via Choose built-in icon are stored as portable references inside JSON and Key URI backups automatically.
    • User-uploaded custom raster/SVG token icons can be exported and restored across devices via Export -> Token images and Import -> Token images.

About

Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator

Topics

Resources

Security policy

Stars

758 stars

Watchers

15 watching

Forks

Releases

Packages

Used by

Contributors

Languages