open

package
v0.0.0-...-f295727 Latest Latest
Warning

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

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

README

拉卡拉开放平台接口

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) ([]byte, error)

func Sm4DecryptECB

func Sm4DecryptECB(key, data []byte) ([]byte, error)

func Sm4EncryptECB

func Sm4EncryptECB(key, data []byte) ([]byte, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(appid, appPrivatePem string, lklPublicPem string, isProd bool) (client *Client, err error)

func (*Client) Sign

func (t *Client) Sign(timeStamp int, nonceStr, body string) (signBase64 string, err error)

Sign [timeStamp] 秒级时间戳, [nonceStr] 12个字符的随机字符串 [body] 请求体报文

Jump to

Keyboard shortcuts

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