hash

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64BydEncode

func Base64BydEncode(data []byte) string

Base64BydEncode encode byte with base64 encoding

func Base64StdDecode

func Base64StdDecode(data string) []byte

Base64StdDecode decode a base64 encoded string

func Base64StdEncode

func Base64StdEncode(data string) string

Base64StdEncode encode string with base64 encoding

func HmacMd5

func HmacMd5(data, key string) string

HmacMd5 return the hmac hash of string use md5

func HmacSha1

func HmacSha1(data, key string) string

HmacSha1 return the hmac hash of string use sha1

func HmacSha256

func HmacSha256(data, key string) string

HmacSha256 return the hmac hash of string use sha256

func HmacSha512

func HmacSha512(data, key string) string

HmacSha512 return the hmac hash of string use sha512

func Md5File

func Md5File(filename string) (string, error)

Md5File return the md5 value of file

func Md5String

func Md5String(data string) string

Md5String return the md5 value of string

func Sha1

func Sha1(data string) string

Sha1 return the sha1 value (SHA-1 hash algorithm) of string

func Sha256

func Sha256(data string) string

Sha256 return the sha256 value (SHA256 hash algorithm) of string

func Sha512

func Sha512(data string) string

Sha512 return the sha512 value (SHA512 hash algorithm) of string

Types

This section is empty.

Jump to

Keyboard shortcuts

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