TOTP : Do the seconds count?

一个人想着一个人 提交于 2019-12-06 11:55:43

Here is how it is rounded using Javascript

var time = leftpad(dec2hex(Math.floor(epoch / 30)), 16, '0');

So what you ask is answered this part ”Math.floor(epoch / 30)” , meaning that the OTP generated at 12:22:30, 12:22:37, 12:22:39 .... 12:22:59 is exactly the same

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!