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