Import keys from a public server:
gpg --keyserver pgp.mit.edu --search-keys <email>
gpg v1
Encrypt messages #1:
echo "hello" | gpg --symmetric --armor --passphrase "asdf" > message
cat message | gpg
gpg --encrypt --armor <filename>
gpg --decrypt --armor <filename>
How to GPG:
brew install gnupg
gpg --list-secret-keys
gpg --list-public-keys
gpg --list-public-keys
gpg --gen-key
gpg v2
brew install gnupg2
echo "hello" > message
gpg -se -ar "Name Surname" message
gpg -se -ar <long key> message
echo "hello" | gpg -e -ar <long key>
gpg -d message.asc
gpg --list-keys
gpg --keyserver pgp.mit.edu --receive-keys <long key>
gpg v2
brew install gnupg2
echo "hello" > message
gpg -se -ar "Name Surname" message
gpg -se -ar <long key> message
echo "hello" | gpg -e -ar <long key>
gpg -d message.asc
gpg --list-keys
gpg --keyserver pgp.mit.edu --receive-keys <long key>
No comments:
Post a Comment