Arti Thakur artithakur

Before understanding what the two types of keys are, let's understand the purpose of a key in encryption.


The purpose of a key is to ensure privacy and security by keeping information hidden from whom it is not intended. Cryptography keys  can be divided into two broad categories:


Secret-key Cryptography- It is also referred to as symmetric cryptography in which the same key is used for both encryption and decryption. The key must be present at both the ends, i.e., source and destination, to allow the information to be transmitted securely and recovered upon receipt at the correct destination. This key must be kept secret by all parties involved in the communication. In this cryptography, the sender and receiver share the same key. Example DES.


Public-key Cryptography- In this, two keys are used. One key is used for encrypting the text, and another key is used for decrypting the same. Unlike in private-key cryptography, in this, the sender and receiver do not share the same key. Example RES. 

The advantage of private key cryptography is that it is faster than the public key.

Reply 0 0
Reply