Retour au classement

Bubka/2FAuth

PHPdocs.2fauth.app

A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

otp2fa2factortotphotpself-hostedwebappqrcodetwo-factor-authenticationtwo-factor
Croissance des étoiles
Étoiles
4.1k
Forks
295
Croissance hebdomadaire
Issues
20
1k2k3k4k
janv. 2023mars 2024mai 2025juil. 2026
ArtefactsPackagistcomposer require bubka/2fauth
README

2FAuth

Docker build status https://codecov.io/gh/Bubka/2FAuth https://github.com/Bubka/2FAuth/blob/master/LICENSE

A web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

screens

2FAuth Demo
Credentials (login - password) : demo@2fauth.app - demo

Purpose

2FAuth is a web based self-hosted alternative to One Time Passcode (OTP) generators like Google Authenticator, designed for both mobile and desktop.

It aims to ease you perform your 2FA authentication steps whatever the device you handle, with a clean and suitable interface.

I created it because :

  • Most of the UIs for this kind of apps show tokens for all accounts in the same time with stressful countdowns (in my opinion)
  • I wanted my 2FA accounts to be stored in a standalone database I can easily backup and restore (did you already encountered a smartphone loss with all your 2FA accounts in Google Auth? I did...)
  • I hate taking out my smartphone to get an OTP when I use a desktop computer
  • I love coding and I love self-hosted solutions

Main features

  • Manage your 2FA accounts and organize them using Groups
  • Scan and decode any QR code to add account in no time
  • Add custom account without QR code thanks to an advanced form
  • Edit accounts, even the imported ones
  • Generate TOTP and HOTP security codes and Steam Guard codes

2FAuth is currently fully localized in English and French. See Contributing if you want to help on adding more languages.

Security

2FAuth provides several security mechanisms to protect your 2FA data as best as possible.

Single user app

You have to create a user account and authenticate yourself to use the app. It is not possible to create more than one user account, the app is thought for personal use.

Modern authentication

You can sign in 2FAuth using a security key like a Yubikey or a Titan key and disable the traditional login form.

Data encryption

Sensitive data stored in the database can be encrypted to protect them against db compromise. Encryption is provided as an option which is disabled by default. It is strongly recommended to backup the APP_KEY value of your .env file (or the whole file) when encryption is On.

Auto logout

2FAuth automatically log you out after an inactivity period to prevent long life session. The auto logout can be deactivated or triggered when a security code is copied.

RFC compliance

2FAuth generates OTP according to RFC 4226 (HOTP Algorithm) and RFC 6238 (TOTP Algorithm) thanks to Spomky-Labs/OTPHP php library.

Requirements

Installation guides

Upgrading

Migration

2FAuth supports importing from the following formats: 2FAuth (JSON), Google Auth (QR code), Aegis Auth (JSON, plain text), 2FAS Auth (JSON)

Contributing

You can contribute to 2FAuth in many ways:

License

AGPL-3.0

Dépôts similaires
beemdevelopment/Aegis

A free, secure and open source app for Android to manage your 2-step verification tokens.

JavaMavenGNU General Public License v3.0otptotp
getaegis.app
12.8k558
ergo-services/ergo

An actor-based Framework with network transparency for creating event-driven architecture in Golang. Inspired by Erlang. Zero dependencies.

GoGo ModulesMIT Licenseerlanggolang
ergo.services
4.6k184
Authenticator-Extension/Authenticator

Authenticator generates 2-Step Verification codes in your browser.

TypeScriptnpmMIT Licenseauthenticator2fa
authenticator.cc
4.6k1.1k
stratumauth/app

📱 Two-Factor Authentication (2FA) client for Android + Wear OS

C#GNU General Public License v3.0androidtwo-factor-authentication
stratumauth.com
4.5k275
andOTP/andOTP

[Unmaintained] Open source two-factor authentication for Android

JavaMavenMIT Licensetwo-factor-authenticationotp
3.7k374
guilhermerodz/input-otp

One time passcode Input. Accessible & unstyled.

TypeScriptnpmMIT License2fainput
input-otp.rodz.dev
3.1k86
FreeRADIUS/freeradius-server

FreeRADIUS - A multi-protocol policy server.

CGNU General Public License v2.0radiusdhcp
freeradius.org
2.6k1.2k
yeojz/otplib

One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator

TypeScriptnpmMIT Licensehotphmac
otplib.yeojz.dev
2.3k147
privacyidea/privacyidea

:closed_lock_with_key: multi factor authentication system (2FA, MFA, OTP, FIDO Server)

PythonPyPIGNU Affero General Public License v3.0pythontwo-factor
privacyidea.org
1.7k356
scito/extract_otp_secrets

Extract one time password (OTP) secrets from QR codes exported by two-factor authentication (2FA) apps such as "Google Authenticator". The exported QR codes from authentication apps can be captured by camera, read from images, or read from text files. The secrets can be exported to JSON or CSV, or printed as QR codes to console.

PythonPyPIGNU General Public License v3.0otpotpauth
scito.ch/content/extract-secret-keys-google-authenticator-qr-export
1.6k158
sger/ElixirBooks

List of Elixir books

Otherprogramming-elixirelixir
1.5k115
Spomky-Labs/otphp

:closed_lock_with_key: A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)

PHPPackagistMIT Licenseotptotp
1.5k159