About

2FA turns a secret key into the six-digit code your sign-in asks for. It is a static page: the calculation happens in your browser, and nothing is sent anywhere.

What stays private

There are no accounts, analytics, cookies or remote scripts. Your secret and codes are held in memory and cleared when you leave the page, or after five minutes in a background tab. The only thing saved is your colour theme.

Your browser, its extensions, your operating system, and anyone who can see your screen or clipboard are outside that protection.

You can put a secret after the # in the address:

https://2fa.pgp.im/#YOUR_SECRET

The part after # is never sent to the server, and the page removes it from the address bar once read. It can still remain in browser history, bookmarks, synced tabs and screenshots.

Never put a secret in the path (after a /): the path is sent to the server.

Supported keys

Base32 keys and otpauth:// links using the common profile: HMAC-SHA-1, six digits, 30-second period. This is what almost every service uses.

Codes depend on your device clock. If a service rejects a fresh code, check that the clock is set automatically.

Who makes it

2FA is maintained by @alue.