hash

package
v0.0.0-...-5f01fc0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePasswords

func ComparePasswords(password string, salt []byte, encodedHash string) bool

ComparePasswords checks if the provided password hashes to the same value.

func GenerateSalt

func GenerateSalt() []byte

GenerateSalt creates a new random salt.

func HashPassword

func HashPassword(password string, salt []byte) string

HashPassword hashes the password using Argon2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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