package
0.2.25
Repository: https://github.com/go-crypt/crypt.git
Documentation: pkg.go.dev

# Functions

Decode the encoded digest into a algorithm.Digest.
DecodeVariant the encoded digest into a algorithm.Digest provided it matches the provided plaintext.Variant.
New returns a *plaintext.Hasher without any settings configured.
NewBase64Digest creates a new plaintext.Digest using the Base64 plaintext.Variant.
NewDigest creates a new plaintext.Digest using the plaintext.Variant.
NewVariant converts an identifier string to a plaintext.Variant.
RegisterDecoder the decoder with the algorithm.DecoderRegister.
RegisterDecoderBase64 registers specifically the base64 decoder variant with the algorithm.DecoderRegister.
RegisterDecoderPlainText registers specifically the plaintext decoder variant with the algorithm.DecoderRegister.
WithVariant configures the plaintext.Variant of the resulting plaintext.Digest.
WithVariantName uses the variant name or identifier to configure the plaintext.Variant of the resulting plaintext.Digest.

# Constants

AlgIdentifierBase64 is the identifier used in encoded base64 variants of this algorithm.
AlgIdentifierPlainText is the identifier used in encoded plaintext variants of this algorithm.
AlgName is the name for this algorithm.
EncodingFmt is the encoding format for this algorithm.
VariantBase64 is a variant of the plaintext.Digest which stores the key as a base64 string.
VariantNone is a variant of the plaintext.Digest which is unknown.
VariantPlainText is a variant of the plaintext.Digest which stores the key as plain text.

# Structs

Digest is an algorithm.Digest which handles plaintext matching.
Hasher is a crypt.Hash for plaintext which can be initialized via plaintext.New using a functional options pattern.

# Type aliases

Opt describes the functional option pattern for the plaintext.Hasher.
Variant is a variant of the plaintext.Digest.