
Two-factor authentication stops a whole class of account-takeover attacks. It also introduces a new single point of failure: the device that holds your TOTP seed. Lose the device, wipe it, get it stolen — and without a recovery path, you're out.
Recovery codes are that path.
How Mistex recovery codes work
When you enable 2FA in the cabinet, the server issues 10 single-use recovery codes. They're shown to you exactly once. The server only stores SHA-256 hashes of each code — the plaintext never hits disk after that one screen.
Each code can be used one time. The first valid use burns the code; subsequent attempts against the same code return the same error as an invalid code, with no signal that it was ever valid. Nine of ten remain. Regenerate and the previous set is invalidated atomically.
Use cases
- Lost phone. Use a recovery code once, log in, set up 2FA on the new device, regenerate recovery codes on the spot.
- Phone died mid-trip. Same flow.
- Password manager sync failure. Same.
- Coercion. If you ever have to demonstrate a “reset” flow without the device, recovery codes are a legitimate escape hatch that doesn't require you to contact support.
How to store them
The only rule: offline, redundant, and not next to your primary device.
- A piece of paper in a sealed envelope inside a home safe.
- A second copy in a bank safety deposit box.
- An encrypted USB stick in a drawer.
- An offline password manager (KeePass file on a non-networked drive).
Things not to do:
- Cloud notes app on the same phone as your authenticator.
- An email to yourself.
- A screenshot in your phone's camera roll.
The goal is that the recovery codes survive the loss of your primary device and your primary accounts, but can't be grabbed by an attacker who just got into your phone.
When to regenerate
Regenerate if you ever:
- Used one (you now have nine, and one is floating around in memory somewhere).
- Suspect your paper / file was compromised.
- Travel into a jurisdiction where devices can be seized at the border.
Regeneration is one click in Settings and invalidates all previous codes.
Takeaway
Recovery codes are not optional. If you enabled 2FA without saving them, you're running on thin ice. The fix takes sixty seconds. The absence of the fix turns a device accident into a permanent lockout.