Documentation ¶
Overview ¶
Package signers 微信支付api v3 go http-client 签名生成器
Package signers 微信支付api v3 go http-client 签名生成器
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha256WithRsa ¶
func Sha256WithRsa(source string, privateKey *rsa.PrivateKey) (signature string, err error)
Sha256WithRsa 通过私钥对字符串进行sha256rsa的方式加密,生成签名信息
Types ¶
type Sha256WithRSASigner ¶
type Sha256WithRSASigner struct {
PrivateKey *rsa.PrivateKey // 私钥
}
Sha256WithRSASigner Sha256WithRSA 签名器
func (*Sha256WithRSASigner) GetName ¶
func (s *Sha256WithRSASigner) GetName() string
GetName 获取签名器的名称
Click to show internal directories.
Click to hide internal directories.