PluginProbe
Two Factor Authentication / 1.2.16
Two Factor Authentication v1.2.16
1.12.2 1.13.0 1.14.10 1.14.11 1.14.14 1.14.15 1.14.16 1.14.17 1.14.23 1.14.24 1.14.26 1.14.27 1.14.3 1.14.4 1.14.5 1.14.7 1.14.8 1.15.5 1.16.0 1.2.10 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 All 98 releases
two-factor-authentication / hotp-php-master / README.markdown

README.markdown in Two Factor Authentication 1.2.16, at hotp-php-master/README.markdown

27 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 HOTP - PHP Based HMAC One Time Passwords
2 ========================================
3
4 **What is HOTP**:
5 HOTP is a class that simplifies One Time Password systems for PHP Authentication. The HOTP/TOTP Algorithms have been around for a bit, so this is a straightforward class to meet the test vector requirements.
6
7 **What works with HOTP/TOTP**:
8 It's been tested to the test vectors, and I've verified the time-sync hashes against the following:
9
10 * Android: Mobile-OTP
11 * iPhone: OATH Token
12
13 **Why would I use this**:
14 Who wouldn't love a simple drop-in class for HMAC Based One Time Passwords? It's a great extra layer of security (creating two-factor auth) and it's pretty darn zippy.
15
16 **Okay you sold me. Give me some docs**:
17
18 * $result = HOTP::generateByCounter($key, $counter); // event based
19 * $result = HOTP::generateByTime($key, $window); // time based within a "window" of time
20 * $result = HOTP::generateByTimeWindow($key, $window, $min, $max); // same as generateByTime, but for $min windows before and $max windows after
21
22 with $result, you can do all sorts of neat things...
23
24 * $result->toString();
25 * $result->toHex();
26 * $result->doDec();
27 * $result->toHotp($length); // how many digits in your OTP?