File Encryption (and Decryption) Made Easy

A new release of the Crytto library (0.4.0) has just been published, which greatly simplifies encrypting (and decrypting) files

keys

The new release adds the decrypt script which, when combined with the existing automatic retrieval of the encryption key from the keystore, makes it a breeze to decrypt files.

For example, if you had encrypted your file with:

$ encrypt --keep README.md

the file would have been saved either in the same directory, or where you had configured the out: directory:

[INFO ] File 'README.md' encrypted to '/var/tmp/README.md.enc'
[INFO ] Encryption successful; saving data to store file '/private/archive-pass/keys.csv'.

To decrypt it back, then it will just be a matter of:

$ decrypt --out ${HOME}/README.md /var/tmp/README.md.enc
[INFO ] File '/var/tmp/README.md.enc' decrypted to '/private/README.md'

The configuration YAML file is now by default kept in ${HOME}/.crytto/conf.yml and its contents haven’t changed.

In addition, to keep the keystore in a reasonably “clean” state, we have added the prune_store script, which removes from the CSV file all the entries relative to files that no longer exist (use with care: if files have been moved the prune_cmd script won’t be able to detect that and you may lose valuable information – however, a copy of the keystore is kept in a .bak copy).

More information available in the GitHub repository.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s