Skip to content

Instantly share code, notes, and snippets.

@mathisonian mathisonian/.functions
Last active Aug 29, 2015

Embed
What would you like to do?
encryption / decryption command line helpers
encrypt() {
openssl des3 -in $1 -out $1.encrypted
}
decrypt() {
if [[ "$1" == *.encrypted ]]
then
openssl des3 -d -in $1 -out $(basename $1 .encrypted)
else
openssl des3 -d -in $1 -out $1.decrypted
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.