hasher

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

CheckPasswordHash is a decorator for bcrypt.CompareHashAndPassword. It returns true if the password match the hash or false if it's not.

func HashPassword

func HashPassword(password string) (string, error)

HashPassword is a decorator for bcrypt.GenerateFromPassword. It returns a hashed string encrypted with the bcrypt algorithm.

Types

This section is empty.

Jump to

Keyboard shortcuts

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