cryptor

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PKCS7PaddingBlockSize = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cryptor

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

func NewCryptor

func NewCryptor(encodingAESKey string) (*Cryptor, error)

func (*Cryptor) Decrypt

func (c *Cryptor) Decrypt(base64Msg []byte) (PlainPayload, error)

func (*Cryptor) Encrypt

func (c *Cryptor) Encrypt(payload *PlainPayload) (string, error)

type PlainPayload

type PlainPayload struct {
	Msg       []byte
	ReceiveID []byte
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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