Created
June 2, 2015 10:15
-
-
Save fernandojsg/f4d2d3fa10749a7ee527 to your computer and use it in GitHub Desktop.
Encrypt & Decrypt from command line
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
# Add it to your ~/.zshrc | |
encrypt () { openssl des3 -in $1 -out $1.encrypted } | |
decrypt () { FILENAME=$(echo $1|sed -e 's/\.encrypted$//g'); openssl des3 -d -in $1 -out $FILENAME } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment