Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
HashPassword generates a hashed password using the scrypt algorithm.
It takes a string parameter `password` which is the password to be hashed. Returns a string which is the hashed password.
func VerifyPassword ¶
verifyPassword verifies the given password against the provided hash.
password - The password to be verified. hash - The hash to compare the password against. error - An error if the verification fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.