aes

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 9 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(value string) (string, error)

Cipher a value using the provided key

func (*Client) Decipher

func (c *Client) Decipher(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