hash

package
v0.0.0-a39cc9e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashedPassword, password string) error

Use bcrypt compare hash password and password

func GeneratePassword

func GeneratePassword(password string) (string, error)

Use bcrypt generate password hash

func HMACSHA256String

func HMACSHA256String(message string, secret string) string

HMACSHA256String returns a lowercase hex HMAC-SHA256 digest.

func MD5

func MD5(b []byte) string

md5 hash

func MD5String

func MD5String(s string) string

md5 hash

func SHA1

func SHA1(b []byte) string

sha1 hash

func SHA1String

func SHA1String(s string) string

sha1 hash

Types

This section is empty.

Jump to

Keyboard shortcuts

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