password

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword added in v1.5.0

func CompareHashAndPassword(ctx context.Context, hash, pass string) error

CompareHashAndPassword using bcrypt.

func Generate

func Generate(ctx context.Context) (string, error)

Generate secure password.

func Hash

func Hash(ctx context.Context, pass string) (string, error)

Hash the password using bcrypt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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