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.
vi userName.pub
gpg --import userName.pub
gpg --list-keys
Now create a text file with your message and encrypt it
vi lab_creds.txt
gpg -se -a -r name@domain.com 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