Documentation
¶
Index ¶
Constants ¶
View Source
const ( Argon2id Algorithm = "argon2id" Bcrypt Algorithm = "bcrypt" DefaultAlgorithm = Argon2id // BcryptMaximumPasswordLength is bcrypt's password input limit in bytes. BcryptMaximumPasswordLength = 72 )
Variables ¶
Functions ¶
Types ¶
type Verification ¶
func Verify ¶
func Verify(plainPassword, encodedHash string) (Verification, error)
func VerifyWithAlgorithm ¶
func VerifyWithAlgorithm( plainPassword string, encodedHash string, preferredAlgorithm Algorithm, ) (Verification, error)
Click to show internal directories.
Click to hide internal directories.