Documentation ¶
Index ¶
- Variables
- func ComparePasswordWithHash(encodedHash string, password string) (match bool, err error)
- func HashPassword(password string) (encodedHash string, err error)
- func InitArgonParams(memory uint32, iterations uint32, parallelism uint8)
- func InitArgonParamsFromEnv(envA2memory string, envA2iterations string, envA2parallelism string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidHash when hash is not in the correct formant ErrInvalidHash = errors.New("the encoded hash is not in the correct format") // ErrIncompatibleVersion in case of version incompatibility ErrIncompatibleVersion = errors.New("incompatible version of argon2") )
Functions ¶
func ComparePasswordWithHash ¶
ComparePasswordWithHash to check password string with hash password
func HashPassword ¶
HashPassword to create password hash
func InitArgonParams ¶
func InitArgonParamsFromEnv ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.