Course contentsShow
← Security
Lesson 743 of 3,05216. Web Security - Authentication MechanismsFree lesson

Authenticator Apps and Seed Management

Secure generation, storage, and transfer of TOTP seeds, QR code security, and backup strategies for authenticator apps.

Authenticator Apps and Seed Management

What you'll learn: How authenticator apps securely generate TOTP codes, manage secret seeds, and best practices for backup and recovery.

The Core Concept

Remember TOTP from earlier lessons? The time-based codes require a shared secret seed between the server and your authenticator app. This seed is the cryptographic foundation that generates those 6-digit codes. How this seed is created, stored, and backed up determines the security of your entire 2FA setup.

When you enable TOTP on a service, the server generates a random seed (typically 160 bits) and displays it as a QR code. Your authenticator app (Google Authenticator, Authy, Microsoft Authenticator) scans this code and stores the seed locally on your device.

Secure Generation and Transfer

QR Code Security: That QR code contains the raw secret seed. Anyone who photographs it can generate your codes forever. This is why you should:

  • Never share screenshots of setup QR codes
  • Complete setup in a private location
  • Regenerate seeds if you suspect exposure

Seed Storage: Authenticator apps store seeds in your device's secure storage (Keychain on iOS, Keystore on Android). The seed never leaves your device during normal operation—codes are calculated locally.

Backup Strategies

Losing your device means losing access to all your accounts if you don't have backups:

Manual backup: Many apps show the seed as a text string (like JBSWY3DPEHPK3PXP). Write this down and store it securely—it's like a master key.

Cloud backup: Some apps (Authy, Microsoft Authenticator) offer encrypted cloud backups. This adds convenience but introduces a new attack surface.

Recovery codes: Services provide one-time backup codes during setup. Store these separately from your device.

Key Takeaway: The TOTP seed is the crown jewel of authenticator security—protect it like a password, back it up securely, and never expose QR codes to cameras or screenshots.