hashutil

package
v0.0.0-...-2be43cf Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crc32

func Crc32(b []byte) uint32

Crc32 ...

func Crc64

func Crc64(b []byte) uint64

Crc64 ... 可用于腾讯云/阿里云对象存储校验

func Hashes

func Hashes(algorithm hash.Hash, b []byte) []byte

Hashes hashes

func HmacMd5

func HmacMd5(b []byte, secret []byte) []byte

HmacMd5 hashes using md5 algorithm with a secret

func HmacMd5Hex

func HmacMd5Hex(b []byte, secret []byte) string

HmacMd5Hex hashes using md5 algorithm with a secret

func HmacSha1

func HmacSha1(b []byte, secret []byte) []byte

HmacSha1 hashes using sha1 algorithm with a secret

func HmacSha1Hex

func HmacSha1Hex(b []byte, secret []byte) string

HmacSha1Hex hashes using sha1 algorithm with a secret

func HmacSha256

func HmacSha256(b []byte, secret []byte) []byte

HmacSha256 hashes using sha256 algorithm with a secret

func HmacSha256Hex

func HmacSha256Hex(b []byte, secret []byte) string

HmacSha256Hex hashes using sha256 algorithm with a secret

func HmacSha512

func HmacSha512(b []byte, secret []byte) []byte

HmacSha512 hashes using sha512 algorithm with a secret

func HmacSha512Hex

func HmacSha512Hex(b []byte, secret []byte) string

HmacSha512Hex hashes using sha512 algorithm with a secret

func Md5

func Md5(b []byte) []byte

Md5 hashes using md5 algorithm

func Md5Hex

func Md5Hex(b []byte) string

Md5Hex hashes using md5 algorithm

func Sha1

func Sha1(b []byte) []byte

Sha1 hashes using sha1 algorithm

func Sha1Hex

func Sha1Hex(b []byte) string

Sha1Hex hashes using sha1 algorithm

func Sha256

func Sha256(b []byte) []byte

Sha256 hashes using sha256 algorithm

func Sha256Hex

func Sha256Hex(b []byte) string

Sha256Hex hashes using sha256 algorithm

func Sha512

func Sha512(b []byte) []byte

Sha512 hashes using sha512 algorithm

func Sha512Hex

func Sha512Hex(b []byte) string

Sha512Hex hashes using sha512 algorithm

func StringHashes

func StringHashes(algorithm hash.Hash, b []byte) string

StringHashes hashes string

func Time33

func Time33(text string) int

Time33 ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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