Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple script for keeping a file encrypted but still editing it. A common use is for managing a file containing passwords.
Shell
branch: master

Merge pull request #7 from fredrikmollerstrand/master

use `srm` as fallback if `shred` is not available
latest commit 3c9b9c5336
@ptarjan authored

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>
Something went wrong with that request. Please try again.