Skip to content

Instantly share code, notes, and snippets.

@cnbeining
Created November 5, 2014 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cnbeining/23c4355f374b08b349e2 to your computer and use it in GitHub Desktop.
Save cnbeining/23c4355f374b08b349e2 to your computer and use it in GitHub Desktop.
AES enc/dec
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