Created
July 24, 2017 15:52
-
-
Save jdforsythe/13b2c34177914b72340266b41d3fb85c to your computer and use it in GitHub Desktop.
bash encrypt script
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
#!/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
y