Hi, I'm using GNUPG to encrypt my ascii files.
I learnt to generate a key, also how to use the it to encrypt and decrypt a file.
There are two ways I used:
gpg -d foo.txt.gpg
&
gpg --output foo.txt --decrypt foo.txt.gpg
I realized the first method will display the decrypted file on the screen, for example when I executed the command over SSH.
With regard to the second method, I concerned if it will leave a trace on the local pc - the foo.txt file.
Most importantly, I don't know how to edit the contents of the foo file on the fly. Ideally, I would like to open the file over SSH use nano/pico, type my passphrase to decrypt, then edit the file, save it and encrypt it. I very much like to avoid save any files to the local disk.
Any comments are welcome.
Thank you in advance.