Documentation ¶ Index ¶ Variables func Compare(password, hashedPassword string) error func Hash(password string) (string, error) func IsHash(hash string) bool Constants ¶ This section is empty. Variables ¶ View Source var ( ErrPasswordTooShort = fmt.Errorf("password cannot be less than %d", passwordMinLen) ErrPasswordTooLong = fmt.Errorf("password cannot be greater than %d", passwordMaxLen) ErrPasswordDontMatch = errors.New("password provided doesn't match") ) Functions ¶ func Compare ¶ func Compare(password, hashedPassword string) error func Hash ¶ func Hash(password string) (string, error) func IsHash ¶ func IsHash(hash string) bool Types ¶ This section is empty. Source Files ¶ View all Source files hashing.go Click to show internal directories. Click to hide internal directories.