hash

package
v10.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 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

Use bcrypt compare hash password and password

func GeneratePassword

func GeneratePassword(password string) (string, error)

Use bcrypt generate password hash

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