hashs

package
v0.0.0-...-c7c354a Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Crc32

func Crc32(plainText []byte) uint32

Crc32 crc32()

func HashPriv

func HashPriv(hash crypto.Hash, hashed, privateKey []byte) ([]byte, error)

func Hmac

func Hmac(plainText, key []byte) []byte

Hmac hmac

func Md5

func Md5(plainText []byte) []byte

Md5 md5

func Md5File

func Md5File(path string) (string, error)

Md5File 加密文件

func Sha1

func Sha1(plainText []byte) []byte

Sha1 sha1

func Sha1File

func Sha1File(path string) (string, error)

Sha1File sha1_file()

func Sha256

func Sha256(plainText []byte) []byte

Sha256 sha256

func Sha512

func Sha512(plainText []byte) []byte

Sha512 sha512

func VerifyHashPub

func VerifyHashPub(hash crypto.Hash, hashed, data, privateKey []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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