Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPassword ¶
CheckPassword accepts a salt/hash and a plaintext password. If that password is a match to the given salt/hash, returns true. Otherwise, returns false.
func EncryptPassword ¶
EncryptPassword generates a bcrypt salt/hash combination from the given password, then returns that salt/hash as a string. If an error occurs, the returned salt/hash is empty string "", and a non-nil error is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.