Documentation ¶
Index ¶
- Variables
- func CompareHashAndPassword(hashedPassword, password string) error
- func CompareSCryptHashAndPassword(hashedPassword, password string) error
- func CompareSimpleHashAndPassword(hashedPassword, password string) error
- func GenerateFromPassword(password string) (string, error)
- func GenerateSCryptFromPassword(password string) (string, error)
- func GenerateSimpleFromPassword(password string) (string, error)
- type Simple
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCompareFailed = errors.New("crypt compare failed")
ErrCompareFailed compare failed
Functions ¶
func CompareHashAndPassword ¶
CompareHashAndPassword password hash verification
func CompareSCryptHashAndPassword ¶
CompareSCryptHashAndPassword password hash verification
func CompareSimpleHashAndPassword ¶
CompareHashAndPassword Compare password hash verification
func GenerateFromPassword ¶
GenerateFromPassword password hash encryption
func GenerateSCryptFromPassword ¶
GenerateSCryptFromPassword password hash encryption
func GenerateSimpleFromPassword ¶
GenerateFromPassword generate password hash encryption 加盐法
Types ¶
Click to show internal directories.
Click to hide internal directories.