hasher

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
)

Functions

func CompareArgon

func CompareArgon(password string, encodedHash string) (bool, error)

func HashArgon

func HashArgon(password string) (string, error)

func UUIDVv4

func UUIDVv4() (uuid.UUID, error)

func UUIDVv7

func UUIDVv7() (uuid.UUID, error)

func XXHash64

func XXHash64(s string) string

Types

type Params

type Params struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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