fix comment

This commit is contained in:
Looly 2021-08-11 18:59:36 +08:00
parent 6bf77fd36a
commit e6b78d943c
2 changed files with 7 additions and 2 deletions

View File

@ -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&nbsp;4226</a>.</p>
*
* <p>基于事件同步通过某一特定的事件次序及相同的种子值作为输入通过HASH算法运算出一致的密码</p>
*
* <p>参考https://github.com/jchambers/java-otp</p>
*
* @author Looly

View File

@ -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&nbsp;6238</a>.</p>
*
* <p>时间同步基于客户端的动态口令和动态口令验证服务器的时间比对一般每30秒产生一个新口令
* 要求客户端和服务器能够十分精确的保持正确的时钟客户端和服务端基于时间计算的动态口令才能一致</p>
*
* <p>参考https://github.com/jchambers/java-otp</p>
*
* @author Looly