Difference: Cryptsym (r2 vs. r1)


Cryptsym (All the good names were taken) stands for Crypto Symmetric file manager. It's a very simple command line wrapper for GPG in perl which tries to keep the plan text version of your sensitive files from touching or remaining on your hard drive. GPG is a wonderful program but it just isn't set up to worry about the details of your work flow in this way. My goal was to make a very simple program script that people would feel comfortable using to help protect them against making stupid mistakes with their sensitive files. If you have more than a few such files you might consider creating an encrypted directory, file system, partition, or drive. Though if that seems like overkill to you, read on.

The only requirements are GPG, gpg, shred, stty, and in v0.2, an editor. No Perl modules are used.

Sample invocations:

  • cryptsym foo
  • cryptsym foo path/to/new/dir/or/file
  • cryptsym foo.asc | less
  • cryptsym -e foo.asc
    • Edit in ram (v0.2 only)

If there is a new file created It will be in the same directory as the original, however plaintext goes to stdout by default and could be piped into something else. If you call it with a second argument it will put the resulting file in that directory, and or give it a new name. If you are encrypting, it uses shred to try to scrub the remains off your hard drive so the platters are nice and shinny again. wink

Change Log


This one just toggles the file between plaintext and encrypted forms. Only one page of code!


Added an external editor option that will edit a file in place and (re)encrypt when you're done. You need to localize some config settings at the start of the program script to your system, like your favorite editor and where your RAM disk is (Very important). I had to write a passphrase (pinentry) routine for this, and I was able to obfuscate it so it wasn't just sitting in ram waiting to be mined. I know it's not perfect but it's some protection anyway.

Similar projects:

If you're looking for a wrapper with a slick GUI frontend, Check out Ryan Sawhill's Pyrite here.

-- ClifCox - 21 Jan 2014

cryptsym-v0.11cryptsym-v0.1manage 1.3 K 21 Jan 2014 - 23:24ClifCox  
cryptsym-v0.22cryptsym-v0.2manage 4.6 K 21 Jan 2014 - 23:25ClifCox  

View topic | View difference side by side | History: r4 < r3 < r2 < r1 | More topic actions
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback