Created
November 5, 2014 10:58
-
-
Save cnbeining/23c4355f374b08b349e2 to your computer and use it in GitHub Desktop.
AES enc/dec
This file contains 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 enc() { | |
tar zcvf - $1 | openssl aes-256-cbc -salt -out $1.aes && srm -mfzr $1 | |
} | |
function dec() { | |
openssl aes-256-cbc -d -in $1.aes | tar zxvf - && rm -f $1.aes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment