security

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(password, hash, pepper string) bool

ComparePassword compares the password to the registered hash. True if passwords match, false if not or any errors occur

func HashPassword

func HashPassword(password, pepper string) (string, error)

HashPassword hashes the users password using the scrypt hashing algorithm

Types

This section is empty.

Jump to

Keyboard shortcuts

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