GPG Encryption Decryption

gpg-encryption-decryption

GPG Encryption Decryption

How does this work?

  • [x] generate SECRET_KEY to encrypt files
  • [x] share this SECRET_KEY to decrypter machine
  • [x] import this SECRET_KEY on encrypter machine
  • [x] encrypt file using this SECRET_KEY
  • [x] send this encrypted file to the decrypter machine
  • [x] decrypt the file using the SECRET_KEY on decrypter machine

Decrypter Machine

  • [x] generate gpg key using this command
gpg --gen-key
  • [x] list out your keys using this command
gpg --list-keys
  • [x] export your key using this command (to send to encrypter)
gpg --export -a YOUR_KEY_ID > YOUR_FILE_NAME.asc

This will generate a file. You can share this file to the Encrypter Machine. They’ll import this key and encrypt the file using this key which you can later on decrypt on your machine.

Encrypter Machine

  • [x] import the SECRET_KEY of the decrypter
gpg --import YOUR_SECRET_KEY_FILE_NAME.asc
  • [x] list out your keys using this command
gpg --list-keys
  • [x] encrypt the pgp file
gpg --encrypt --recipient SECRET_KEY_ID --output ENCRYPTED_FILE FILE_TO_ENCRYPT

share this encrypted file to your decrypter machine

Decrypter Machine

  • [x] decrypt the file
 gpg --decrypt --recipient SECRET_KEY_ID --output DECRYPTED_FILE ENCRYPTED_FILE

yippie banzai we did it!

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
the-marketer’s-ultimate-guide-to-link-bait

The Marketer’s Ultimate Guide to Link Bait

Next Post
how-to-drive-effective-b2c-product-launches-with-crm-insights

How to drive effective B2C product launches with CRM insights

Related Posts