cmbc

package
v0.0.0-...-6d97cda Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

招商银行的云智联,国密签名验签加密解密

请求

  • 签名
  • 加密

响应

  • 解密
  • 验签

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMTool

type SMTool struct {
}

招商银行 签名,加密 解密工具

func (*SMTool) DecryptByString

func (s *SMTool) DecryptByString(uid, uKey, data string) ([]byte, error)

解密 用户id 对称密钥(SM4密钥) 响应字符串

func (*SMTool) EncryptByString

func (s *SMTool) EncryptByString(uid, uKey string, data []byte) (string, error)

加密 用户id 对称密钥(SM4密钥) 签名后的数据

func (*SMTool) SignString

func (s *SMTool) SignString(uid, prikey, data string) string

签名 用户id 用户私钥 请求数据

func (*SMTool) VerifyString

func (s *SMTool) VerifyString(uid, pubKey, data, sign string) bool

Jump to

Keyboard shortcuts

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