Skip to content

Instantly share code, notes, and snippets.

@a-ludi
a-ludi / gpgedit
Last active July 23, 2023 21:19
gpgedit lets you edit a gpg-encrypted file without much fuzz -- similar to sudoedit.
#!/usr/bin/python
# gpgedit lets you edit a gpg-encrypted file without much fuzz -- similar to
# sudoedit.
#
# For this to achieve, gpgedit uses gpg to decrypt your file and save the
# plain text in a temporary file under /dev/shm (tmpfs) which will open in
# an editor. After the changes have been saved and the editor closed your
# plain text will be encrypted and written to the original file.
#