Documentation ¶ Index ¶ Variables type Hasher Constants ¶ This section is empty. Variables ¶ View Source var ( ErrHashTooShort = errors.New("hashed password is too short") ErrInvalidHashPrefix = errors.New("invalid hash prefix") ErrInvalidPassword = errors.New("password does not match hash") ErrInvalidSalt = errors.New("invalid salt length") ) Functions ¶ This section is empty. Types ¶ type Hasher ¶ type Hasher interface { Hash(data []byte) (hash []byte, err error) Compare(passwordHash, password []byte) error } Source Files ¶ View all Source files hasher.go Directories ¶ Show internal Expand all Path Synopsis argon2 bcrypt salted scrypt Click to show internal directories. Click to hide internal directories.