crypto

Simple symmetric GPG file encryption

Install Guide for Mac OSX and Linux

Quickstart Guide

Usage

FAQ

Issue Reporting

Changelog

Quickstart Guide

Encryption

By Filepath

Encrypt a File
$ crypto somefile.txt
Encrypt Multiple Files by Explicit Path
$ crypto somefile.txt anotherimage.jpg
Encrypt Multiple Files by Wildcard Expansion
$ crypto *.txt
Encrypt a File with Portable ASCII Armored Format
$ crypto --armor somefile.txt
Encrypt File with Prioritization of Encryption Speed Over File Size
$ crypto --speed somefile.txt
Encrypt File with Prioritization of Reduced File Size Over Encryption Speed
$ crypto --space somefile.txt
Encrypt File and Report SHA256 Hash Digest for the Encrypted File
$ crypto --hash somefile.txt

By Directory

Encrypt all top level directory files that have not previously been encrypted. The crypto options demonstrated above also work with directory arguments.

Encrypt Top Level Files in a Directory
$ crypto privatedir
Encrypt Top Level Files in More Than One Directory
$ crypto imagedir privatedir
Encrypt Top Level Files in a Directory and Report SHA256 Hash Digests
$ crypto --hash privatedir
Pack an Entire Directory of Files into a Tar Archive, Then Encrypt Archive
$ crypto --tar privatedir


Decryption

By Filepath

Decrypt a File (.crypt file format)
$ decrypto somefile.txt.crypt
Decrypt a File (.gpg file format)
$ decrypto somefile.txt.gpg
Decrypt a File (.asc file format)
$ decrypto somefile.txt.asc
Decrypt Multiple Files by Explicit Path
$ decrypto somefile.txt.asc anotherfile.txt.crypt
Decrypt Multiple Files by Wildcard Expansion
$ decrypto *.crypt
Decrypt File Text to the Standard Output Stream
$ decrypto --stdout somefile.txt.crypt

By Directory

Decrypt all top level encrypted files with a .crypt, .gpg, .asc, or .pgp file type.

Decrypt Files in a Single Directory
$ decrypto privatedir
Decrypt Files in Multiple Directories
$ decrypto imagedir privatedir

By Tar Archive

By default, decrypto decrypts tar archives and unpacks them in the same directory where the encrypted archive is located. The decrypted tar archives are erased, leaving the decrypted, unpacked directories. You can modify this default behavior with the --nountar switch.

Decrypt Tar Archive and Then Unpack It
$ decrypto privatearchive.tar.crypt
Decrypt Multiple Tar Archives and Unpack Them
$ decrypto archiveone.tar.crypt archivetwo.tar.crypt
Decrypt Tar Archive, Do Not Unpack It
$ decrypto --nountar privatearchive.tar.crypt
Decrypt Multiple Tar Archives, Do Not Unpack Them
$ decrypto --nountar archiveone.tar.crypt archivetwo.tar.crypt