Skip to content

using GPG to send an encrypted message

These steps will allow you to send a message to a user. Only that user will be able to decrypt it.
First acquire the users public key and create a text file with it.
gpg --import
gpg --list-keys

Now create a text file with your message and encrypt it
vi lab_creds.txt
gpg -se -a -r lab_creds.txt

enter your private key password
Now a file will be created called lab_creds.txt.asc, paste that into an email.

Post a Comment

You must be logged in to post a comment.