0% found this document useful (0 votes)
33 views4 pages

Understanding Public Key Encryption

Public key encryption uses two different but mathematically related keys, a public key and a private key. The public key can be shared widely, while the private key is kept secret by the recipient. When someone encrypts data using the public key, only the corresponding private key can decrypt it. For example, Sana generates a public/private key pair and shares her public key. Mikey uses Sana's public key to encrypt a message for her, and Sana decrypts it using her private key. This allows secure communication without needing to first share a secret key. Public key encryption is commonly used to implement HTTPS for secure web browsing and transactions.

Uploaded by

Sam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Understanding Public Key Encryption

Public key encryption uses two different but mathematically related keys, a public key and a private key. The public key can be shared widely, while the private key is kept secret by the recipient. When someone encrypts data using the public key, only the corresponding private key can decrypt it. For example, Sana generates a public/private key pair and shares her public key. Mikey uses Sana's public key to encrypt a message for her, and Sana decrypts it using her private key. This allows secure communication without needing to first share a secret key. Public key encryption is commonly used to implement HTTPS for secure web browsing and transactions.

Uploaded by

Sam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Public Key Encryption

Introduction

Public Key Encryption is also known as Public Key Cryptography. As we know symmetric key cryptography is useful
for organizations like Governments, Military and Big Financial Corporations but in the last few decades, with the
spread of more unsecure computer networks, it was thought to use cryptography at larger scale. So, the Symmetric
Key Cryptography was found to be non-practical because of changes it faced for key management. Due to this, it
gave rise to Public Key Cryptosystems.

Explain in detail Public Key Encryption.

In Public Key Encryption (Public Key Cryptography) two different keys are used to encrypt and decrypt the data.
These two keys are mathematically related. The key are the public key and the private key. They come as pairs.

The Public Key Encryption is also known as Asymmetric Key Encryption as two different keys are used. In Public Key
Encryption, the public key is public to anyone, while the private key belongs to the person who creates these two
keys. The Data encrypted with the public key can only be decrypted with the private key and the data encrypted with
the private key can only be decrypted with the public key.

Here is an example:-

Mikey is sending a message to Sana, they agree to use the public key encryption to encrypt his message. Remember,
the public key encryption to encrypt the sender’s message starts with the receiver, Sana.

Here it how it works:

First, Sana creates a pair of keys: one is public key and one is private key.

She keeps the private key and gives the public key to Mikey.
After Mikey writes his message he uses public key to encrypt it.

When Sana gets the encrypted document, she uses the private key to decrypt it.

Remember, the public key method to encrypt the sender’s message starts with the receiver, not the sender. The
public key is public to everyone. The Private Key is only known to the receiver.
Here is another example:

Suppose, Sam wants to send an encrypted message to Jessica and they agree to use the public key encryption.

Step They Take In The Whole Process:

Step 1 : Jessica creates a pair of keys: one public key and one private key. Jessica put the public key in a public key
server which any one can access.

Step 2 : Jessica informs Sam where he can get her public key.

Step 3 : Sam gets Jessica’s public key.

Step 4 : Sam writes a message and uses Jessica’s public key to encrypt it.

Step 5 : Sam sends his encrypted message to Jessica.

Step 6 : Jessica uses her own private key to decrypt Sam’s message.

Although Jessica’s private key can verify no one read or changed the documents in transport, it cannot verify the
sender. Because Jessica’s public key is public. Anyone can use it to encrypt his document and send it to Jessica while
pretending to be Sam.

In order to prove the sender, they need another technique called digital signature.
Public Key Encryption Used In Browsers.

 Public Key Encryption is widely used for TLS/SSL which makes HTTPS possible.

Public Key Encryption is beneficial for establishing secure communications over the Internet via HTTPS.

A website’s SSL/TLS certificate, which is shared publicly, contains both the public key and private key installed on the
origin server and it’s owned by the website.

TLS handshakes use public key encryption to authenticate the identity of the origin server, and to exchange data that
is used for generating the session keys. There is a key exchange algorithm, such as RSA or Diffie-Hellman, uses the
public and private key pair to agree session keys, which are used for symmetric encryption once the handshake is
complete. Clients and servers can agree upon new session keys for each communication sessions, so that wrong
persons failed to decrypt communication even if they identify or steal one of the session keys.

Common questions

Powered by AI

Public key encryption is referred to as 'asymmetric' because it utilizes two different keys for encryption and decryption – a public key and a private key. These two keys are mathematically related but distinct, allowing for encryption with one key and decryption with the other, unlike symmetric encryption which uses a single key for both processes .

Public key encryption (asymmetric key encryption) improves key management by eliminating the need to securely share and distribute a single secret key. In symmetric key cryptography, both parties involved in communication must securely share a common key, which can be impractical and cumbersome on a larger scale due to the potential security breach points and the volume of keys required to be managed. Public key cryptography uses a pair of mathematically related keys (public and private), where the public key is widely distributed and the private key is kept secret by the owner. This separation allows secure communication over insecure channels without the need to share a private key .

Symmetric encryption can complement public key encryption by initially using the public key encryption to securely exchange session keys, which are then used for symmetric encryption in ongoing communication. This hybrid approach benefits from the ease of key exchange inherent in public key infrastructure, while taking advantage of the efficiency and lower computational overhead associated with symmetric encryption for the bulk of the communication session .

Key exchange algorithms such as RSA or Diffie-Hellman function within a TLS handshake by securely establishing a common symmetric key between the client and the server. During the handshake, RSA is used to encrypt a premaster secret with the server's public key, which is then transmitted to the server and decrypted using the server's private key. Alternatively, Diffie-Hellman allows both parties to agree on a shared secret without transmitting it, by exchanging computed values based on their private and public components. These processes ensure that even if the initial exchange is intercepted, the secure session key remains confidential, facilitating encrypted communication using symmetric encryption from that point forward .

Consider Alice and Bob want to communicate securely using public key encryption. Alice generates a pair of keys: a public key, which she shares openly, and a private key, which she keeps secret. Bob retrieves Alice’s public key and uses it to encrypt a message he wants to send to her. Upon receiving the message, Alice uses her private key to decrypt it. This process ensures that only Alice can read Bob's message, emphasizing the non-necessity for Bob and Alice to pre-share a secret key .

A private key plays a crucial role in confirming data integrity and protection during transport by ensuring that only the intended recipient, who possesses the corresponding private key, can decrypt data encrypted with their public key. This mechanism verifies that the data was not altered during transit and maintains confidentiality and integrity. However, it cannot verify the identity of the sender on its own since the public key used for encryption is accessible to anyone .

Public key encryption enables secure communication in web browsers via HTTPS by employing SSL/TLS protocols, which utilize a pair of public and private keys contained in the website's SSL/TLS certificate. During the TLS handshake, the server's identity is authenticated using the public key, and a secure session key is agreed upon with the client's browser using a key exchange algorithm such as RSA or Diffie-Hellman. This session key is then used for symmetric encryption of the communication, ensuring that the data transmitted cannot be decrypted by unauthorized parties even if they possess one of the session keys .

To verify the sender in a public key encrypted communication, an additional measure known as a digital signature can be implemented. This involves the sender encrypting a hash of the message or document with their private key, which can be verified by the recipient using the sender’s public key. This digital signature confirms that the message was indeed sent by the claimed sender and has not been tampered with during transmission .

Digital signatures and public key infrastructure (PKI) enhance public key encryption by offering mechanisms for verifying the authenticity and integrity of messages, as well as the authenticity of public key owners. Digital signatures provide proof of origin and assurance against message alteration by using a sender's private key to encrypt message hashes, while PKI facilitates issuance, management, and validation of certificates that securely bind public keys to their true owners, thus preventing impersonation and man-in-the-middle attacks .

The public nature of public keys can make them subject to various security vulnerabilities. Since public keys are widely accessible, attackers can attempt to intercept or impersonate a key owner by distributing fake public keys. This risk underscores the importance of a trusted public key infrastructure (PKI) where certificates and digital signatures are used to verify the authenticity of public keys and securely bind them to their owners, mitigating the risk of man-in-the-middle attacks or unauthorized access .

You might also like