$totp » History » Version 1
Per Amundsen, 12/29/2018 02:19 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 | *Parameters* |
||
8 | |||
9 | key - The key to hash. |
||
10 | time - A [[$ctime]] timestamp to indicate current start time. (default is [[$ctime]]) |
||
11 | hash - Hash method to hash the key with. (sha1, sha256, sha384, sha512, md5, sha1 is default) |
||
12 | digits - Number of digits to return. (3 - 6, default is 6) |
||
13 | timestep - The time duration. (default is 30) |
||
14 | encoding - Sets encoding method. (-1 = auto, 0 = plain text, 1 = hex, 2 = base32) (AdiIRC only) |