Skip to content

119 lines of code to demo RFC6238 TOTP (e.g. Google Authenticator) with Ajax validation.

Notifications You must be signed in to change notification settings

jds13/RFC6238-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

If you access this file through a PHP-enabled webserver (like Apache), it will display a QR-code to initialize an RFC6238 time-based one-time password (as used by Google Authenticator). You can enter test values, hit "Check", and verify that the program logic works.

In this example, the UserSecretKey is a hash of the user IP address. In the real world, the UserSecretKey would be randomly generated when a user initiated this process, and saved in a server database for subsequent verification.

About

119 lines of code to demo RFC6238 TOTP (e.g. Google Authenticator) with Ajax validation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages