secure

package
v0.0.0-...-daa2d54 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digest

func Digest(password string, iterations int) string

Digest hashes the password using pbkdf2 and returns a secure hash

func Hash

func Hash(data string) string

Hash takes the FNV-1a hash of a string

func VerifyDigest

func VerifyDigest(storedHash, password string) (bool, error)

VerifyDigest verifies that the password matches the stored hash using constant-time comparison

Types

This section is empty.

Jump to

Keyboard shortcuts

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