password

package
v0.0.0-...-55d825f Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswordHash

func ComparePasswordHash(password, hash string) bool

Compares a password with a hash to determine if the password is correct

func HashPassword

func HashPassword(password string) (string, error)

Receives a password as an input and returns a hash that can be stored in the database

func ValidatePassword

func ValidatePassword(password string) error

Validates that a password meets complexity requirements

Types

This section is empty.

Jump to

Keyboard shortcuts

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