Documentation
¶
Index ¶
Constants ¶
View Source
const ( BcryptPasswordHash passwordHashType = iota Argon2iPasswordHash passwordHashType = iota )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PasswordHasher ¶
type PasswordHasher interface {
GeneratePasswordHashWithSalt(rawPassword string) (hashedPass, salt string, err error)
CompareHashAndPassword(hashedPassword, salt, pasword string) (ok bool, err error)
}
func NewPasswordHasher ¶
func NewPasswordHasher(hashType passwordHashType) PasswordHasher
Click to show internal directories.
Click to hide internal directories.