aes256

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCodec

func NewCodec(config Config) (crypto.Codec, error)

NewCodec returns a new aes256-based implementation of crypto.Codec

Types

type Config added in v0.12.0

type Config struct {
	Key string `envconfig:"AES256_KEY"`
}

Config represents configuration options for the AES256-based implementation of the Crypto interface

func GetConfigFromEnvironment added in v0.12.0

func GetConfigFromEnvironment() (Config, error)

GetConfigFromEnvironment returns configuration derived from environment variables

func NewConfigWithDefaults added in v0.12.0

func NewConfigWithDefaults() Config

NewConfigWithDefaults returns a Config object with default values already applied. Callers are then free to set custom values for the remaining fields and/or override default values.

Jump to

Keyboard shortcuts

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