UnpackOTPUrl (open)
Unpacks an OTP url
Syntax
LOADLIB "wh::util/otp.whlib";
RECORD FUNCTION UnpackOTPUrl(STRING url)Parameters
STRING urlURL to unpack
Return value
RECORDUnpacked URL
STRING accountThe name of the user's account
INTEGER counterThe counter value to start from (HOTP only)
STRING issuerThe name of the issuer of the secret
RECORD optionsTOTP/HOTP options
INTEGER options.digitsThe length of the resulting password, range [6-8]
STRING options.hmacThe HMAC algorithm
INTEGER options.intervalThe interval in seconds (TOTP only)
STRING secretThe key to use (raw byte value)
STRING typeURL type ('totp' / 'hotp')