[KongchangAI]
Concept基于时间的一次性密码 / Time-based One-Time Password

TOTP

A widely adopted two-factor authentication standard defined by RFC 6238. It generates a six-digit verification code every 30 seconds by combining a shared secret key with the current timestamp and applying a hash algorithm, and is broadly used for account security verification.

Core Facts

Timeline (last 90 days)

Nov 4

SMS-based MFA carries the risk of SIM swap attacks, and choosing TOTP apps or hardware keys is more reliable.

Unverified50%
Nov 1

The security community recommends prioritizing two-factor authentication methods based on authenticator apps (such as TOTP) or hardware keys, because such verification does not rely on the phone number, an identifier that can be transferred.

Unverified50%
Oct 24

One-time passwords (OTPs) are temporary codes generated by the time-based one-time password algorithm (TOTP), typically refreshed every 30 seconds, and used for two-factor authentication (2FA).

Unverified50%
Oct 21

TOTP dynamic codes can technically be computed by the agent itself (the shared secret is programmable), but SMS and email verification codes must be read and forwarded by a human.

Unverified50%
Oct 19

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.

Expired50%
Oct 19

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.

Unverified50%
Oct 19

In the TOTP algorithm the verification code changes every 30 seconds because the HMAC value stays the same within the same 30-second window, and once the boundary is crossed the counter increments by one and the HMAC result changes accordingly.

Unverified50%
Oct 17

Hardware keys or app-based TOTP are more resistant to phishing and SIM hijacking than SMS verification codes.

Unverified50%
Oct 16

Traditional MFA based on TOTP codes or push notifications can be bypassed when attackers set up reverse-proxy phishing pages to forward codes in real time or induce users to approve.

Unverified50%
Oct 14

For education accounts, it is recommended to prioritize enabling MFA based on an authenticator app (such as TOTP) or a hardware security key rather than relying only on SMS verification codes, because SMS can be subject to SIM swap attacks.

Unverified50%

15 more timeline events

All Facts (20)

Verified

TOTP performs an HMAC-SHA1 hash of a static key combined with a 30-second time window of the current Unix timestamp, then truncates the result to a 6-digit dynamic verification code.

80%
Unverified

The TOTP protocol is based on the RFC 6238 standard and generates a 6-digit dynamic code every 30 seconds.

60%
Unverified

SMS-based MFA carries the risk of SIM swap attacks, and choosing TOTP apps or hardware keys is more reliable.

50%
Unverified

The security community recommends prioritizing two-factor authentication methods based on authenticator apps (such as TOTP) or hardware keys, because such verification does not rely on the phone number, an identifier that can be transferred.

50%
Unverified

One-time passwords (OTPs) are temporary codes generated by the time-based one-time password algorithm (TOTP), typically refreshed every 30 seconds, and used for two-factor authentication (2FA).

50%
Unverified

TOTP dynamic codes can technically be computed by the agent itself (the shared secret is programmable), but SMS and email verification codes must be read and forwarded by a human.

50%
Unverified

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.

50%
Unverified

In the TOTP algorithm the verification code changes every 30 seconds because the HMAC value stays the same within the same 30-second window, and once the boundary is crossed the counter increments by one and the HMAC result changes accordingly.

50%
Unverified

Hardware keys or app-based TOTP are more resistant to phishing and SIM hijacking than SMS verification codes.

50%
Unverified

Traditional MFA based on TOTP codes or push notifications can be bypassed when attackers set up reverse-proxy phishing pages to forward codes in real time or induce users to approve.

50%
Unverified

For education accounts, it is recommended to prioritize enabling MFA based on an authenticator app (such as TOTP) or a hardware security key rather than relying only on SMS verification codes, because SMS can be subject to SIM swap attacks.

50%
Unverified

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.

50%
Unverified

When passwords and TOTP secrets are stored in the same login entry, both are located in the same local Vault, and their degree of isolation is lower than placing the second factor on another physical device.

50%
Unverified

The official troubleshooting checklist states: if the code expires during entry, wait for a new value and submit as soon as possible; if all codes fail, calibrate the computer clock; if the password is correct but the verification code is wrong, check the account and setup key; if no verification code is displayed, check the secret field and the Vault lock status.

50%
Unverified

SAFi v1.5.0 supports enterprise identity and access management capabilities, including Microsoft Entra ID single sign-on, TOTP multi-factor authentication, SCIM 2.0 user and role provisioning, automated account deprovisioning, DNS-based domain verification and tenant-aware workspace routing.

50%
Unverified

Modern authentication systems (such as TOTP-based two-factor authentication, SMS verification codes, and FIDO2/WebAuthn hardware keys) are designed by nature to resist automated attacks, making it nearly impossible for AI agents to complete these verifications without possessing the user's physical device.

50%
Unverified

Password managers such as 1Password and Bitwarden already support team-shared TOTP keys

50%
Unverified

Anyone who possesses a TOTP shared key can generate the exact same verification code, making shared 2FA technically straightforward

50%
Unverified

MFA requires users to provide an additional second verification factor when logging in, such as TOTP, a hardware security key, or biometrics.

50%
Unverified

Both Vaultwarden and official Bitwarden support TOTP-based two-step verification and can be used with authenticator apps such as Aegis and Authy.

50%

Source Articles