TOTP: Time-Based One-Time Password Algorithm in Golang This function implements RFC 6238 as used in time based one time password generation. The function is compatible with codes generated by Google Authenticator or Authy.