$totp » History » Revision 2
Revision 1 (Per Amundsen, 12/29/2018 02:19 AM) → Revision 2/7 (Per Amundsen, 12/29/2018 11:59 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. *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 (-1 = auto, 0 = plain text (default), x text, 1 = hex, a 2 = base32) (AdiIRC only)