A simple script for keeping a file encrypted but still editing it. A common use is for managing a file containing passwords.
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
viencrypt

README.md

A simple script for editing encrypted files

This script simply decrypts the file into a file readable only by you, you edit it in your favorite editor, and then it re-encrypts it and saves the file back where it came from.

I use this to keep track of my web passwords.

Usage :

$ ./viencrypt
No filename specified. Using default passwords.gpg
passwords.gpg doesn't exist. Starting from empty file.
Password: 
<editor pops up and you edit your file. Once you exit it saves it encrypted>

or for any other file

$ ./viencrypt my.love.notes
Password:
<editor pops up and you edit your file. Once you exit it saves it encrypted>

To change your editor (in bash) :

$ export EDITOR=pico
$ ./viencrypt
<now pico pops up>