utils

package
v0.0.0-...-9dae437 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) ([]byte, error)

HashPassword takes the provided string and generates a bcrypt hash of it at the default strength

func VerifyPassword

func VerifyPassword(hashedPassword, password string) error

VerifyPassword compares a provided string password with the provided bcrypt password hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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