Created
July 23, 2021 23:03
-
-
Save GrantBirki/289f67812bf24bbdf2ca7a93635b5eef to your computer and use it in GitHub Desktop.
Encrypt a message to me using my public GPG key
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
curl -s https://github.com/grantbirki.gpg | gpg --import > /dev/null 2>&1; echo "<message>" | gpg -ear [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
About
Requirements
The system you are on will need to have
curl
andgpg
installed. Many systems have this by default.Usage
Simply run the command in the
gist
above. It should work on the following systems:Output
Make sure to copy the entire output including the
BEGIN/END PGP MESSAGE
lines. This is the encrypted message using public key cryptography.