问题描述
什么是在登录认证系统的OTP多少?是否有产生用Java(Android版)OTP数字任何特定的算法。或者是OTP类似的随机数?如何才能实现这一目标,以优化。
What is an OTP number in a login authentication system? Is there any specific algorithm for generating OTP numbers using java (android). Or is an OTP something like random number? How can this be achieved, with optimization.
推荐答案
请不要重新发明轮子 - 尤其是在安全性和加密的情况下。你可能会在一个非常糟糕的状态中结束。
Please do not reinvent the wheel - especially in case of security and cryptography. You might end up in a really bad state.
使用的算法,该社区希望通过开放认证Iniative指定的HOTP以及TOTP算法达成一致。
这些算法也使用谷歌authenticater和在这些RFC中指定。阅读。他们是简单的。
Use algorithms, that the community agreed upon like the HOTP and TOTP algorithm specified by the Open Authentication Iniative.These algorithms are also used by the google authenticater and specified in these RFCs. Read them. They are simple.
这篇关于如何生成OTP数与6位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!