Skip to content
Tagged articles

TOTP

4 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Nov 3, 2026 · Information Security

Java Trusted Device Login: Secure 30-Day 2FA Skip via Rotating Tokens

This article details a complete Java implementation for trusted device login, covering secure token generation, server-side validation, hash storage, token rotation, revocation via MFA versioning, risk-based signals, and user-facing device management, ensuring 30-day 2FA bypass without compromising security.

2FAAuthenticationJava
0 likes · 21 min read
Java Trusted Device Login: Secure 30-Day 2FA Skip via Rotating Tokens
LuTiao Programming
LuTiao Programming
Nov 2, 2026 · Backend Development

Complete Java TOTP 2FA Implementation: QR Binding, Replay Protection & Recovery Codes

This article details a production-ready Java implementation of TOTP two-factor authentication covering QR code binding, secret encryption, time-drift handling, replay attack prevention via atomic step consumption, rate limiting, recovery codes with hashed storage, and secure 2FA disable flows requiring re-authentication.

JavaQR code bindingRFC 6238
0 likes · 23 min read
Complete Java TOTP 2FA Implementation: QR Binding, Replay Protection & Recovery Codes
Architecture and Beyond
Architecture and Beyond
Dec 7, 2024 · Information Security

Understanding Multi-Factor Authentication (MFA) and Google Authenticator: Principles, Implementation, and Limitations

This article explains the concepts, importance, various forms, and practical implementation details of MFA and 2FA—including the Google Authenticator TOTP mechanism—while also discussing their limitations, costs, and future directions in modern identity security.

2FAAuthenticationGoogle Authenticator
0 likes · 15 min read
Understanding Multi-Factor Authentication (MFA) and Google Authenticator: Principles, Implementation, and Limitations
Liangxu Linux
Liangxu Linux
Nov 27, 2023 · Information Security

How TOTP Secures Your Accounts: Theory, Applications, and Python Demo

This article explains the TOTP algorithm behind time‑based one‑time passwords, outlines its security benefits and common use cases such as online logins, VPNs, and hardware tokens, and provides a practical Python implementation with code examples using the pyotp library.

OTPPythonSecurity
0 likes · 6 min read
How TOTP Secures Your Accounts: Theory, Applications, and Python Demo