GoogleAuthenticator:PHP类,用于生成和验证Google Authenticator 2要素身份验证

时间:2021-04-01 00:37:31
【文件属性】:
文件名称:GoogleAuthenticator:PHP类,用于生成和验证Google Authenticator 2要素身份验证
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-01 00:37:31
PHP Google Authenticator PHP类 版权所有(c)2012-2016, 作者:Michael Kliewe, 及其 根据BSD许可获得许可。 此类PHP类可用于与Google Authenticator移动应用程序进行交互,以进行两要素身份验证。 此类可以生成秘密,生成代码,验证代码并提供用于扫描秘密的QR码。 它根据实现 为了安全安装,您必须确保不能重用已使用的代码(重放攻击)。 您还需要限制验证次数,以对抗暴力攻击。 例如,您可以在10分钟内将一个IP地址(或IPv6块)的验证次数限制为10次尝试。 这取决于您的环境。 用法: 请参见以下示例: <?php require_once 'PHPGangsta/GoogleAuthenticator.php' ; $ ga = new PHPGangsta_GoogleAuthenticator (); $ se
【文件预览】:
GoogleAuthenticator-master
----composer.json(759B)
----.travis.yml(185B)
----PHPGangsta()
--------GoogleAuthenticator.php(8KB)
----tests()
--------bootstrap.php(55B)
--------GoogleAuthenticatorTest.php(3KB)
--------phpunit.xml(376B)
----LICENSE.md(1KB)
----.gitignore(49B)
----README.md(3KB)

网友评论