Documentation ¶
Index ¶
- Variables
- func CompareHashAndPassword(hashedPassword, password []byte) error
- func DecodeSaltAndHash(encodedHash []byte) (salt []byte, hash []byte, err error)
- func GenerateFromPassword(password []byte) (encodedHash string, err error)
- func Hash(password []byte) (salt []byte, hash []byte, err error)
- func HashWithSalt(salt, password []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashTooShort = errors.New("hashedSecret too short to be a scrypted password") ErrMismatchedHashAndPassword = errors.New("hashedPassword is not the hash of the given password") )
View Source
var Encoding = base64.RawURLEncoding
Functions ¶
func CompareHashAndPassword ¶
func DecodeSaltAndHash ¶
func GenerateFromPassword ¶
func HashWithSalt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.