Help us shape the future of Go! Take the 2026 Go Developer Survey

passlib

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

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