Skip to content

Instantly share code, notes, and snippets.

@fernandojsg
Created June 2, 2015 10:15
Show Gist options
  • Save fernandojsg/f4d2d3fa10749a7ee527 to your computer and use it in GitHub Desktop.
Save fernandojsg/f4d2d3fa10749a7ee527 to your computer and use it in GitHub Desktop.
Encrypt & Decrypt from command line
# 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