I’m trying to learn GPG encryption and noticed when I encrypt a file with "gpg -c "
the file created is filename.gpg as expected. But when I try to “cat filename.gpg” from command line the file appears to be encrypted (just gibberish on screen) but when I use “less filename.gpg” it displays just as before when the file was just named “filename”.
Is this a bug? Or do I miss understand gpg. I thought it should prompt me for a key with which to decrypt the file.
In application “Files” it attempts to open the file with gedit which shows the gibberish. Also doesn’t prompt for key.
How should this work? Don’t understand the premise about encrypting a file if you can just view it with the command less whether it’s encrypted or not with the key.