Skip to content

Instantly share code, notes, and snippets.

@dce
Created August 29, 2013 13:43
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 dce/6378285 to your computer and use it in GitHub Desktop.
Save dce/6378285 to your computer and use it in GitHub Desktop.
encrypt.sh sensitive_information.txt "the crow flies at midnight"
#!/bin/sh
openssl aes-256-cbc -d -a -pass "pass:$2" -in $1 -out `echo $1 | sed 's/\.enc$//'`
#!/bin/sh
openssl aes-256-cbc -a -salt -pass "pass:$2" -in $1 -out $1.enc
echo "openssl aes-256-cbc -d -a -pass \"pass:XXX\" -in $1.enc -out $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment