accounts

package
v0.0.0-...-7a9b2cb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) string

HashPassword generates a hashed password using the scrypt algorithm.

It takes a string parameter `password` which is the password to be hashed. Returns a string which is the hashed password.

func VerifyPassword

func VerifyPassword(password string, hash string) error

verifyPassword verifies the given password against the provided hash.

password - The password to be verified. hash - The hash to compare the password against. error - An error if the verification fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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