GoogleAuthenticator icon indicating copy to clipboard operation
GoogleAuthenticator copied to clipboard

TOTP and HOTP, Base 32 Standard

Open abmmhasan opened this issue 8 years ago • 2 comments

  1. Google Authenticator Supports both TOTP and HOTP! Why don't you Implement both.
  2. Base32 function should be separated and use this repo https://github.com/ChristianRiesen/base32 (as that is a standard by required RFC)

abmmhasan avatar Apr 02 '16 13:04 abmmhasan

+1

Conver avatar Jun 14 '16 16:06 Conver

I guess TOTP is used much more often than HOTP... A Pull Request with a HOTP implementation would be awesome!

The built-in _base32Decode() function works fine, I'm not sure why to add a dependency to this project, just to get the same result. I don't see an advantage. Currently you can just copy the file PHPGangsta/GoogleAuthenticator.php and start your work, if you don't like composer for example. With an external dependency it gets more complicated.

PHPGangsta avatar Oct 13 '16 13:10 PHPGangsta