Solved decryption encryption bug

This commit is contained in:
2022-12-11 10:19:35 +01:00
parent c85c108db5
commit 4c3661de76
4 changed files with 15 additions and 5 deletions

View File

@@ -127,7 +127,9 @@ class Encryption():
self.encryptToJsonFile(data,file_path,self.master_password)
def encryptMainData(self):
self.cli.executeCommand('tar -cvzf - "' + self.paths.getDecryptedMainDataStandartFolder() + '" | gpg -c --batch --passphrase "' + self.master_password +'" > "' + self.paths.getEncryptedMainDataFile() + '"');
self.cli.executeCommand('tar -C"' + self.paths.getDecryptedMainDataStandartFolder() + '" -cvzf - ./ | gpg -c --batch --passphrase "' + self.master_password +'" > "' + self.paths.getEncryptedMainDataFile() + '"')
print(self.cli.getCommandString())
print(self.cli.getOutputString())
def encryptAll(self):
self.encryptUserFile()