Project

General

Profile

Actions

$totp » History » Revision 5

« Previous | Revision 5/7 (diff) | Next »
Per Amundsen, 12/13/2019 06:21 PM


Added in 3.3

$totp(key, time, hash, digits, timestep, encoding)

Returns a TOTP (Time-based One-time Password) based on the specified parameters.

md5 hash is not secure enough and should never be used.

See also $hotp, $hmac.

Parameters

key - The key to hash.
time - A $ctime timestamp to indicate current start time. (default is $ctime)
hash - Hash method to hash the key with. (sha1, sha256, sha384, sha512, md5, sha1 is default)
digits - Number of digits to return. (3 - 6, default is 6)
timestep - The time duration. (default is 30)
encoding - Sets encoding method. (t = plain text (default), x = hex, a = base32) (AdiIRC only)

Updated by Per Amundsen almost 5 years ago · 5 revisions

Also available in: PDF HTML TXT