Source: https://bscan.info/tools/2fa-generator
Language: en

Generate time-based one-time passwords (TOTP) for two-factor authentication. Share codes securely with end-to-end encryption. Works offline.

# 

2FA Code Generator

Generate TOTP codes for your accounts. Your secrets never leave your device.

## Add New Account

or scan QR

Drop QR code image or tap to upload

30s

No accounts added yet.

Add an account above to start generating codes.

## How It Works

### Secure & Sharable

Secrets stay on device. Share securely with end-to-end encryption.

### Offline

Works completely offline once loaded.

### Standard TOTP

6-digit codes that refresh every 30 seconds.

## What is a 2FA Code Generator?

[Two-factor authentication](https://en.wikipedia.org/wiki/Multi-factor_authentication) (2FA) adds an extra layer of security to your online accounts by requiring a [time-based one-time password](https://en.wikipedia.org/wiki/Time-based_one-time_password) (TOTP) in addition to your regular password. This generator creates 6-digit codes that refresh every 30 seconds, compatible with any service that supports Google Authenticator, Authy, or standard TOTP protocols.

### Why use a browser-based TOTP generator?

Unlike mobile authenticator apps, this tool runs entirely in your browser with no downloads required. Your secret keys are stored locally and never transmitted to any server. You can also securely share TOTP entries with others using end-to-end encrypted links, making it easy to set up shared accounts without exposing the raw secret.

### How TOTP works

TOTP codes are generated using a shared secret key and the current time. The algorithm (defined in [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238)) combines your secret with the current 30-second time window using [HMAC-SHA1](https://en.wikipedia.org/wiki/HMAC) to produce a unique 6-digit code. Because both your device and the service know the secret and the time, they can independently generate and verify the same code without any network communication.

---
This is the page's server-rendered documentation. Interactive browser tests, file processing and permission prompts require the HTML page; Markdown does not contain live measurements or process files.
