passwd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinCost     = bcrypt.MinCost
	DefaultCost = 12 // ballpark: 250 msec on a modern Intel CPU
)

Variables

This section is empty.

Functions

func CompareHashAndPassword added in v0.12.0

func CompareHashAndPassword(hashedPassword, password []byte) error

func GenerateFromPassword added in v0.12.0

func GenerateFromPassword(password []byte, cost int) (result []byte, 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