sign

package
v0.0.0-...-7c4d03a Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSign

func GenerateSign(requestData []byte, requestTime int64, secretKey string) string

GenerateSign 生成签名 参数key全部按键值排序 ToUpper(md5(sha1(base64(urlencode(SecretKey1Value1Key2Value2SecretTime))))) strtoupper( md5 ( sha1( base64_encode( urlencode( secret_key . static::serialize( request_data ) . secret_key . request_time ) ) ) ) )

func Serialize

func Serialize(data interface{}) interface{}

Serialize 序列化 && 递归ksort

func ValidSignT

func ValidSignT(requestData []byte, sign string, timestamp int64, secretKey string) error

ValidSignT 签名验证

Types

This section is empty.

Jump to

Keyboard shortcuts

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