PGP encryption; how it works and how you can use it | TechBuzz

- Advertisement -


PGP encryption is the gold standard for encrypted communications and has been used by everyone from nuclear activists to criminals since its invention in 1991. Although the execution is complex, the concept is simple: you can encrypt, or encode, text, making it unreadable by anyone who doesn’t have the key decoding.

how PGP encryption works

How does PGP encryption work?

Imagine you want to send a letter to someone, but you don’t want anyone but the recipient to be able to read it. The best way to do this is to write the letters in the code, but you can’t send the code key along with the letter, because it’s not very secure. PGP encryption gets around this problem by using public key encryption. Everyone is assigned two keys: a public one that you can share with everyone and a private one that you keep for yourself. What makes this system possible is that the codes only work in one way. If key A encrypts a file, key A cannot reverse the process and decode it. Only its pair, the key B, can do this. Here’s how it usually works:

  • Write your message.
  • Find your friend’s public key. He can email it to you, put it on a website, etc.
  • Run a computer program that uses the public key to convert the message into code.
  • Send a message. Anyone who intercepts that message and opens it will see a collection of obscure symbols.
  • Your friend receives the message and runs it through his private key to decode it, turning it back into plain text.
  • This is a greatly simplified explanation of the process, but covers the basics behind PGP encryption.
- Advertisement -

PGP encryption usage

What can PGP encryption be used for?

PGP is most commonly used for email encryption, and there are many services that will help you with this. ProtonMail is a great example of an encrypted email service that uses full end-to-end encryption. In addition, you can use this encryption method for a lot of things, depending on your needs: for example, PGP can encrypt any text you need, and can even be used on entire directories and drives.

Investigative journalists often list their public keys online to make it easier for anonymous sources to get in touch with them, and sellers on “Dark Web” markets often use them to ensure that their customers’ personal information remains secret.

How to start using PGP?

- Advertisement -

Getting your own pair of keys is actually a lot easier than it sounds. You don’t need to understand anything about cryptography. You just need to come up with a few simple programs.

To begin, install an encryption program

Download Gpg4win. This is a free set of coding packages and tools, although you can donate a certain amount of money if you wish. For macOS, check out GPG Suite. You can also add PGP to Linux. Since I am using a Windows operating system, I will go through the setup for Windows in the rest of this article.

  • Install Gpg4win. Make sure GnuPG, the material coding package and Kleopatra are installed, i.e. a pleasant user interface. Other components are optional, but it can’t hurt to have them.

How to create encryption keys

How to create encryption keys?

  • Once everything is installed, find the Kleopatra program on your computer and open it.
  • Go to the “File” tab and select “New Key Pair”. Or select “New key pair” on the “Certificates” tab. The second option is only available when you use the tool for the first time.
  • Since you want PGP keys, select “Create a personal OpenPGP key pair”.
  • If you want to attach your key to your identity, real or fake, you can enter that information here. Otherwise, you can skip this step. If you want to protect your key with encryption, which is more secure, check the box “Protect the generated key with a passphrase”.
  • In the same dialog, visit “Advanced Settings” and make sure “RSA” is selected. Change the default 2048 to 4096; this level of encryption makes your encryption pretty much impenetrable and doesn’t really slow you down during normal use.
  • Click “OK” to exit this settings menu, then click “Create” to start generating the key. The program now generates thousands of random characters to create your keys and will ask you for encryption. Make sure you remember this, it’s best to write it down somewhere, because you won’t be able to get it back. It is best to use a password manager to back up your codes. If you did not check the password box in step 4, you will not be asked to enter the encryption or password.
  • You now have a public and private key. If you want, you can back them up in a separate file somewhere, or you can email/publicly share your public key.

How to make a backup copy and how to be able to view your own security keys?

  • You can generate a file with your public key by right-clicking the key and clicking “Export”. There are several ways to view your public key, but this makes it easy to access it whenever you want, without having to use Cleopatra.
  • Choose where you want to save the file (it will be saved as an .asc ASCII file.)
  • Open any text editing application, such as Notepad. Any application that supports .asc files will serve the purpose.
- Advertisement -

If you are using Notepad, go to “File” and select “Open”. Navigate to your file to view it. You may need to select “All Files” in the lower right corner. Alternatively, navigate to your file in File Explorer, right-click on it and select “Open with”. Select the application you want to use.

Open the file with a text editor and you will see your own, your own public key. You can export your private key by following the same procedure, except in step 1 you select “Security Secret Keys” instead of “Export”. Make sure you store it in a safe place or just keep it in Cleopatra; from there it will be available for use. These public and private keys can be used with any program that works with PGP, and Cleopatra can actually encrypt and decrypt files using your keys. If you want to try them out and see how it all works, try encrypting a text file with your public key and decrypting it with your private key. Use the Sign/Encrypt and Decrypt/Verify options in Cleopatra.

Written by: Zlatko Knežević



Source link

- Advertisement -
Admin
Adminhttp://techbuzz.asia
I am admin of techbuzz.asia blog & I provide tech-related news. As a part of my hobby, I make content related to technology and gadgets reviews too. I love to be a content creator apart from it, I am a full-time employee in an MNC company and manage blogs systematically. You can mail me at [email protected]

More from author

Related posts

Advertisment

Latest posts

Skull and Bones postponed again, new date is March 9, 2023 | TechBuzz

The unfortunate story Skull and Bones directed by Ubisoft never got its happy ending and found its way to the players. According to...
[tdn_block_newsletter_subscribe title_text="Want to stay up to date with the latest news? " description="V2UlMjB3b3VsZCUyMGxvdmUlMjB0byUyMGhlYXIlMjBmcm9tJTIweW91ISUyMFBsZWFzZSUyMGZpbGwlMjBpbiUyMHlvdXIlMjBkZXRhaWxzJTIwYW5kJTIwd2UlMjB3aWxsJTIwc3RheSUyMGluJTIwdG91Y2guJTIwSXQncyUyMHRoYXQlMjBzaW1wbGUh" input_placeholder="Email address" btn_text="Subscribe" tds_newsletter2-image="8" tds_newsletter2-image_bg_color="#c3ecff" tds_newsletter3-input_bar_display="row" tds_newsletter4-image="9" tds_newsletter4-image_bg_color="#fffbcf" tds_newsletter4-btn_bg_color="#f3b700" tds_newsletter4-check_accent="#f3b700" tds_newsletter5-tdicon="tdc-font-fa tdc-font-fa-envelope-o" tds_newsletter5-btn_bg_color="#000000" tds_newsletter5-btn_bg_color_hover="#4db2ec" tds_newsletter5-check_accent="#000000" tds_newsletter6-input_bar_display="row" tds_newsletter6-btn_bg_color="#da1414" tds_newsletter6-check_accent="#da1414" tds_newsletter7-image="10" tds_newsletter7-btn_bg_color="#1c69ad" tds_newsletter7-check_accent="#1c69ad" tds_newsletter7-f_title_font_size="20" tds_newsletter7-f_title_font_line_height="28px" tds_newsletter8-input_bar_display="row" tds_newsletter8-btn_bg_color="#00649e" tds_newsletter8-btn_bg_color_hover="#21709e" tds_newsletter8-check_accent="#00649e" tds_newsletter="tds_newsletter1" tds_newsletter1-input_bar_display="" tds_newsletter1-input_border_size="0" tds_newsletter1-title_color="#172842" tds_newsletter1-description_color="#90a0af" tds_newsletter1-disclaimer_color="#90a0af" tds_newsletter1-disclaimer2_color="#90a0af" tds_newsletter1-input_text_color="#90a0af" tds_newsletter1-input_placeholder_color="#bcccd6" tds_newsletter1-input_bg_color="#ffffff" tds_newsletter1-input_border_color="rgba(255,255,255,0)" tds_newsletter1-input_border_color_active="rgba(255,255,255,0)" tds_newsletter1-f_title_font_family="394" tds_newsletter1-f_title_font_size="eyJhbGwiOiI0MiIsImxhbmRzY2FwZSI6IjM2IiwicG9ydHJhaXQiOiIzMCIsInBob25lIjoiMzAifQ==" tds_newsletter1-f_title_font_line_height="1.2" tds_newsletter1-f_title_font_spacing="-1" tds_newsletter1-f_descr_font_family="638" tds_newsletter1-f_descr_font_size="eyJhbGwiOiIxOCIsImxhbmRzY2FwZSI6IjE1IiwicG9ydHJhaXQiOiIxNCIsInBob25lIjoiMTQifQ==" tds_newsletter1-f_descr_font_line_height="1.6" tds_newsletter1-f_descr_font_weight="700" content_align_horizontal="content-horiz-center" tdc_css="eyJhbGwiOnsibWFyZ2luLXJpZ2h0IjoiYXV0byIsIm1hcmdpbi1ib3R0b20iOiIxMDAiLCJtYXJnaW4tbGVmdCI6ImF1dG8iLCJwYWRkaW5nLXRvcCI6IjkwIiwid2lkdGgiOiI0MCUiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0Ijp7Im1hcmdpbi1ib3R0b20iOiI3MCIsInBhZGRpbmctdG9wIjoiNjAiLCJ3aWR0aCI6IjcwJSIsImRpc3BsYXkiOiIifSwicG9ydHJhaXRfbWF4X3dpZHRoIjoxMDE4LCJwb3J0cmFpdF9taW5fd2lkdGgiOjc2OCwicGhvbmUiOnsibWFyZ2luLWJvdHRvbSI6IjcwIiwicGFkZGluZy10b3AiOiI2MCIsIndpZHRoIjoiMTAwJSIsImRpc3BsYXkiOiIifSwicGhvbmVfbWF4X3dpZHRoIjo3NjcsImxhbmRzY2FwZSI6eyJtYXJnaW4tYm90dG9tIjoiOTAiLCJwYWRkaW5nLXRvcCI6IjgwIiwid2lkdGgiOiI2NSUiLCJkaXNwbGF5IjoiIn0sImxhbmRzY2FwZV9tYXhfd2lkdGgiOjExNDAsImxhbmRzY2FwZV9taW5fd2lkdGgiOjEwMTl9" tds_newsletter1-f_disclaimer_font_family="394" tds_newsletter1-f_disclaimer2_font_family="394" tds_newsletter1-f_input_font_family="394" tds_newsletter1-f_input_font_line_height="3" tds_newsletter1-f_input_font_size="eyJhbGwiOiIxNiIsInBvcnRyYWl0IjoiMTQiLCJwaG9uZSI6IjE0In0=" tds_newsletter1-f_btn_font_family="394" tds_newsletter1-f_btn_font_transform="uppercase" tds_newsletter1-f_btn_font_weight="700" tds_newsletter1-btn_bg_color="#e2687e" tds_newsletter1-btn_bg_color_hover="#172842" tds_newsletter1-f_input_font_weight="" tds_newsletter1-f_title_font_weight="800" embedded_form_code="JTNDIS0tJTIwQmVnaW4lMjBNYWlsY2hpbXAlMjBTaWdudXAlMjBGb3JtJTIwLS0lM0UlMEElM0NsaW5rJTIwaHJlZiUzRCUyMiUyRiUyRmNkbi1pbWFnZXMubWFpbGNoaW1wLmNvbSUyRmVtYmVkY29kZSUyRnNsaW0tMTBfN19kdHAuY3NzJTIyJTIwcmVsJTNEJTIyc3R5bGVzaGVldCUyMiUyMHR5cGUlM0QlMjJ0ZXh0JTJGY3NzJTIyJTNFJTBBJTNDc3R5bGUlMjB0eXBlJTNEJTIydGV4dCUyRmNzcyUyMiUzRSUwQSUwOSUyM21jX2VtYmVkX3NpZ251cCU3QmJhY2tncm91bmQlM0ElMjNmZmYlM0IlMjBjbGVhciUzQWxlZnQlM0IlMjBmb250JTNBMTRweCUyMEhlbHZldGljYSUyQ0FyaWFsJTJDc2Fucy1zZXJpZiUzQiUyMCU3RCUwQSUwOSUyRiolMjBBZGQlMjB5b3VyJTIwb3duJTIwTWFpbGNoaW1wJTIwZm9ybSUyMHN0eWxlJTIwb3ZlcnJpZGVzJTIwaW4lMjB5b3VyJTIwc2l0ZSUyMHN0eWxlc2hlZXQlMjBvciUyMGluJTIwdGhpcyUyMHN0eWxlJTIwYmxvY2suJTBBJTA5JTIwJTIwJTIwV2UlMjByZWNvbW1lbmQlMjBtb3ZpbmclMj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