kms

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encrypter

type Encrypter struct {
	ID      string
	Context string
}

Encrypter contains the basic items needed by KMS to encrypt a string

func New

func New(kmsID, kmsContext string) Encrypter

New creates a new Encrypter object to be used to interact with the package methods

func (*Encrypter) Encrypt

func (e *Encrypter) Encrypt(str string) ([]byte, error)

Encrypt uses the AWS API to encrypt a string using KMS and returns a slice of bytes (Encryption Text blob in base64), and an error

Jump to

Keyboard shortcuts

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