002.TOTP

  • TOTP works by taking a secret and a timestamp and hashing them together.
  • The hash is then truncated to a certain number of digits.
  • The digits are then used to generate a one-time password.
  • The period is the time in seconds that the one-time password is valid.
  • Refer: RFC 6238.