Versions in this module Expand all Collapse all v0 v0.999.0 Aug 8, 2024 v0.2.25 Aug 8, 2024 Changes in this version + const AlgName + const BlockSizeDefault + const BlockSizeMax + const BlockSizeMin + const EncodingFormat + const IterationsDefault + const IterationsMax + const IterationsMin + const KeyLengthMax + const KeyLengthMin + const ParallelismDefault + const ParallelismMax + const ParallelismMin + const SaltLengthMax + const SaltLengthMin + func Decode(encodedDigest string) (digest algorithm.Digest, err error) + func RegisterDecoder(r algorithm.DecoderRegister) (err error) + type Digest struct + func (d *Digest) Encode() string + func (d *Digest) Key() []byte + func (d *Digest) LN() int + func (d *Digest) Match(password string) (match bool) + func (d *Digest) MatchAdvanced(password string) (match bool, err error) + func (d *Digest) MatchBytes(passwordBytes []byte) (match bool) + func (d *Digest) MatchBytesAdvanced(passwordBytes []byte) (match bool, err error) + func (d *Digest) P() int + func (d *Digest) R() int + func (d *Digest) Salt() []byte + func (d *Digest) String() string + type Hasher struct + func New(opts ...Opt) (hasher *Hasher, err error) + func (h *Hasher) Hash(password string) (digest algorithm.Digest, err error) + func (h *Hasher) HashWithSalt(password string, salt []byte) (digest algorithm.Digest, err error) + func (h *Hasher) MustHash(password string) (digest algorithm.Digest) + func (h *Hasher) Validate() (err error) + func (h *Hasher) WithOptions(opts ...Opt) (err error) + type Opt func(h *Hasher) (err error) + func WithBlockSize(r int) Opt + func WithK(k int) Opt + func WithKeyLength(k int) Opt + func WithLN(ln int) Opt + func WithP(p int) Opt + func WithParallelism(p int) Opt + func WithR(r int) Opt + func WithS(s int) Opt + func WithSaltLength(s int) Opt