Skip to main content

How decrypt a file in nano text editor? [Resolved]

I encrypted a text file in terminal using "gpg -c filename" and got "filename.txt.gpg" created in my file manager. I deleted the original unencrypted file.

Now I want to decrypt it in Nano so I can continue working on it. If, in a terminal, I do "gpg -d filename.txt.gpg", the file opens in terminal where I can read it, but do nothing else.

I want to open the encrypted file in Nano, and add data to the file in Nano.

I've tried every way I can think of, but not able to decrypt and open the file in Nano. Any ideas? Thx.

Question Credit: themira
Question Reference
Asked July 20, 2019
Posted Under: Unix Linux
1 Answers

Your Answer