The HOTPResult Class converts an HOTP item to various forms Supported formats include hex, decimal, string, and HOTP.
More...
The HOTPResult Class converts an HOTP item to various forms Supported formats include hex, decimal, string, and HOTP.
- Author
- Jakob Heuser (firstname)@felocity.com
Definition at line 108 of file hotp.php.
◆ __construct()
HOTPResult::__construct |
( |
| $value | ) |
|
◆ toDec()
◆ toHex()
Returns the hex version of the HOTP.
- Returns
- string
Definition at line 155 of file hotp.php.
References $hex.
◆ toHOTP()
HOTPResult::toHOTP |
( |
| $length | ) |
|
Returns the truncated decimal form of the HOTP.
- Parameters
-
int | $length | the length of the HOTP to return |
- Returns
- string
Definition at line 172 of file hotp.php.
References and(), and toDec().
◆ toString()
Returns the string version of the HOTP.
- Returns
- string
Definition at line 147 of file hotp.php.
References $hash.
◆ $binary
◆ $decimal
◆ $hash
◆ $hex
The documentation for this class was generated from the following file:
- extensions/OATHAuth/includes/lib/hotp.php