encryption

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESClient

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

func NewAESClient

func NewAESClient(ac *AESConfig) (*AESClient, error)

func (*AESClient) Decrypt

func (ac *AESClient) Decrypt(ctx context.Context, data []byte) ([]byte, error)

func (*AESClient) Encrypt

func (ac *AESClient) Encrypt(ctx context.Context, data []byte) ([]byte, error)

type AESConfig

type AESConfig struct {
	Key []byte `json:"key"`
}

func NewAESConfig

func NewAESConfig(key string) (*AESConfig, error)

Jump to

Keyboard shortcuts

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