RFC 6238
An IETF standard document for TOTP (Time-based One-Time Password). It defines an algorithm that uses a shared secret and a timestamp to generate dynamic verification codes.
Core Facts
Timeline (last 90 days)
In a hands-on video by a Bilibili uploader, REA analyzed an APK app and located that the verification code generation logic uses the standard RFC 6238 TOTP algorithm, padding with zeros on the left when the result is fewer than 6 digits.
TOTP is defined in RFC 6238 and is a time-dimension extension of HOTP (RFC 4226); it is computed by dividing the current Unix timestamp by the time step to obtain a counter C, then computing HMAC-SHA1(K, C), extracting a 31-bit integer via dynamic truncation, and taking the result modulo 10^6 to obtain a 6-digit verification code.
RFC 6238 allows the server to tolerate a certain degree of drift, typically one 30-second window before and after, i.e. a tolerance range of about 90 seconds.
Google Authenticator adopts the RFC 6238 standard (TOTP).
All Facts (5)
TOTP is the mainstream MFA implementation defined by the RFC 6238 standard and is a time-based extension of HOTP (RFC 4226).
65%UnverifiedThe TOTP protocol is based on the RFC 6238 standard and generates a 6-digit dynamic code every 30 seconds.
60%UnverifiedTOTP is defined in RFC 6238 and is a time-dimension extension of HOTP (RFC 4226); it is computed by dividing the current Unix timestamp by the time step to obtain a counter C, then computing HMAC-SHA1(K, C), extracting a 31-bit integer via dynamic truncation, and taking the result modulo 10^6 to obtain a 6-digit verification code.
50%UnverifiedRFC 6238 allows the server to tolerate a certain degree of drift, typically one 30-second window before and after, i.e. a tolerance range of about 90 seconds.
50%UnverifiedGoogle Authenticator adopts the RFC 6238 standard (TOTP).
50%