Created
June 24, 2015 06:50
-
-
Save soardex/95afe3f168b4db461403 to your computer and use it in GitHub Desktop.
Encrypt msmtp Secrets
This file contains 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
# create and encrypt ~/.msmtp/secrets.gpg | |
mkdir -p ~/.msmtp | |
echo -e "password\n" | gpg -e -r [your_gpg_id] -o ~/.msmtp/secrets.gpg | |
# in `.msmtprc` change the password to passwordeval to launch an external program. | |
passwordeval "gpg -q --for-your-eyes-only --no-tty -d ~/.msmtp/secrets.gpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment