Simple symmetric GPG file encryption
$ crypto somefile.txt
$ crypto somefile.txt anotherimage.jpg
$ crypto *.txt
$ crypto --armor somefile.txt
$ crypto --speed somefile.txt
$ crypto --space somefile.txt
$ crypto --hash somefile.txt
Encrypt all top level directory files that have not previously been encrypted. The crypto options demonstrated above also work with directory arguments.
$ crypto privatedir
$ crypto imagedir privatedir
$ crypto --hash privatedir
$ crypto --tar privatedir
$ decrypto somefile.txt.crypt
$ decrypto somefile.txt.gpg
$ decrypto somefile.txt.asc
$ decrypto somefile.txt.asc anotherfile.txt.crypt
$ decrypto *.crypt
$ decrypto --stdout somefile.txt.crypt
Decrypt all top level encrypted files with a .crypt
, .gpg
, .asc
, or .pgp
file type.
$ decrypto privatedir
$ decrypto imagedir privatedir
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.
$ decrypto privatearchive.tar.crypt
$ decrypto archiveone.tar.crypt archivetwo.tar.crypt
$ decrypto --nountar privatearchive.tar.crypt
$ decrypto --nountar archiveone.tar.crypt archivetwo.tar.crypt