A free, open source Android authenticator app that generates HOTP and TOTP two-factor codes and keeps them in an encrypted vault.
twofas/2fas-android
Open-source Android authenticator app from 2FAS that generates TOTP and HOTP one-time codes for two-factor login.
Open-source alternative to:Google Authenticator
- Stars
- 1,540
- Forks
- 131
- Open issues
- 129
- Last commit
- 2 days ago
What is it?
This repository holds the source code for the official 2FAS Auth app on Android. The app works as a two-factor authenticator: it generates one-time passwords on the phone that users enter alongside their regular password when signing in to online accounts.
It supports time-based one-time passwords (TOTP) and HMAC-based one-time passwords (HOTP). Because these are open standards, the app can be used with any service that accepts TOTP or HOTP, and the project names Google, Microsoft and Dropbox as examples.
The code is written in Kotlin and licensed under GPL-3.0. Graphics bundled with the app are not covered by that open-source license and carry their own terms.
Key features
- 01Generates time-based one-time passwords (TOTP).
- 02Supports HMAC-based one-time passwords (HOTP).
- 03Works with any service that uses the standard TOTP or HOTP protocols.
- 04Written in Kotlin for Android.
Use cases
- Adding a second login factor to accounts on services such as Google or Dropbox.
- Studying how a production two-factor authenticator app is built on Android.
- Auditing the source of an authenticator app that handles account secrets.
Quick start
- 1
Download the app from the releases page
- 2
Install the app on your Android device
- 3
Follow the on-screen instructions to set up 2FAS for your online accounts
Things to know
- Setup is done through the app on Android devices, with no build or run command given in the README.
- Graphics are not covered by the GPL-3.0 license and have separate terms.
Topics
FAQ
- What is 2fas-android?
- Open-source Android authenticator app from 2FAS that generates TOTP and HOTP one-time codes for two-factor login. This repository holds the source code for the official 2FAS Auth app on Android. The app works as a two-factor authenticator: it generates one-time passwords on the phone that users enter alongside their regular password when signing in to online accounts.
- Is 2fas-android free to use? What license does it have?
- 2fas-android is open source under the GPL-3.0 license. Check the license terms before using it in commercial products.
- Is 2fas-android still maintained?
- Actively maintained. The last commit to 2fas-android was on Oct 18, 2026.
- What can I use 2fas-android for?
- Adding a second login factor to accounts on services such as Google or Dropbox. Studying how a production two-factor authenticator app is built on Android. Auditing the source of an authenticator app that handles account secrets.
- How do I install 2fas-android?
- Download the app from the releases page Install the app on your Android device Follow the on-screen instructions to set up 2FAS for your online accounts
- Where can I get 2fas-android?
- The source code and installation instructions are on GitHub: https://github.com/twofas/2fas-android
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
Open-source password manager built with Flutter for mobile, desktop and web, compatible with KeePass 2.x KDBX 3 and KDBX 4 databases.
An Android app that downloads apps and applies ReVanced patches to customize them, built on ReVanced Patcher.
A cross-platform app store that lets you discover and install apps released on GitHub, Codeberg and other Forgejo or Gitea forges.
An Android image editor app with dozens of tools, from crop and draw to 500+ filters, OCR, background removal, and PDF tools.
Android app that runs PC games from your Steam, Epic, GOG and Amazon libraries locally, with cloud saves between phone and PC.