$hotp » History » Revision 6

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

Added in 3.3

$hotp(key, count, hash, digits, encoding)

Returns an HOTP (HMAC-based One-Time Password) based on the specified parameters.

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

See also $totp, $hmac.


key - The key to hash.
count - a unique number.
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)
encoding - Sets encoding method. (t = plain text (default), x = hex, a = base32) (AdiIRC only)

Updated by Per Amundsen over 2 years ago · 6 revisions

Also available in: PDF HTML TXT