Versions in this module Expand all Collapse all v1 v1.0.0 Dec 30, 2019 Changes in this version + const AES256 + const DecryptMode + const EncryptMode + const KMS + func DecryptSourceConfig(ms domain.DatabaseConnection, sourceConfig domain.SourceConfig, config config) (domain.SourceConfig, error) + func Hash(in string) string + type AESClient struct + func (client *AESClient) Decrypt(in string) (out string, err error) + func (client *AESClient) Encrypt(in string) (out string, err error) + type Client interface + Decrypt func(string) (string, error) + Encrypt func(string) (string, error) + func NewEncryptionClient(clientType string, db domain.DatabaseConnection, ...) (client Client, err error) + func NewEncryptionClientWithDirectKey(clientType string, key string) (client Client, err error) + func NewEncryptionClientWithProfile(clientType string, db domain.DatabaseConnection, ...) (client Client, err error) + type KMSClient struct + Client *kms.KMS + KeySpec string + func CreateKMSClientWithProfile(keyID string, profile string) (client *KMSClient, err error) + func (kmsClient *KMSClient) Decrypt(encryptedText string) (message string, err error) + func (kmsClient *KMSClient) Encrypt(message string) (encryptedString string, err error)