Open Dev Kit Documentation :: TOTP
TOTP
Functions
- Generate Random Key ( ) String
- Returns a randomly generated base32-encoded key that may be used to generate a URL and TOTPs
- Generate URL ( Issuer String, Username String, Key String ) String
- Returns an otpauth:// URL used for providing a TOTP QR code for a generated key
- Generate TOTP ( Key String ) Integer
- Returns the expected 6 digit one-time password for the specified key
- Validate TOTP ( Key String, Token String ) Boolean
- Returns if the expected one-time password matches the specified key
If you think anything is missing, please feel free to: submit documentation feedback on this page