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