Created
March 6, 2016 17:49
-
-
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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