Documentation ¶
Index ¶
Constants ¶
View Source
const ( Argon2Time = 1 Argon2Memory = 64 * 1024 Argon2Threads = 4 Argon2KeyLen = 32 SaltSize = 16 )
Argon2 参数
Variables ¶
View Source
var ( ErrInvalidSecPwdLength = errors.New("password must be 6 digits") ErrInvalidSecPwdConsecutive = errors.New("password must not contain three consecutive identical digits") ErrInvalidSecPwdSequential = errors.New("password must not contain three or more sequential digits") )
定义常见错误消息
Functions ¶
func ValidateNumberPwd ¶ added in v1.8.17
ValidateNumberPwd 验证指定长度的纯数字字符串密码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.