Initial groundwork for native sync support

This commit is contained in:
2024-05-11 20:52:38 -04:00
parent 3acaa607e4
commit f86c2d8153
11 changed files with 143 additions and 51 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func DecryptGPG(targetLocation string) []string {
// EncryptGPG encrypts a slice of strings using GPG and returns the encrypted data as a byte slice
func EncryptGPG(input []string) []byte {
cmd := exec.Command("gpg", "-q", "-r", ReadConfig([]string{"gpgID"})[0], "-e")
cmd := exec.Command("gpg", "-q", "-r", ReadConfig([]string{"gpgID"}, "")[0], "-e")
writeToStdin(cmd, strings.Join(input, "\n"))
encryptedBytes, err := cmd.Output()
if err != nil {