Logo

dev-resources.site

for different kinds of informations.

PGP - Introduction Encryption and Decryption (Part 1)

Published at
9/29/2022
Categories
programming
encrypt
decrypt
security
Author
humbertoa6
Author
10 person written this
humbertoa6
open
PGP - Introduction Encryption and Decryption (Part 1)

Summary

  • Encryption converts plaintext into ciphertext.
  • PGP is used for signing, encrypting, and decrypting information.
  • Decryption converts encrypted data into original form.

In cryptography, encryption is the process of encoding information. This process converts the original representation of the information(plaintext) into an alternative form known as ciphertext.

Decryption is the conversion of encrypted data into original form. It is generally a reverse process of encryption.

Pretty Good Privacy (PGP) is an encryption program that provides cryptographic privacy and authentication for data communication. PGP is used for signing, encrypting, and decrypting data(texts, e-mails, files, directories, and whole disk partitions and to increase the security of e-mail communications) and allow us send and receive files securely.

PGP and similar software follow the OpenPGP, an open standard of PGP encryption software, standard (RFC 4880) for encrypting and decrypting data.

Use case

Ana and John are two people that want to exchange messages

  1. Ana wants to send a private message
  2. John generates a public and a private key
  3. John keeps the private key and send back to Ana his public key
  4. Ana encrypts her message using John's public key
  5. Ana sends to John the encrypted message
  6. John decrypts the encrypted message with his private key

Encryption and Decryption

  • Important: If John(recipient) wants to receive encrypted message, it must generate key pair.
encrypt Article's
25 articles in total
Favicon
Encrypt/Decrypt Data between Python 3 and JavaScript (AES algorithm)
Favicon
HideIPVPN: Unblock, Encrypt, & Explore Freely
Favicon
Encrypt Password Laravel
Favicon
Introduction to the Principles of JavaScript Encryption and JavaScript Obfuscation
Favicon
What is the secure way to store environment variables?
Favicon
Java 01 - Jasypt: Protegendo dados sensรญveis com criptografia.
Favicon
How to encrypt a text using Python (key and text) and decrypt that cipher in JavaScript using the same key.
Favicon
Differences Between HTTP and HTTPS?
Favicon
Managing and sharing secrets in a Git repository with Keybase
Favicon
How To Encrypt And Decrypt String In Laravel 9
Favicon
PGP - Create a Public/Private Key Pair(Part 2)
Favicon
PGP - Introduction Encryption and Decryption (Part 1)
Favicon
๐Ÿ”How to encrypt variables in NodeJS
Favicon
Java - How to Encrypt or Decrypt PDF Documents
Favicon
backup the .env files to git/gist/dropbox in old school way!
Favicon
Protect Python Source Code
Favicon
Python Encrypt Source Code Online
Favicon
Top 15 Modules 2022: Encrypt and Decrypt String Python
Favicon
Email Encryption: What it is, How Does It Work, and How to Encrypt an Email
Favicon
Add Https to Azure Web App with Let's Encrypt
Favicon
Ansible Vault Quick Start
Favicon
Nginx configures free SSL certificate in Windows environment (Letโ€™s Encrypt)
Favicon
Encrypt/ Decrypt PDF Files in Java Application
Favicon
How to use GnuPG for encrypting files on MacOS
Favicon
Protect presentation slides in Java

Featured ones: