decryptors

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDecryptor

type MockDecryptor struct {
}

MockDecryptor 模拟字符串解密器

func (*MockDecryptor) Decrypt

func (d *MockDecryptor) Decrypt(ctx context.Context, ciphertext string) (plaintext string, err error)

Decrypt 对字符串进行模拟解密

type WechatPayDecryptor

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

WechatPayDecryptor 微信支付字符串解密器

func NewWechatPayDecryptor

func NewWechatPayDecryptor(privateKey *rsa.PrivateKey) *WechatPayDecryptor

NewWechatPayDecryptor 使用商户私钥初始化一个 WechatPayDecryptor

func (*WechatPayDecryptor) Decrypt

func (d *WechatPayDecryptor) Decrypt(_ context.Context, ciphertext string) (plaintext string, err error)

Decrypt 使用商户私钥对字符串进行解密

Jump to

Keyboard shortcuts

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