Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PasswordValid ¶
type PasswordValid string
PasswordValid hash验证密码
func NewPasswordValid ¶
func NewPasswordValid(key string) (p *PasswordValid)
NewPasswordValid 构造一个新的验证器
func (*PasswordValid) Encode ¶
func (p *PasswordValid) Encode(password string) (enc string)
Encode 加密密码
func (*PasswordValid) Valid ¶
func (p *PasswordValid) Valid(originPassword, password string) (ok bool)
Valid 验证是否一致
Click to show internal directories.
Click to hide internal directories.