How do programs with 2fa enabled keep track of the 2fa code, since it changes in a short time span and there’s many different ways / apps to generate said code?

985 views

How do programs with 2fa enabled keep track of the 2fa code, since it changes in a short time span and there’s many different ways / apps to generate said code?

In: Technology

6 Answers

Anonymous 0 Comments

The code itself is generated from a secret key that is shared between both the device (phone?) and web site. If your phone scanned a QR code during 2FA set up (which is what Google did for me) that code was transferred to your phone.

The login code generator takes the secret key from the QR code, and the current time in multiples of 30 seconds, and generates a code from that. As long as the web site and your phone’s clocks are synchronized, you’re good.

You are viewing 1 out of 6 answers, click here to view all answers.