Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHash in returned by ComparePasswordAndHash if the provided // hash isn't in the expected format. InvalidHashError = errors.New("argon2id: incorrect_hash_format") // ErrIncompatibleVersion in returned by ComparePasswordAndHash if the // provided hash was created using a different version of Argon2. IncompatibleVersionError = errors.New("argon2id: incompatible_version") )
View Source
var DefaultConfig = &Config{
memory: 64 * 1024,
iterations: 1,
parallelism: 4,
saltLength: 16,
keyLength: 32,
}
GetPasswordConfig Returns the configurations
Functions ¶
func ComparePasswordHash ¶
ComparePasswordHash take password and hash to compare them both And determine if the password is valid or not.
Types ¶
Click to show internal directories.
Click to hide internal directories.