bcrypt

package
v1.12.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Prefix is set to be compatible with Dovecot. Can be set to an empty string.
	Prefix = "{BLF-CRYPT}"
)

Functions

func Generate

func Generate(password string) (string, error)

Generate generates a new Bcrypt hash with recommended values for it's cost parameter.

func Validate

func Validate(password, hash string) error

Validate validates the password against the given hash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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