Documentation ¶ Index ¶ Variables func HashPassword(password string, salt string) string func RandomPassword(length int, minNumbers, minSpecial int) (string, error) func VerifyPassword(password, compareHash string, pwsalt string) (bool, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrInvalidHash = errors.New("the encoded hash is not in the correct format") ErrIncompatibleVersion = errors.New("incompatible version of argon2") ErrNoRandom = errors.New("no random source available") ) Functions ¶ func HashPassword ¶ func HashPassword(password string, salt string) string func RandomPassword ¶ func RandomPassword(length int, minNumbers, minSpecial int) (string, error) func VerifyPassword ¶ func VerifyPassword(password, compareHash string, pwsalt string) (bool, error) Types ¶ This section is empty. Source Files ¶ View all Source files password.go Click to show internal directories. Click to hide internal directories.