Compare the Difference Between Similar Terms

Difference Between

Home / Technology / IT / Security / Difference Between Public Key and Private Key

Difference Between Public Key and Private Key

July 23, 2011 Posted by Indika

The key difference between Public key and Private Key is that if the public key is the locking key, then it can be used to send private communication (i.e. to preserve confidentiality) while If the private key is the locking key, then the system can be used to verify documents sent by the holder of the private key (i.e. to preserve authenticity).

Cryptography is the study of hiding information. It allows protecting information from other third parties when communication occurs over an untrusted medium such as the internet. Encryption uses an algorithm called a cipher to encrypt data and it can be decrypted only using a special key. Ciphertext or ciphertext is the encrypted information. Decryption is the process of obtaining the original information (plaintext) from the ciphertext. There are two encryption methods. They are Public Key Encryption and Symmetric Key Encryption. Public key encryption contains two different but mathematically related keys. They are the public key and private key. The symmetric key encryption uses the same private key for encryption and decryption.

CONTENTS

1. Overview and Key Difference
2. What is Public Key
3. What is Private Key
4. Side by Side Comparison – Public Key vs Private Key in Tabular Form
5. Summary

What is Public Key?

In public key encryption, data encrypted using the recipient’s public key cannot be decrypted without using a matching private key. On the other hand, the public key allows decrypting data encrypted by the matching private key.

Difference Between Public Key and Private Key

Figure 01: Cryptography

However, it is not possible to use public key in the place of the private key. If the locking key is public, then anybody can use the system to send private communication to the holder of the unlocking key. This makes sure that the legal recipient or the one who has the matching private key is the only person able to read the message. So, this confirms confidentiality of the communication between two parties.

What is Private Key?

In public key encryption, the private key allows only to decrypt the data that was encrypted using the matching public key. Similarly, data encrypted using private key can only be decrypted using the matching public key. However, it is not possible to use the private key in the place of the public key. If the locking key is private, this system makes it possible to verify that the owner locked those documents. The reason is that a message encrypted by the sender can only be opened by a person with the matching public key, thus verifying that the sender did actually hold the private key. In other words, it means that the original and non-tampered message has been received. Therefore, digital signatures use this.

What is the Difference Between Public Key and Private Key?

Public key is a published key that helps to send a secure message to a receiver. If it is the locking key, then it can be used to send private communication.

On the other hand, the private key is a secret key. It helps to decrypt messages encrypted with a matching public key. If the private key is the locking key, then the system can be used to verify documents sent by the holder of the private key.

Difference Between Public Key and Private Key in Tabular Form

Summary – Public Key vs Private Key

Public key and private key is a couple of keys used in public key cryptography. If the locking key is made public, then the unlocking key becomes the private key and vice versa. Public key cannot be used to derive the private key. The difference between Public key and Private Key is that if the public key is the locking key, then it can be used to send private communication (i.e. to preserve confidentiality) while If the private key is the locking key, then the system can be used to verify documents sent by the holder of the private key (i.e. to preserve authenticity).

Reference:

1.“Public Key vs Private Key.” Simplicable. Available here  

Image Courtesy:

1.’1091254′ by tumbledore (CC0) via pixabay

 

Related posts:

Difference Between Encoding and Encryption Difference Between Firewall and Proxy Server Difference Between Static and Dynamic filtration Difference Between Cryptography and Steganography Difference Between Network Security and Information Security

Filed Under: Security Tagged With: Private Key, Public Key

About the Author: Indika

Indika, BSc.Eng, MSECE Computer Engineering, PhD. Computer Science, is an Assistant Professor and has research interests in the areas of Bioinformatics, Computational Biology, and Biomedical Natural Language Processing.

Comments

  1. yamraaj says

    May 14, 2013 at 3:57 am

    Ghochaakkkk

    Reply
  2. Gokul says

    December 11, 2017 at 6:03 am

    Well explained. thank you

    Reply
  3. David says

    May 8, 2020 at 6:15 pm

    Very helpful. In all the guides I’ve read, it was never explained why 2 keys that seems to serve the same function are called private and public. What’s so public or private about them if they do the same thing? From what I’m reading here, the private key serves an additional function and that is of authenticity and that is why one should keep the key private.

    Reply

Leave a Reply Cancel reply

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

Request Article

Featured Posts

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and SARS

Difference Between Coronavirus and SARS

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Covid 19

Difference Between Coronavirus and Covid 19

You May Like

Difference Between AIEEE and IIT

Difference Between Myocarditis and Cardiomyopathy

Difference Between Arterial and Venous Blood Gas

Difference Between Arterial and Venous Blood Gas

Difference Between Orientation and Training

Difference Between Isotopes and Elements

Difference Between Isotopes and Elements

Latest Posts

  • What is the Difference Between Down Syndrome and Klinefelter Syndrome
  • What is the Difference Between Electron and Beta Particle
  • What is the Difference Between Agarose and Polyacrylamide Gel Electrophoresis
  • What is the Difference Between Organic and Bio Fertilizer
  • What is the Difference Between Distillation and Chromatography
  • What is the Difference Between Concealer and Corrector
  • Home
  • Vacancies
  • About
  • Request Article
  • Contact Us

Copyright © 2010-2018 Difference Between. All rights reserved. Terms of Use and Privacy Policy: Legal.