了解Google Authenticator应用如何工作 [英] Understanding How Google Authenticator app works

查看:385
本文介绍了了解Google Authenticator应用如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



这个应用程式可离线使用,每隔30秒就会重设手机上的金钥。

p>

那么服务器如何知道哪些键是有效的?



如果我自己创建这样一个应用程序。

解决方案

Google身份验证器使用基于时间的一次性密码算法。它使用当前时间和共享密钥来计算代码。只要设备和服务器设置的时间正确,生成的验证码即会生效。


I have seen many two factor authentication apps like the google authentication app.

The app works offline and is resets the key on the phone every 30 seconds.

So how the the server know which keys are valid?

I have having trouble understanding this?

And If i were to create such an app myself. How can i do so?

解决方案

Google Authenticator uses Time-based One-time Password Algorithm. It uses the current time and a shared secret key to compute the code. The generated codes validate as long as the device and server have the correct time set.

这篇关于了解Google Authenticator应用如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆