Prerequisites:
Debian GNU/Linux
Recent Debian versions come with GnuPG already installed.
Windows
GnuPG's site has an installer called Gpg4win. I'd recommend this because it's the stable version of the software.
You can find the checksum on the website.
Mac
Install via brew:
Source:
Copy that into a .sh file and you should be good depending on your permissions.
If you have any questions, comments, improvements, just let me know in the comments.
- C
Debian GNU/Linux
Recent Debian versions come with GnuPG already installed.
Windows
GnuPG's site has an installer called Gpg4win. I'd recommend this because it's the stable version of the software.
You can find the checksum on the website.
Mac
Install via brew:
Code
brew update && brew install gnupgSource:
Code
#!/bin/bash
echo -n "Enter Email of Recipient: "
read email
echo -n "Output File Name: "
read file
if [[ -e $file.asc ]]; then
echo "File Exists"
exit 1
else
touch $file.asc
fi
echo -n "Enter Message: "
read message
echo $message | gpg -aer $email >> $file.ascCopy that into a .sh file and you should be good depending on your permissions.
If you have any questions, comments, improvements, just let me know in the comments.
- C

