package
0.1.3
Repository: https://github.com/rsms/go-httpd.git
Documentation: pkg.go.dev

# Functions

CheckPassword verifies a password; returns nil if password is correct.
Decode decodes a base-64 encoded config, salt and hash previously encoded with c.Encode.
DecodeRaw decodes a base-64 encoded config, salt and hash previously encoded with c.EncodeRaw.
Encode config along with salt and hash, returning base-64 data.
GenSalt generates a new cryptographically-strong salt to be used with HashPassword.
HashPassword takes an input password and a salt, returning a hash.

# Variables

DefaultConfig holds the default configuration parameters.
ErrInvalidAccount is returned by Change and Verify if there is no password data for the requested account.
ErrInvalidPassword is returned by CheckPassword is the input password is not a match.

# Structs

scrypt constants.
Passwords represents a group of passwords.