Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitPassHasher ¶
func InitPassHasher()
Types ¶
type BcryptHasher ¶
type BcryptHasher struct{}
func (*BcryptHasher) CompareHashAndPassword ¶
func (h *BcryptHasher) CompareHashAndPassword(hashedPassword string, password string) error
func (*BcryptHasher) HashPassword ¶
func (h *BcryptHasher) HashPassword(password string) (string, error)
type PasswordHasher ¶
type PasswordHasher interface { HashPassword(password string) (string, error) CompareHashAndPassword(hashedPassword string, password string) error }
var PassHasher PasswordHasher
Click to show internal directories.
Click to hide internal directories.