This commit is contained in:
Looly
2020-05-05 23:49:41 +08:00
parent 513fb1c861
commit bf65fa3c5f
5 changed files with 22 additions and 2 deletions

View File

@@ -35,6 +35,8 @@ public class HOTP {
/**
* 构造使用默认密码长度和默认HMAC算法(HmacSHA1)
*
* @param key 共享密码RFC 4226要求最少128位
*/
public HOTP(byte[] key) {
this(DEFAULT_PASSWORD_LENGTH, key);