Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComparePassword ¶
ComparePassword compares a hashed password with a plain text password
func DummyCompare ¶ added in v1.2.7
func DummyCompare()
DummyCompare performs a throwaway bcrypt comparison. Call it on the user-not-found login path so an attacker cannot distinguish a missing account from a wrong password by response timing (user enumeration, CWE-204).
func HashPassword ¶
HashPassword hashes a plain text password using bcrypt
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.