Skip to content

Instantly share code, notes, and snippets.

@bencord0
Last active December 15, 2015 04:29
Show Gist options
  • Save bencord0/5201602 to your computer and use it in GitHub Desktop.
Save bencord0/5201602 to your computer and use it in GitHub Desktop.
Encrypted programming
#!/bin/bash
echo -n "Passphrase:"
read -sr p
gpg -d --batch --passphrase "$p" "$0" | python
exit $?
-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.19 (GNU/Linux)
jA0EAwMClL8rFOkU2Nm0yTK6hn6pQXkvOV1Q6Zn4fSrdAA4hrsOfYKkN5YMsJEIS
khru8d9rbGU1nLVnso1VhGJWpg==
=9G1r
-----END PGP MESSAGE-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment