hash

package
v2.1.41 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hmac

func Hmac(h func() hash.Hash, value, key string) (string, error)

func HmacMD5

func HmacMD5(value, secret string) (string, error)

func HmacSha1

func HmacSha1(value, secret string) (string, error)

func HmacSha224

func HmacSha224(value, secret string) (string, error)

func HmacSha256

func HmacSha256(value, secret string) (string, error)

func HmacSha384

func HmacSha384(value, secret string) (string, error)

func HmacSha512

func HmacSha512(value, secret string) (string, error)

func MD5

func MD5(plainText string) string

MD5 加密字符串

func MD5File

func MD5File(path string) (string, error)

MD5File 计算文件的md5,适用于本地文件计算

func Sha1

func Sha1(text string) (string, error)

func Sha224

func Sha224(text string) (string, error)

func Sha256

func Sha256(text string) (string, error)

func Sha256File added in v2.0.8

func Sha256File(path string) (string, error)

func Sha384

func Sha384(text string) (string, error)

func Sha512

func Sha512(text string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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