Documentation
¶
Index ¶
- func EncryptPassword(password string) (string, string, error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateSigningKey(keyLength int) (string, error)
- func MakePassword(password string) (string, error)
- func SafeGenerateSigningKey(keyLength int) string
- func VerifyEncryptPassword(secretPassword, inputPassword string) error
- func VerifyPassword(encodedHash, encodedSalt, inputPassword string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptPassword ¶
EncryptPassword 加密函数,接收原始密码字符串,返回加密后的密码和盐值
func GenerateRandomBytes ¶ added in v0.0.2
func GenerateSigningKey ¶ added in v0.0.2
func MakePassword ¶
func SafeGenerateSigningKey ¶ added in v0.0.2
func VerifyEncryptPassword ¶
func VerifyPassword ¶
VerifyPassword 验证函数,接收密文、原始密码和盐值,返回验证结果
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.