Here’s a Windows command line example for gpg message encryption.

echo "Hi John," "Here's our admin info:" "uname=admin" "pw=2d!5-e9.e8:AA~/V" | gpg --encrypt --sign --armor -r --output c:\temp\message.txt

Install the open source 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.