system
Given the following post, respond as if you're commenting on Reddit:
human
Is it theoretically possible to reverse engineer someone's two factor authentication key if you were to have a list of past codes and timestamps to go with those codes?

If so, how would it work, and what's the n for how many codes/timestamps would be needed?

I'm just curious. I wonder if my employer could potentially figure this out, given that I login with two factor on a number of personal accounts all the time. Not that I think that they would. I guess it's more of a curiosity about the overall security of two-factor in general.

Thanks!
gpt
It's designed to be practically impossible.

It's similar to most other pseudorandom number generators in that the internal state is a large number (64 bits, maybe) but the sequence is only the last few digits.