encryptor

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkWXEncryptor

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

func NewWorkWXEncryptor

func NewWorkWXEncryptor(
	encodingAESKey string,
	opts ...WorkWXEncryptorOption,
) (*WorkWXEncryptor, error)

func (*WorkWXEncryptor) Decrypt

func (e *WorkWXEncryptor) Decrypt(base64Msg []byte) (WorkWXPayload, error)

func (*WorkWXEncryptor) Encrypt

func (e *WorkWXEncryptor) Encrypt(payload *WorkWXPayload) (string, error)

type WorkWXEncryptorOption

type WorkWXEncryptorOption interface {
	// contains filtered or unexported methods
}

func WithEntropySource

func WithEntropySource(e io.Reader) WorkWXEncryptorOption

type WorkWXPayload

type WorkWXPayload struct {
	Msg       []byte
	ReceiveID []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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