News for hackers. Stuff that matters.
Re:Behind the 6-digit code: Building HOTP and TOTP from scratch by lucb1e on Tuesday April 15, 2025 @02:56AM (#43689772)
What's the difference between storing a random number and storing the OTP secret? It's all ones and zeroes in a database

If you store the OTP secret in an HSM, then you can do the same when generating a random number. I'm not aware of anyone actually doing that though (I surely won't have seen even 1% of what's out there, but as a security consultant I get around at least a little bit)

There are no comments on this comment yet.