mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix comment
This commit is contained in:
parent
6bf77fd36a
commit
e6b78d943c
@ -6,9 +6,11 @@ import cn.hutool.crypto.digest.HMac;
|
||||
import cn.hutool.crypto.digest.HmacAlgorithm;
|
||||
|
||||
/**
|
||||
* <p>HMAC-based one-time passwords (HOTP) 一次性密码生成器,
|
||||
* <p>HMAC-based one-time passwords (HOTP) 基于HMAC算法一次性密码生成器,
|
||||
* 规范见:<a href="https://tools.ietf.org/html/rfc4226">RFC 4226</a>.</p>
|
||||
*
|
||||
* <p>基于事件同步,通过某一特定的事件次序及相同的种子值作为输入,通过HASH算法运算出一致的密码。</p>
|
||||
*
|
||||
* <p>参考:https://github.com/jchambers/java-otp</p>
|
||||
*
|
||||
* @author Looly
|
||||
|
@ -7,9 +7,12 @@ import java.time.Duration;
|
||||
import java.time.Instant;
|
||||
|
||||
/**
|
||||
* <p>time-based one-time passwords (TOTP) 一次性密码生成器,
|
||||
* <p>time-based one-time passwords (TOTP) 基于时间戳算法的一次性密码生成器,
|
||||
* 规范见:<a href="https://tools.ietf.org/html/rfc6238">RFC 6238</a>.</p>
|
||||
*
|
||||
* <p>时间同步,基于客户端的动态口令和动态口令验证服务器的时间比对,一般每30秒产生一个新口令,
|
||||
* 要求客户端和服务器能够十分精确的保持正确的时钟,客户端和服务端基于时间计算的动态口令才能一致。</p>
|
||||
*
|
||||
* <p>参考:https://github.com/jchambers/java-otp</p>
|
||||
*
|
||||
* @author Looly
|
||||
|
Loading…
Reference in New Issue
Block a user