hash

package
v0.0.0-...-1b17b00 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashAndPassword

func CompareHashAndPassword(hashedPassword, password string) error

CompareHashAndPassword Use bcrypt compare hash password and password

func GeneratePassword

func GeneratePassword(password string) (string, error)

GeneratePassword Use bcrypt generate password hash

func MD5

func MD5(b []byte) string

MD5 md5 hash

func MD5String

func MD5String(s string) string

MD5String md5 hash

func SHA1

func SHA1(b []byte) string

SHA1 sha1 hash

func SHA1String

func SHA1String(s string) string

SHA1String 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