aes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	cipher.AEAD
}

Client is an handler for encryption functions.

func NewClient

func NewClient(config *Config) (*Client, error)

NewClient configures a client for encryption purposes.

func (*Client) Cipher

func (c *Client) Cipher(ctx context.Context, value string) (string, error)

Cipher a value using the provided key.

func (*Client) Decipher

func (c *Client) Decipher(ctx context.Context, value string) (string, error)

Decipher a value using the TransitKey.

type Config

type Config struct {
	// Key in a string format, usually passed from a CLI flag
	Key string
}

Config handles necessary information for AES.

Jump to

Keyboard shortcuts

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