Project

General

Profile

$totp » History » Version 3

Per Amundsen, 12/31/2018 09:08 AM

1 1 Per Amundsen
_Added in 3.3_
2
3
*$totp(key, time, hash, digits, timestep, encoding)*
4
5
Returns a TOTP (Time-based One-time Password) based on the specified parameters.
6
7 3 Per Amundsen
_md5 encoding is not secure enough and should never be used._
8
9
_See also [[$hotp]], [[$hmac]]._
10
11 1 Per Amundsen
*Parameters*
12
13
key - The key to hash.
14
time - A [[$ctime]] timestamp to indicate current start time. (default is [[$ctime]])
15
hash - Hash method to hash the key with. (sha1, sha256, sha384, sha512, md5, sha1 is default)
16
digits - Number of digits to return. (3 - 6, default is 6)
17
timestep - The time duration. (default is 30)
18 2 Per Amundsen
encoding - Sets encoding method. (t = plain text (default), x = hex, a = base32) (AdiIRC only)