Skip to content

Instantly share code, notes, and snippets.

@sergio-bobillier
Created March 6, 2016 17:49
Show Gist options
  • Save sergio-bobillier/d19837faaae9bedc0bf8 to your computer and use it in GitHub Desktop.
Save sergio-bobillier/d19837faaae9bedc0bf8 to your computer and use it in GitHub Desktop.
Two easy to remember bash functions for your .bashrc file used to cipher and decipher files with the AES 256 cipher algorithm. (Uses OpenSSL).
function crypt {
openssl enc -e -aes256 -a -in $1 -out $2
}
function decrypt {
openssl enc -d -aes256 -a -in $1 -out $2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment