Versions in this module Expand all Collapse all v0 v0.2.0 Apr 28, 2021 v0.1.0 Dec 30, 2020 Changes in this version + const LocalEncryptionVersion + func UseBackend(cfg *BackendConfig) (vault.EncryptionBackend, error) + type BackendConfig struct + Local *LocalEncryption + Name string + func NewBackendConfig() *BackendConfig + type BackendInitFunc func(cfg *BackendConfig) (vault.EncryptionBackend, error) + type LocalEncryption struct + SecretKey string + func NewLocalEncryption(secretKey string) (*LocalEncryption, error) + func (e *LocalEncryption) Decrypt(ctx context.Context, data string) (string, error) + func (e *LocalEncryption) Encrypt(ctx context.Context, plaintext string) (string, error) + func (e *LocalEncryption) Type() string + func (e *LocalEncryption) Version() string