Skip to content

Instantly share code, notes, and snippets.

@jdforsythe
Created July 24, 2017 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdforsythe/13b2c34177914b72340266b41d3fb85c to your computer and use it in GitHub Desktop.
Save jdforsythe/13b2c34177914b72340266b41d3fb85c to your computer and use it in GitHub Desktop.
bash encrypt script
#!/bin/bash
scrypt(){
[ -n "$1" ] && {
echo '. <(echo "$(tail -n+2 $0 | base64 -d | mcrypt -dq)"); exit;' > $1.scrypt
cat $1 | mcrypt | base64 >> $1.scrypt
chmod +x $1.scrypt
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment