This class provides an RFC6238-compliant Time-based One Time Passwords, compatible with Google Authenticator (with PassCodeLength = 6 and TimePeriod = 30).
Located in /libraries/fof/encrypt/totp.php (line 17)
Initialises an RFC6238-compatible TOTP generator. Please note that this class does not implement the constraint in the last paragraph of ยง5.2 of RFC6238. It's up to you to ensure that the same user/device does not retry validation within the same Time Step.
Check is the given passcode $code is a valid TOTP generated using secret key $secret
Generates a (semi-)random Secret Key for TOTP generation
Gets the TOTP passcode for a given secret key $secret and a given UNIX timestamp $time
Get the time period based on the $time timestamp and the Time Step defined. If $time is skipped or set to null the current timestamp will be used.
Returns a QR code URL for easy setup of TOTP apps like Google Authenticator
Extracts a part of a hash as an integer
Documentation generated on Tue, 19 Nov 2013 15:15:56 +0100 by phpDocumentor 1.4.3