Adding 2FA to Your Own App: A Developer’s Guide

Short answer: use a maintained TOTP library, encrypt secrets at rest, allow ±1 time step, rate-limit hard, hash your backup codes, and require the password to change 2FA settings. Then add WebAuthn — it fixes what TOTP structurally can’t.

Read More »

How to Set Up 2FA on GitLab (2026 Step-by-Step Guide)

Short answer: User settings → Account → Two-factor authentication, with an app and a WebAuthn key. Save the ten recovery codes somewhere that isn’t a repository. Then audit access tokens, SSH keys and CI variables — they bypass 2FA entirely.

Read More »

Are 6 Digits Enough? The Maths Behind 2FA Codes

Short answer: yes, but not for the reason you’d think. A million possibilities sounds guessable — what makes it safe is the 30-second window plus rate limiting, which turns a million guesses into about five. The security is in the system, not the digits.

Read More »