hashing

package
v0.26.7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordTooShort  = fmt.Errorf("password cannot be less than %d", passwordMinLen)
	ErrPasswordTooLong   = fmt.Errorf("password cannot be greater than %d", passwordMaxLen)
	ErrPasswordDontMatch = errors.New("password provided doesn't match")
)

Functions

func Compare

func Compare(password, hashedPassword string) error

func Hash

func Hash(password string) (string, error)

func IsHash

func IsHash(hash string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳