package
0.0.12
Repository: https://github.com/colt3k/utils.git
Documentation: pkg.go.dev

# Functions

Calibrate returns the hardest parameters (not weaker than the given params), allowed by the given limits.
CompareHashAndPassword compares a derived key with the possible cleartext equivalent.
Cost returns the scrypt parameters used to generate the derived key.
Key derived key for e.g.

# Variables

DefaultParams provides sensible default inputs into the scrypt function for interactive use (i.e.
ErrInvalidHash is returned when failing to parse a provided scrypt hash and/or parameters.
ErrInvalidParams is returned when the cost parameters (N, r, p), salt length or derived key length are invalid.
ErrMismatchedHashAndPassword is returned when a password (hashed) and given hash do not match.

# Structs

Params store values for scrypt encryption.