From 77b9cb8e76f8b27d80fce060a37d1e6980668171 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Fri, 4 Dec 2020 23:51:15 -0800 Subject: [PATCH] Fix erroneous key reencryption --- fileCrypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileCrypto.go b/fileCrypto.go index 48479b4..cb6caa5 100644 --- a/fileCrypto.go +++ b/fileCrypto.go @@ -97,7 +97,7 @@ func EncryptFiles(dir string, sharedKey string) { // If error reading, return err if err != nil { return err } // If file is not a directory and is not the key - if !info.IsDir() && !strings.Contains(path, "aesKey"){ + if !info.IsDir() && !strings.Contains(path, "key.aes"){ // Encrypt the file using shared key, appending .enc EncryptFile(path, path + ".enc", sharedKey) // Remove unencrypted file