Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPasswordsDoNotMatch = errors.New("passwords do not match")
Functions ¶
This section is empty.
Types ¶
type BCrypt ¶
func NewSecurityFramework ¶
func (*BCrypt) ConfirmationChecker ¶
ConfirmationChecker compares two given literal password inputs and returns whether they are equivalent.
func (*BCrypt) Hash ¶
Hash takes as input a given password and hashes it so it is suitable for persistent repository
func (*BCrypt) IsValid ¶
IsValid validates whether a given string complies with the policy as declared by PasswordPolicy
func (*BCrypt) VerifyPasswordMatches ¶
VerifyPasswordMatches verifies that a given password is equivalent to its hashed form
Click to show internal directories.
Click to hide internal directories.