php-christianriesen-otp

PHP library to check HOTP and TOTP one time passwords

Description

Implements hotp according to RFC4226 and totp according to RFC6238 (only sha1 algorithm). Once you have a secret, you can use it directly in this class to create the passwords themselves (mainly for debugging use) or use the check functions to safely check the validity of the keys. The checkTotp function also includes a helper to battle timedrift.

Also includes a static GoogleAuthenticator function class to generate a correct url for the QR code, so you can easy scan it with your device. Google Authenticator is available as application for iPhone and Android. This removes the burden to create such an app from the developers of websites by using this set of classes.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/ChristianRiesen/otp


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install php-christianriesen-otp