Function group | Execute on client | Platform(s) |
---|---|---|
OW3 | NO | All |
OW3.$totpgenerate(xSharedSecretKey, iTimeStep, iDigits, &iTOTP [,&cErrorText, iHashType=kOW3hashSHA1])
Generates a Time-based One-Time Password in iTOTP using the TOTP algorithm. Returns true if successful. The parameters are:
Parameter | Description |
---|---|
xSharedSecretKey | (Binary) The shared secret key, length must be between 16 and 256 bytes inclusive. |
iTimeStep | (Integer 32 bit) The time step in seconds, must be between 1 and 3600 inclusive. |
iDigits | (Integer 32 bit) The number of digits in the TOTP, must be between 6 and 8 inclusive. |
iTOTP | (Integer 32 bit) Receives the generated TOTP. |
cErrorText | (Character 100000000) If supplied, receives text describing the error that caused $totpgenerate or $totpvalidate to return false. |
iHashType | (Integer 32 bit, default is kOW3hashSHA1) The type of hash to use, a kOW3hash… constant. |
See OW3.$totpvalidate().