schotti/googleauthenticator

由Schotti改进的Google Authenticator双因素认证

dev-master 2016-01-15 21:02 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:31:34 UTC


README

Build Status

此PHP类可用于与Google Authenticator移动应用进行交互,用于双因素认证。此类可以生成密钥,生成代码,验证代码并显示用于扫描密钥的QR码。

为了安全安装,您必须确保使用的代码不能被重用(重放攻击)。

使用方法

查看示例文件

php example1.php
Secret is: OQB6ZZGYHCPSX4AK

Google Charts URL for the QR-Code: https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/infoATphpgangsta.de%3Fsecret%3DOQB6ZZGYHCPSX4AK

Checking Code '848634' and Secret 'OQB6ZZGYHCPSX4AK':
OK

待办事项

  • ??? 你需要什么?

注意

如果你喜欢这个脚本或者有要添加的功能:联系我,访问我的博客,fork这个项目,发送pull请求,你知道怎么做的。