Howdy, this is likely a silly question but here goes anyway. All done in Debian stable with KDE.
Normally I encrypt files thus:
gpg -c filename.txt > enter password twice.
And decrypt them thus:
gpg filename.txt.gpg > enter password once.
All good usually. I've recently found that if I do:
gpg filename.txt.gpg > press enter by mistake without inputting any pwd, that I get myself into a pickle.
If I then try to decrypt it again, it gives message:
gpg: WARNING: no command supplied. Trying to guess what you mean ...
gpg: AES256 encrypted data
gpg: gcry_kdf_derive failed: Invalid data
gpg: encrypted with 1 passphrase
gpg: decryption failed: No secret key
From DuckDuckGo'ing I think I've encrypted the file with a blank password. It just seems odd because my command didn't include -c, i.e I wasn't telling it to encrypt the file. And why it allowed a blank password. This is user error no doubt, it just seems odd & it could have been frustrating if I'd not had a backup of the file!
Basically I think my question is; Where did I go wrong? Should I _NEVER_ use the gpg command without a parameter, i.e. I should have used -d?
Thanks!