hash

package
v0.0.0-...-57897a3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32

func CRC32(str string) uint32

CRC32 crc32()

func CRC32String

func CRC32String(str string) string

CRC32String crc32()

func Equals

func Equals(known, user string) bool

Equals hash_equals()

func FNV132

func FNV132(s string) string

FNV132 hash('fnv132', $data)

func FNV164

func FNV164(s string) string

FNV164 hash('fnv164', $data)

func FNV1a32

func FNV1a32(s string) string

FNV1a32 hash('fnv1a32', $data)

func FNV1a64

func FNV1a64(s string) string

FNV1a64 hash('fnv1a64', $data)

func HmacMD5

func HmacMD5(s, k string) string

HmacMD5 hmac('md5', $data, $key)

func HmacSHA1

func HmacSHA1(s, k string) string

HmacSHA1 hmac('sha1', $data, $key)

func HmacSHA224

func HmacSHA224(s, k string) string

HmacSHA224 hmac('sha224', $data, $key)

func HmacSHA3224

func HmacSHA3224(s, k string) string

HmacSHA3224 hmac('sha3-224', $data, $key)

func HmacSHA3256

func HmacSHA3256(s, k string) string

HmacSHA3256 hmac('sha3-256', $data, $key)

func HmacSHA3384

func HmacSHA3384(s, k string) string

HmacSHA3384 hmac('sha3-384', $data, $key)

func HmacSHA3512

func HmacSHA3512(s, k string) string

HmacSHA3512 hmac('sha3-512', $data, $key)

func HmacSHA384

func HmacSHA384(s, k string) string

HmacSHA384 hmac('sha384', $data, $key)

func HmacSHA512

func HmacSHA512(s, k string) string

HmacSHA512 hmac('sha512', $data, $key)

func HmacSHA512224

func HmacSHA512224(s, k string) string

HmacSHA512224 hmac('sha512/224', $data, $key)

func HmacSHA512256

func HmacSHA512256(s, k string) string

HmacSHA512256 hmac('sha512/256', $data, $key)

func MD5

func MD5(s string) string

MD5 md5()

func MD5File

func MD5File(filename string) string

MD5File md5_file()

func MD5FileE

func MD5FileE(filename string) (s string, err error)

MD5FileE md5_file()

func SHA1

func SHA1(s string) string

SHA1 sha1()

func SHA1File

func SHA1File(filename string) string

SHA1File sha1_file()

func SHA1FileE

func SHA1FileE(filename string) (s string, err error)

SHA1FileE sha1_file()

func SHA224

func SHA224(s string) string

SHA224 hash('sha224', $data)

func SHA3224

func SHA3224(s string) string

SHA3224 hash('sha3-224', $data)

func SHA3256

func SHA3256(s string) string

SHA3256 hash('sha3-256', $data)

func SHA3384

func SHA3384(s string) string

SHA3384 hash('sha3-384', $data)

func SHA3512

func SHA3512(s string) string

SHA3512 hash('sha3-512', $data)

func SHA384

func SHA384(s string) string

SHA384 hash('sha384', $data)

func SHA512

func SHA512(s string) string

SHA512 hash('sha512', $data)

func SHA512224

func SHA512224(s string) string

SHA512224 hash('sha512/224', $data)

func SHA512256

func SHA512256(s string) string

SHA512256 hash('sha512/256', $data)

Types

This section is empty.

Jump to

Keyboard shortcuts

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