From 071aa57e01353e2278d94ef1febabbcf95b8af6b Mon Sep 17 00:00:00 2001 From: Mike Date: Tue, 22 Oct 2024 16:03:14 -0700 Subject: [PATCH] fix: add EncryptWithKey to interface --- pkg/security/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/security/types.go b/pkg/security/types.go index a55dac17..14afb7de 100644 --- a/pkg/security/types.go +++ b/pkg/security/types.go @@ -9,6 +9,7 @@ import ( type Cryptor interface { Decrypt(cipherText string) (string, error) Encrypt(plainText string) (string, error) + EncryptWithKey(plainText, key string) (string, error) GenerateKey() string ReadAndDecryptFile(filePath string) (config.Configuration, error) }