hashes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMac

func HMac(hash crypto.Hash, key, str string) (string, error)

HMac 计算指定hash算法的hmac值

func HMacSHA1

func HMacSHA1(key, str string) string

HMacSHA1 计算hmac-sha1值

func HMacSHA256

func HMacSHA256(key, str string) string

HMacSHA256 计算hmac-sha256值

func Hash

func Hash(hash crypto.Hash, str string) (string, error)

Hash 计算指定算法的hash值

func MD5

func MD5(s string) string

MD5 计算md5值

func SHA1

func SHA1(s string) string

SHA1 计算sha1值

func SHA256

func SHA256(s string) string

SHA256 计算sha256值

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳