Documentation
¶
Index ¶
- func CheckPassword(rawPwd, encryptedPwd, salt string) (bool, error)
- func HashPassword(rawPwd string, salt string) (encryptedPwd string, err error)
- func MakeSalt() string
- func NewPassword(rawPwd string) (string, string, error)
- func UpdatePassword(rawPwd string, salt string) (encryptedPwd string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
密码加密:密码+Salt生成哈希序列
func NewPassword ¶
创建新的密码(值对象) 如果创建过程中出错,会返回nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.