gsign

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignTypeMD5        = `MD5`
	SignTypeHMACSHA256 = `HMAC-SHA256`
)

签名算法方式

Variables

This section is empty.

Functions

func CalculateSign

func CalculateSign(content, signType, key string) (string, error)

CalculateSign 计算签名

func OrderParam

func OrderParam(p map[string]string, bizKey string) (returnStr string)

OrderParam order params

func ParamSign

func ParamSign(p map[string]string, key string) (string, error)

ParamSign 计算所传参数的签名

func Signature

func Signature(params ...string) string

Signature sha1签名

Types

This section is empty.

Jump to

Keyboard shortcuts

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