Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashMD5 ¶
HashMD5 hashes the given text using the MD5 algorithm. It returns the hashed text as a string.
func HashPassword ¶
HashPassword hashes the given text using bcrypt algorithm. It returns the hashed password as a string.
func VerifyHashMD5 ¶
VerifyHashMD5 compares the plain text with the hashed value. It returns true if the hash values match, otherwise false.
func VerifyPassword ¶
VerifyPassword compares the normal (plain) password with the hashed password. It returns an error if the passwords don't match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.