cryptoutil

package
v0.0.0-...-d761283 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBcryptHash

func CreateBcryptHash(password string) (string, error)

CreateBcryptHash creates a bcrypt hash of the given password

func GetSHA256FromFS

func GetSHA256FromFS(fsys fs.FS) string

GetSHA256FromFS takes a fs.FS and returns a SHA256 hash of the combined contents of all files in the filesystem.

If there is an error, it returns an empty string.

func VerifyBcryptHash

func VerifyBcryptHash(password, hash string) error

VerifyBcryptHash verifies the given password against the bcrypt hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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