signers

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package signers 微信支付 API v3 Go SDK 数字签名生成器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SHA256WithRSASigner

type SHA256WithRSASigner struct {
	MchID               string          // 商户号
	CertificateSerialNo string          // 商户证书序列号
	PrivateKey          *rsa.PrivateKey // 商户私钥
}

SHA256WithRSASigner Sha256WithRSA 数字签名生成器

func (*SHA256WithRSASigner) Algorithm

func (s *SHA256WithRSASigner) Algorithm() string

Algorithm 返回使用的签名算法:SHA256-RSA2048

func (*SHA256WithRSASigner) Sign

Sign 对信息使用 SHA256WithRSA 算法进行签名

Jump to

Keyboard shortcuts

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