aws

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 7 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 {
	*kms.KMS
	Config *Config
}

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 provided KMS Key.

type Config

type Config struct {
	// Key in a string format, usually passed from a CLI flag
	KmsKeyArn 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