hash

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswordToHash

func ComparePasswordToHash(password, hash string) (bool, error)

ComparePassword is used to compare a user-inputted password to a hash to see if the password matches or not.

func GenerateHash

func GenerateHash(password string) (string, error)

Types

type PasswordConfig

type PasswordConfig struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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