6 points · by keepamovin · 2y ago · 12 comments
You can scan your enrolment QR code with multiple authenticators (like Authy and MS Authenticator, for example).
And the codes are synced between the two.
I guess that means that 2FA has to be implemented as a time-synced secure hash iteration, based on a secret nonce and time code embedded in the QR code, and the algorithm outputs a 1e6 to 1e8 space of entropy for each code, maybe from the low bits of the last hash?
The majority is always kept secret so that's where the non-predictability comes from, it's like generating an endless sequence of "pseudo-random" OTPs using a hash as a keystream generator?
This is also an Ask HN! Is that how it works?
Check out https://en.wikipedia.org/wiki/Time-based_one-time_password and https://en.wikipedia.org/wiki/HMAC-based_one-time_password for some of the finer details
Passkeys are similar. They can be implemented in software and don't need to be tied to a physical device.
This does decrease security somewhat ("something you know and something you have" becomes "two things someone else knows, protected by one thing you know -- your master password"). But it's a lot more convenient than having to pull up the 2FA app on your phone all the time, and there's no worries about losing any devices since you can just log back in on a replacement and all your 2FAs are still there.
Can someone explain how did this happen?
If a site used HOTP for their 2FA OTP, it wouldn’t work afaik as it’s counter based.
But as long as the counters increment at the same rate which presumably they would?
For enrollment scan the same QR code for two different apps.
Or is that not getting it?
Thankfully, so far it seems my providers are not using it.