Documentation ¶
Index ¶
- Variables
- func Decrypt(ciphertext []byte, key *[32]byte) (plaintext []byte, err error)
- func Encrypt(plaintext []byte, key *[32]byte) (ciphertext []byte, err error)
- func ExecFilter(file string, filters map[string]string) error
- func Get(location string, headers []string, timeout time.Duration) (io.ReadCloser, error)
- func NewEncryptionKey() (*[32]byte, error)
- type Configuration
- type Filter
- type Filters
- type Modifier
- type SSM
- type SSMOption
Constants ¶
This section is empty.
Variables ¶
var Logger = log.New(os.Stderr, "", 0)
Logger is a STDERR logger
Functions ¶
func Decrypt ¶ added in v1.2.0
Decrypt decrypts data using 256-bit AES-GCM. This both hides the content of the data and provides a check that it hasn't been altered. Expects input form nonce|ciphertext|tag where '|' indicates concatenation.
func Encrypt ¶ added in v1.2.0
Encrypt encrypts data using 256-bit AES-GCM. This both hides the content of the data and provides a check that it hasn't been altered. Output takes the form nonce|ciphertext|tag where '|' indicates concatenation.
func ExecFilter ¶ added in v1.0.3
ExecFilter filters an individual file
func NewEncryptionKey ¶ added in v1.2.0
NewEncryptionKey generates a random 256-bit key for Encrypt() and Decrypt(). It return an error if the source of randomness fails.
Types ¶
type Configuration ¶
Configuration is the overall data structure unmarshalled from JSON
func (*Configuration) DoFilters ¶
func (c *Configuration) DoFilters() error
DoFilters filters the files listed in the Configuration object
type Filter ¶
Filter is a set of key value pair to be filtered for a file