Documentation ¶
Index ¶
- func CompareHashWithPassword(hash, password string) (bool, error)
- func GenerateSaltedHash(password string) (string, error)
- func GenerateSaltedHashWithType(password string, typ string) (string, error)
- func GenerateSaltedHashWithTypeAndOpt(password string, typ string, opt Opt) (string, error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashWithPassword ¶
验证密钥
func GenerateSaltedHashWithType ¶
生成密钥带类型
Types ¶
Click to show internal directories.
Click to hide internal directories.