Documentation ¶
Overview ¶
contains two cryptographic functions for both storing and comparing passwords.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHash ¶
CompareHash compares bcrypt password with a plaintext one. Returns true if passwords match and false if they do not.
func ComparePwd ¶
compare password rawPwd raw password, dbPwd in database
func GenerateHash ¶
GenerateHash generates bcrypt hash from plaintext password
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.