security

package
v0.0.0-...-34ec42c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 3 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 compares a password to a hash and returns if it is valid or not.

func GenerateCode

func GenerateCode() string

GenerateCode generates a random user code

func HashPassword

func HashPassword(password string) (string, error)

HashPassword takes a password and returns the bcrypt hash in a string format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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