hash

package
v0.0.0-...-1776e85 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractHashKey

func ExtractHashKey(hash string) ([]byte, error)

func ExtractSalt

func ExtractSalt(hash string) ([]byte, error)

func GenerateSalt

func GenerateSalt(saltLength int) ([]byte, error)

func Hash

func Hash(password []byte, salt []byte) (string, error)

Automatically generates a salt if nil is passed

func HashValidate

func HashValidate(password []byte, hash string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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