-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以实现下steam的手机令牌吗 #1
Comments
另外hotp的实现这个库里面也有 |
现在已经支持了 |
收到,幸苦大佬,这个issue我就关了 |
然后我又发现steam的值还是对不上,仔细看了下源代码,这部分steam的TokenDigits应该是10,可见pyotp的这部分(第二个图)https://github.com/pyauth/pyotp/blob/develop/src/pyotp/contrib/steam.py |
这个地方虽然已经赋值为10,但是通过以下方法打印(第一个图)出的值还是6(第二个图),可能需要进一步排查,目前我技术有限,需要仓库拥有者或者其他大佬的跟进 |
还要提一下就是,只有当前面提到的key_raw_len和传入的digits同时修改为正确的,20和10,Steam令牌的值才会正确 |
这确实是个bug,奇怪的是在我这里工作却是正常的,我待会修复一下你再试试。 |
在SteamConfigDialog.ets的addNewConfigOTP函数里断点看看最后的值是多少? |
可以了,我这里正常了 |
如题,基本就是一个修改的totp,可以参考https://github.com/pyauth/pyotp/blob/develop/src/pyotp/contrib/steam.py 里的代码
The text was updated successfully, but these errors were encountered: