An overview of 2 Factor Authentication and the TOTP algorithm used for one time passwords. Code examples in Python using https://github.com/pyotp/