# Packages
Package argon2 provides helpful abstractions for an implementation of RFC9106 and implements github.com/go-crypt/crypt interfaces.
Package bcrypt provides helpful abstractions for an implementation of bcrypt and implements github.com/go-crypt/crypt interfaces.
Package md5crypt provides helpful abstractions for an implementation of crypt (MD5) and implements github.com/go-crypt/crypt interfaces.
Package pbkdf2 provides helpful abstractions for an implementation of PBKDF2 and implements github.com/go-crypt/crypt interfaces.
Package plaintext implements github.com/go-crypt/crypt interfaces with variants of plaintext useful for easy uptake of previously unhashed passwords.
Package scrypt provides helpful abstractions for an implementation of RFC7914 and implements github.com/go-crypt/crypt interfaces.
Package sha1crypt provides helpful abstractions for an implementation of crypt (SHA1) and implements github.com/go-crypt/crypt interfaces.
Package shacrypt provides helpful abstractions for an implementation of SHA-crypt and implements github.com/go-crypt/crypt interfaces.
# Constants
DigestSHA1 is te name for SHA1 digests.
DigestSHA224 is te name for SHA224 digests.
DigestSHA256 is te name for SHA256 digests.
DigestSHA384 is te name for SHA384 digests.
DigestSHA512 is te name for SHA512 digests.
Error format strings.
Error format strings.
Error format strings.
Error format strings.
Error format strings.
KeyLengthDefault is the default key size for most implementations.
SaltLengthDefault is the default salt size for most implementations.
# Variables
ErrEncodedHashInvalidFormat is an error returned when an encoded hash has an invalid format.
ErrEncodedHashInvalidIdentifier is an error returned when an encoded hash has an invalid identifier for the given digest.
ErrEncodedHashInvalidOption is an error returned when an encoded hash has an unsupported or otherwise invalid option in the option field.
ErrEncodedHashInvalidOptionKey is an error returned when an encoded hash has an unknown or otherwise invalid option key in the option field.
ErrEncodedHashInvalidOptionValue is an error returned when an encoded hash has an unknown or otherwise invalid option value in the option field.
ErrEncodedHashInvalidVersion is an error returned when an encoded hash has an unsupported or otherwise invalid version.
ErrEncodedHashKeyEncoding is an error returned when an encoded hash has a salt with an invalid or unsupported encoding.
ErrEncodedHashSaltEncoding is an error returned when an encoded hash has a salt with an invalid or unsupported encoding.
ErrKeyDerivation is returned when a Key function returns an error.
ErrParameterInvalid is an error returned when a parameter has an invalid value.
ErrPasswordInvalid is an error returned when a password has an invalid or unsupported properties.
ErrSaltEncoding is an error returned when a salt has an invalid or unsupported encoding.
ErrSaltInvalid is an error returned when a salt has an invalid or unsupported properties.
ErrSaltReadRandomBytes is an error returned when generating the random bytes for salt resulted in an error.
# Interfaces
Decoder is a representation of a implementation that performs generic decoding.
DecoderRegister describes an implementation that allows registering DecodeFunc's.
Digest represents a hashed password.
Hash is an interface which implements password hashing.
Matcher is an interface used to match passwords.
# Type aliases
DecodeFunc describes a function to decode an encoded digest into a algorithm.Digest.
HashFunc is a function which returns a hash.Hash.