TOTP$at_time(t)
Generate an one time password at a given time value.
HOTP$verify(code, t, behind = 0L)
Verify if a given one time password is valid. Returns the beginning time of the time
step window if there is a match within the behind
window. Otherwise return NULL
.
code a string of digits.
t a POSIXct object or an integer that represents the number of seconds since UNIX epoch.
behind a non-negative integer, the amount of time steps to look behind. A value of 1
means to accept the code before period
seconds ago.
HOTP$provisioning_uri(name, issuer = NULL)
Return a provisioning uri which is compatible with google authenticator format.
name account name.
issuer issuer name.