How exactly the authenticator apps work?

128 views

I’m talking about Google Auth, Microsoft authenticator, Duo, etc., that give you a random set of digits to input in two-factor authentication websites

In: 2

2 Answers

Anonymous 0 Comments

The general idea: when 2fa is first set up, a secret value is generated by the service and shared with the user. The authenticator app and website both store this.

A set of math operations is performed on that secret value and the current time to generate a one time use password. The web service also calculates this (and sometimes one or more past codes as well to accommodate slight timing errors), and compares the two.

A user who is able to generate a correct code for the current time is presumed to be the account holder, as in theory, nobody should have access to that secret value since it was shared between the device and server.

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