Skip to content

Instantly share code, notes, and snippets.

@dvrensk
Last active September 1, 2017 14:07
Show Gist options
  • Save dvrensk/d6ac16f9d34c98b1c0c1fdc05118a3c5 to your computer and use it in GitHub Desktop.
Save dvrensk/d6ac16f9d34c98b1c0c1fdc05118a3c5 to your computer and use it in GitHub Desktop.
Simple command line to encrypt secrets for different users
for u in severus luna albus minerva
do
echo -n "secret for $u:"
read -s secret
echo
echo $secret | gpg -ea -r $u@sequra.es --trust-model always -
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment