Re:Behind the 6-digit code: Building HOTP and TOTP from scratch
by inferiorhuman on Tuesday April 15, 2025 @01:34AM
(#43689277)
I have to pull a number from Google Authenticator to log into my FB account so I can only assume they're not simply generating random numbers.
[ Parent
| on HN ]
Re:Behind the 6-digit code: Building HOTP and TOTP from scratch
by dogacel on Tuesday April 15, 2025 @01:42AM
(#43689323)
Two different flows, an online and an offline.
TOTP devices can be powered offline, which makes it extra secure, as you don't transfer any data around, possibility of leaking it is extremely low.
Random numbers could only work in online flow, where server sends you a one-time code using a secure communication method, such as a trusted phone number or email address.
Re:Behind the 6-digit code: Building HOTP and TOTP from scratch
by notpushkin on Tuesday April 15, 2025 @01:36AM
(#43689293)
But they’re not sending you this number via email.
Re:Behind the 6-digit code: Building HOTP and TOTP from scratch
by inferiorhuman on Tuesday April 15, 2025 @03:36AM
(#43690003)
Correct. Before they killed mbasic the prompt said they would text me a code, but in reality they were prompting for a TOTP code.