Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
CheckPasswordHash compares a bcrypt hashed password with its possible plain text equivalent. Returns true if the password matches the hash, false otherwise.
Example:
match := CheckPasswordHash("mySecret123", storedHash)
func HashPassword ¶
HashPassword hashes the given plain text password using the bcrypt algorithm. It returns the hashed password as a string and any error encountered during hashing.
Example:
hash, err := HashPassword("mySecret123")
if err != nil { ... }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.