Edit Encrypted Files (eef) is a command-line tool to edit encrypted files with GPG using symmetric-key encryption.
Install eef from PyPI:
$ pip install eef
Edit an encrypted file with nano:
$ eef notes.gpg
Edit an encrypted file with another text editor:
$ eef -e vi notes.gpg
$ eef newfile.gpg
eef will detect that the file doesn't exist, ask the passphrase twice and make sure they match.
With less
:
$ less notes.gpg
Enter passphrase:
...
Note: less
only asks the passphrase for files ending with .gpg
.
eef:
- decrypts the file and stores it under the
/dev/shm
directory; - starts the text editor;
- encrypts the file back;
- shreds and removes the decrypted file.
Because $EDITOR
might create backup files of the decrypted
file. That is why eef uses nano --ignorercfiles
by default.
Mathieu Larose mathieu@mathieularose.com
eef is released under the GPLv3. See the LICENSE file for details.