Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstantTimeEq ¶
func MatchPassword ¶
func MatchPassword(password string, phash PasswordHash) bool
Types ¶
type PasswordHash ¶
func HashPassword ¶
func HashPassword(password string) (out PasswordHash)
Call Pbkdf2 password hash with reasonable defaults (9999 iterations + SHA1 + 64 bytes output).
func HashPasswordWith ¶
func HashPasswordWith(salt []byte, password string) (out PasswordHash)
Call Pbkdf2 with reasonable defaults (9999 iterations + SHA1 + 64 bytes output).
Click to show internal directories.
Click to hide internal directories.