hash

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bcrypt added in v0.0.6

func Bcrypt(message string) string

func BcryptCheck added in v0.0.6

func BcryptCheck(hashedMessage string, password string) bool

func BcryptGetCost added in v0.0.7

func BcryptGetCost(hashedMessage string) int

func BcryptWithCost added in v0.0.6

func BcryptWithCost(message string, cost int) string

func HmacMd5 added in v0.0.2

func HmacMd5(data []byte, key []byte) []byte

func HmacMd5Base64String added in v0.0.5

func HmacMd5Base64String(message string, key string) string

func HmacMd5HexString added in v0.0.3

func HmacMd5HexString(message string, key string) string

func HmacSha1 added in v0.0.2

func HmacSha1(data []byte, key []byte) []byte

func HmacSha1Base64String added in v0.0.5

func HmacSha1Base64String(message string, key string) string

func HmacSha1HexString added in v0.0.3

func HmacSha1HexString(message string, key string) string

func HmacSha256 added in v0.0.2

func HmacSha256(data []byte, key []byte) []byte

func HmacSha256Base64String added in v0.0.5

func HmacSha256Base64String(message string, key string) string

func HmacSha256HexString added in v0.0.3

func HmacSha256HexString(message string, key string) string

func HmacSha512 added in v0.0.2

func HmacSha512(data []byte, key []byte) []byte

func HmacSha512Base64String added in v0.0.5

func HmacSha512Base64String(message string, key string) string

func HmacSha512HexString added in v0.0.3

func HmacSha512HexString(message string, key string) string

func Md5

func Md5(message string) string

func PasswordBcrypt added in v0.1.0

func PasswordBcrypt(password string, pepper string) string

func PasswordMd5 added in v0.1.0

func PasswordMd5(password string, salt string) string

func PasswordSha1 added in v0.1.0

func PasswordSha1(password string, salt string) string

func PasswordSha256 added in v0.1.0

func PasswordSha256(password string, salt string) string

func PasswordSha512 added in v0.1.0

func PasswordSha512(password string, salt string) string

func Sha1

func Sha1(message string) string

func Sha256

func Sha256(message string) string

func Sha512

func Sha512(message string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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