I've created and symmetrically encrypted a file using GPG:
touch test.txt && echo 'test' >> test.txt
gpg --output test.txt --symmetric test.txt
But now I cannot figure out how to unencrypt it, and surprisingly, I cannot find an example online. Here's what I've tried:
$ gpg --decrypt test.txt
gpg: AES encrypted data
gpg: encrypted with 1 passphrase
$ gpg --symmetric --decrypt test.txt
gpg: conflicting commands
$ gpg --passphrase --decrypt test.txt
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error
$ gpg --decrypt --output test_decrypted.txt test.txt
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error
What am I doing wrong?