diff --git a/lib/cryptography.class.php b/lib/cryptography.class.php index 0faae39..d344ebd 100644 --- a/lib/cryptography.class.php +++ b/lib/cryptography.class.php @@ -28,7 +28,7 @@ public function encrypt() { putenv('HOME='.sys_get_temp_dir()); foreach ($this->getFiles(false) as $file) { $outputFile = $file.".gpg"; - $command = "gpg --no-options --batch --passphrase $this->symmetricKey --symmetric --cipher-algo AES256 -o $outputFile $file"; + $command = "gpg --batch --passphrase $this->symmetricKey --symmetric --cipher-algo AES256 -o $outputFile $file"; $result = shell_exec($command); if ($result) { echo "Cipher failure"; @@ -52,7 +52,7 @@ public function decrypt() { mkdir($decryptFolder); foreach ($this->getFiles(true) as $file) { $outputFile = $decryptFolder."/".str_replace(".gpg", "", basename($file)); - $command = "gpg --no-options --batch --passphrase $this->symmetricKey --decrypt -o $outputFile $file"; + $command = "gpg --batch --passphrase $this->symmetricKey --decrypt -o $outputFile $file"; $result = shell_exec($command); if ($result) { throw new Exception("Decipher failure");