GenerateOTPSecret (open)
Create a new HOTP/TOTP secret
Syntax
LOADLIB "wh::util/otp.whlib";
STRING FUNCTION GenerateOTPSecret(RECORD options)
Parameters
RECORD options
Options
STRING hmac
The HMAC algorithm for which the secret is used, defaults to "HMAC:SHA-1"
Return value
STRING
A new random secret