passlib

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultMemoryCost uint32 = 65536
	DefaultTimeCost   uint32 = 4
	DefaultThreads    uint8  = 1
)
View Source
var (
	ErrInvalidHash         = errors.New("unable to parse the current hash value")
	ErrIncompatibleVariant = errors.New("hash variants are not compatible")
	ErrIncompatibleVersion = errors.New("hash version are not support")
	ErrNotMatch            = errors.New("password does not match hash")
)

Functions

func Hash

func Hash(password string) (hash string, err error)

func Verify

func Verify(password string, hash string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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