Skip to content

Instantly share code, notes, and snippets.

@parvez
Created March 29, 2012 10:29
Show Gist options
  • Save parvez/2235694 to your computer and use it in GitHub Desktop.
Save parvez/2235694 to your computer and use it in GitHub Desktop.
My Bash Profile - Encryptions
aes_encrypt() {
echo -n "Password: ";stty -echo;read password;stty echo;echo "";
openssl enc -e -aes256 -base64 -pass "pass:$password" -in $1 -out $2
}
aes_decrypt() {
echo -n "Password: ";stty -echo;read password;stty echo;echo "";
openssl enc -d -aes256 -base64 -pass "pass:$password" -in $1 -out $2
}
alias md5='md5 -r'
alias md5sum='md5 -r'
alias sha1='openssl sha1 $1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment