Versions in this module Expand all Collapse all v0 v0.0.11 Feb 4, 2016 Changes in this version + type Encryptor interface + Decrypt func(data []byte) ([]byte, error) + Encrypt func(data []byte) ([]byte, error) + type GPGEncryptor struct + func NewGPGEncryptor(key Key) (*GPGEncryptor, error) + func (e *GPGEncryptor) AddSignCheckingKey(key Key) error + func (e *GPGEncryptor) Decrypt(data []byte) ([]byte, error) + func (e *GPGEncryptor) DeleteSignCheckingKey(keyID string) error + func (e *GPGEncryptor) Encrypt(data []byte) ([]byte, error) + func (e *GPGEncryptor) SetSignKey(key Key) error + type Key struct + ID string + Name string + PrivateValue []byte + PublicValue []byte + Value []byte + func GenerateGPGKey(name string) (Key, error) + func GenerateNaClKey(name string) (Key, error) + func GetTestKey(name string) (Key, error) + func (key Key) Public() Key + type KeyGenerator func(string) (Key, error) + type NaClEncryptor struct + func NewNaClEncryptor(key Key) (*NaClEncryptor, error) + func (e NaClEncryptor) Decrypt(data []byte) ([]byte, error) + func (e NaClEncryptor) Encrypt(data []byte) ([]byte, error)