Skip to content

Instantly share code, notes, and snippets.

@robert-claypool
Created August 22, 2014 21:24
Show Gist options
  • Save robert-claypool/3d07133474945b87dcd3 to your computer and use it in GitHub Desktop.
Save robert-claypool/3d07133474945b87dcd3 to your computer and use it in GitHub Desktop.
A Windows command line example for gpg message encryption
# A Windows command line example for gpg message encryption:
# Install Gpg4win to use gpg.
# Gpg4win is a email and file encryption package for Windows that includes the open source Gnu Privacy Guard.
# It implements the OpenPGP standard and is widely used to sign, verify, encrypt, and decrypt data.
# http://www.gpg4win.org/
echo "Hi John," "Here's your login info:" "username=admin" "password=2d!5-e.6:A~77/Vq" | gpg --encrypt --sign --armor -r [email protected] --output c:\temp\message.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment