hasher

package
v0.0.0-...-8999b2b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHashTooShort      = errors.New("hashed password is too short")
	ErrInvalidHashPrefix = errors.New("invalid hash prefix")
	ErrInvalidPassword   = errors.New("password does not match hash")
	ErrInvalidSalt       = errors.New("invalid salt length")
)

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Hash(data []byte) (hash []byte, err error)
	Compare(passwordHash, password []byte) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL