11
Most read
16
Most read
17
Most read
Public Key 
Algorithm 
By 
Pankaj Jatav (110101168) 
Rahul Kumar (120101813) 
Rahul Aggarwal 
(110101189) 
Prateek Pandey 
(110101180)
Cryptography 
 The art of the Secret (crypto-) writing (-graphy). It enables you to 
store information or transmit 
it across insecure networks, so that it cannot be read by anyone 
except the intended recipient.
Public key algorithm
TERMINOLOGY 
 Plain Text:- The message or data that is to be transmitted over the 
network. 
 Cipher :- A mapping algorithm which is used to encrypt or decrypt 
the message. 
 Key : A key is a number (or a set of numbers) that the cipher 
implements to encrypt or decrypt a message. 
To encrypt a message we need to convert the plaintext to ciphertext 
using an encryption algorithm and encryption key whereas to 
decrypt the message we require a decryption algorithm and a 
decryption key to reveal the plaintext
Symmetric Key Cryptography 
 Symmetric-key cryptography refers to encryption methods in which 
both the sender and receiver share the same key (or, less 
commonly, in which their keys are different, but related in an easily 
computable way). This was the only kind of encryption publicly 
known until June 1976. 
5
Symmetric Key Cryptography 
System
Asymmetric Key Cryptography 
Asymmetric cryptography or public-key cryptography is cryptography 
in which a pair of keys is used to encrypt and decrypt a message so 
that it arrives securely. Initially, a network user receives a public and 
private key pair from a certificate authority. Any other user who wants 
to send an encrypted message can get the intended recipient's public 
key from a public directory. They use this key to encrypt the message, 
and they send it to the recipient. When the recipient gets the message, 
they decrypt it with their private key, which no one else should have 
access to. 
7
ASYMMETRIC KEY 
Cryptography System
Why use Public Key 
Algorithms??
ASYMMETRIC KEY 
Cryptography System
Public Key Algorithms 
 Proposed by Diffie and Hellman in 1976. 
 The encryption algorithm must meet 3 requirements: 
1. D(E(P))=P 
2. It is Exceedingly difficult to deduce D from E. 
3. E cannot be broken by a chosen plaintext attack.
Public key algorithm
Public key blueprint 
 The keys used to encrypt and decrypt are 
different. 
 Anyone who wants to be a receiver needs to 
“publish” an encryption key, which is known as 
the public key. 
 Anyone who wants to be a receiver needs a 
unique decryption key, which is known as the 
private key. 
 It should not be possible to deduce the plaintext 
from knowledge of the ciphertext and the public 
key. 
 Some guarantee needs to be offered of the 
authenticity of a public key. 
13
Public Key Algorithms 
Algorithms Satisfying all three requirements 
are: 
 RSA 
 ElGamal
RSA 
Given by Rivest, Shamir & Adleman of MIT in 
1977 
Best known & widely used public-key scheme 
Based on exponentiation in a finite field over 
integers modulo a prime 
Uses large integers (eg. 1024 bits) 
Security due to cost of factoring large numbers
RSA 
 Choose two large prime numbers p, q. (e.g., 
1024 bits each) 
 Compute n = p*q and z = (p-1)(q-1). 
 Choose d (with d<n) that has no common 
factors with z. (e, z are “relatively prime”). 
 Choose e such that ed-1 is exactly divisible by 
z. (in other words: ed mod z = 1 ).
RSA: Encryption, decryption 
 Given (n,e) and (n,d) as computed above 
 Dividing Plain Text into Blocks: 0<=P<n 
 To encrypt message P (<n), compute 
e 
C = M (mod 
n) 
 To decrypt received bit pattern, C, compute 
d 
M = C (mod 
n) 
 Public key is (n,e). 
 Private key is (n,d).
RSA example: 
Let us choose p=3 and q=11. 
Then n=33 and z=20. 
d=7 (so d, z relatively prime). 
e=3 (so ed-1 exactly divisible by z). 
Encrypting messages: 
M M 
e 
C = Me mod n 
19 6859 28 
d 
C C 
M = Cd mod n 
28 13492928512 19 
Encrypt: 
Decrypt:
RSA Issues 
 RSA is computationally intense. 
 Commonly used key lengths are 1024 
bits 
 The plain text should be smaller than 
the key length 
 The encrypted text is of the same size 
as the key length 
 Generally used to encrypt secret keys. 
 Basis: Factoring a big number is hard
Summary 
 Public key systems replace the problem of distributing 
symmetric keys with one of authenticating public keys 
 Public key encryption algorithms need to be trapdoor one-way 
functions 
 RSA is a public key encryption algorithm whose security is 
believed to be based on the problem of factoring large 
numbers 
 ElGamal is a public key encryption algorithm whose 
security is believed to be based on the discrete logarithm 
problem 
 RSA is generally favoured over ElGamal for practical rather 
than security reasons 
 RSA and ElGamal are less efficient and fast to operate 
than most symmetric encryption algorithms because they 
involve modular exponentiation 
 DH key exchange is an important protocol on which many 
real key exchange protocols are based
Thank You
Attacks on RSA 
 Smooth Number Attack: 
 If you sign m1 and m2 
 S1 = md 
1 mod n 
 S2 = m2d mod n 
 Attacker can sign m1m2, m1/m2, m12, m1jm2k 
 Easy to do if mi’s are small (smooth) numbers. 
 Cube Root Problem of RSA 
 If public exponent e=3: 
 hde mod n = h 
 hd mod n = h1/3 
 Simply compute h1/3 mod n

More Related Content

PPTX
Diffie hellman key exchange algorithm
PPTX
Principles of public key cryptography and its Uses
PPTX
INTER PROCESS COMMUNICATION (IPC).pptx
PDF
Classical encryption techniques
PPTX
Public Key Cryptosystem
PDF
symmetric key encryption algorithms
PPTX
Substitution techniques
PPT
Message authentication
 
Diffie hellman key exchange algorithm
Principles of public key cryptography and its Uses
INTER PROCESS COMMUNICATION (IPC).pptx
Classical encryption techniques
Public Key Cryptosystem
symmetric key encryption algorithms
Substitution techniques
Message authentication
 

What's hot (20)

PPTX
RSA Algorithm
PDF
Network security - OSI Security Architecture
PPT
PGP S/MIME
PPTX
Hash Function
PPTX
Osi security architecture in network.pptx
PPTX
5. message authentication and hash function
PPT
Message Authentication Code & HMAC
PPTX
Cryptography
PPTX
Transposition Cipher
PDF
2. public key cryptography and RSA
PPTX
Intruders
PPTX
Security services and mechanisms
PPTX
Topic1 substitution transposition-techniques
PPTX
Message passing ( in computer science)
PPTX
Classical encryption techniques
PPTX
Recognition-of-tokens
PPTX
Kerberos
PDF
Network security & cryptography full notes
PPT
Chapter 5 Syntax Directed Translation
PPTX
Cryptography - Block cipher & stream cipher
RSA Algorithm
Network security - OSI Security Architecture
PGP S/MIME
Hash Function
Osi security architecture in network.pptx
5. message authentication and hash function
Message Authentication Code & HMAC
Cryptography
Transposition Cipher
2. public key cryptography and RSA
Intruders
Security services and mechanisms
Topic1 substitution transposition-techniques
Message passing ( in computer science)
Classical encryption techniques
Recognition-of-tokens
Kerberos
Network security & cryptography full notes
Chapter 5 Syntax Directed Translation
Cryptography - Block cipher & stream cipher
Ad

Similar to Public key algorithm (20)

PPT
PUBLIC KEY & RSA.ppt
PPTX
Unit 7 : Network Security
PPT
PPTX
Rsa Crptosystem
PPT
Introduction to cryptography
PPTX
RSA Algorithem and information about rsa
PDF
CRYPTOGRAPHY (2).pdf
PPT
Unit --3.ppt
PPTX
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
PDF
Enhanced RSA Cryptosystem based on Multiplicity of Public and Private Keys
PPT
ch09_rsa_nemo.ppt
PPTX
Network security and cryptography
PPT
Encryption
DOC
PPTX
CS_Chapter_2Security concerns of different types of devices.pptx
PPTX
CS_Chapter_2Security concerns of different types of devices.pptx
PDF
DOCX
PUBLIC KEY & RSA.ppt
Unit 7 : Network Security
Rsa Crptosystem
Introduction to cryptography
RSA Algorithem and information about rsa
CRYPTOGRAPHY (2).pdf
Unit --3.ppt
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
Enhanced RSA Cryptosystem based on Multiplicity of Public and Private Keys
ch09_rsa_nemo.ppt
Network security and cryptography
Encryption
CS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptx
Ad

Recently uploaded (20)

PDF
V2500 Owner and Operatore Guide for Airbus
PDF
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
PPTX
Solar energy pdf of gitam songa hemant k
PPTX
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
PPTX
SC Robotics Team Safety Training Presentation
PPTX
IOP Unit 1.pptx for btech 1st year students
PPTX
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
PPTX
Unit IILATHEACCESSORSANDATTACHMENTS.pptx
PDF
Performance, energy consumption and costs: a comparative analysis of automati...
PDF
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
PPTX
quantum theory on the next future in.pptx
PPTX
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
PDF
25AF1191PC303 MODULE-1 CHAIN SURVEYING SEMESTER III SURVEYING
PPT
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
PDF
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
PDF
electrical machines course file-anna university
PPTX
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
PPTX
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
PPT
Comprehensive Java Training Deck - Advanced topics
DOCX
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)
V2500 Owner and Operatore Guide for Airbus
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
Solar energy pdf of gitam songa hemant k
1. Effective HSEW Induction Training - EMCO 2024, O&M.pptx
SC Robotics Team Safety Training Presentation
IOP Unit 1.pptx for btech 1st year students
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
Unit IILATHEACCESSORSANDATTACHMENTS.pptx
Performance, energy consumption and costs: a comparative analysis of automati...
AIGA 012_04 Cleaning of equipment for oxygen service_reformat Jan 12.pdf
quantum theory on the next future in.pptx
Module1.pptxrjkeieuekwkwoowkemehehehrjrjrj
25AF1191PC303 MODULE-1 CHAIN SURVEYING SEMESTER III SURVEYING
Module_1_Lecture_1_Introduction_To_Automation_In_Production_Systems2023.ppt
LS-6-Digital-Literacy (1) K12 CURRICULUM .pdf
electrical machines course file-anna university
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
ARCHITECTURE AND PROGRAMMING OF EMBEDDED SYSTEMS
Comprehensive Java Training Deck - Advanced topics
ENVIRONMENTAL PROTECTION AND MANAGEMENT (18CVL756)

Public key algorithm

  • 1. Public Key Algorithm By Pankaj Jatav (110101168) Rahul Kumar (120101813) Rahul Aggarwal (110101189) Prateek Pandey (110101180)
  • 2. Cryptography  The art of the Secret (crypto-) writing (-graphy). It enables you to store information or transmit it across insecure networks, so that it cannot be read by anyone except the intended recipient.
  • 4. TERMINOLOGY  Plain Text:- The message or data that is to be transmitted over the network.  Cipher :- A mapping algorithm which is used to encrypt or decrypt the message.  Key : A key is a number (or a set of numbers) that the cipher implements to encrypt or decrypt a message. To encrypt a message we need to convert the plaintext to ciphertext using an encryption algorithm and encryption key whereas to decrypt the message we require a decryption algorithm and a decryption key to reveal the plaintext
  • 5. Symmetric Key Cryptography  Symmetric-key cryptography refers to encryption methods in which both the sender and receiver share the same key (or, less commonly, in which their keys are different, but related in an easily computable way). This was the only kind of encryption publicly known until June 1976. 5
  • 7. Asymmetric Key Cryptography Asymmetric cryptography or public-key cryptography is cryptography in which a pair of keys is used to encrypt and decrypt a message so that it arrives securely. Initially, a network user receives a public and private key pair from a certificate authority. Any other user who wants to send an encrypted message can get the intended recipient's public key from a public directory. They use this key to encrypt the message, and they send it to the recipient. When the recipient gets the message, they decrypt it with their private key, which no one else should have access to. 7
  • 9. Why use Public Key Algorithms??
  • 11. Public Key Algorithms  Proposed by Diffie and Hellman in 1976.  The encryption algorithm must meet 3 requirements: 1. D(E(P))=P 2. It is Exceedingly difficult to deduce D from E. 3. E cannot be broken by a chosen plaintext attack.
  • 13. Public key blueprint  The keys used to encrypt and decrypt are different.  Anyone who wants to be a receiver needs to “publish” an encryption key, which is known as the public key.  Anyone who wants to be a receiver needs a unique decryption key, which is known as the private key.  It should not be possible to deduce the plaintext from knowledge of the ciphertext and the public key.  Some guarantee needs to be offered of the authenticity of a public key. 13
  • 14. Public Key Algorithms Algorithms Satisfying all three requirements are:  RSA  ElGamal
  • 15. RSA Given by Rivest, Shamir & Adleman of MIT in 1977 Best known & widely used public-key scheme Based on exponentiation in a finite field over integers modulo a prime Uses large integers (eg. 1024 bits) Security due to cost of factoring large numbers
  • 16. RSA  Choose two large prime numbers p, q. (e.g., 1024 bits each)  Compute n = p*q and z = (p-1)(q-1).  Choose d (with d<n) that has no common factors with z. (e, z are “relatively prime”).  Choose e such that ed-1 is exactly divisible by z. (in other words: ed mod z = 1 ).
  • 17. RSA: Encryption, decryption  Given (n,e) and (n,d) as computed above  Dividing Plain Text into Blocks: 0<=P<n  To encrypt message P (<n), compute e C = M (mod n)  To decrypt received bit pattern, C, compute d M = C (mod n)  Public key is (n,e).  Private key is (n,d).
  • 18. RSA example: Let us choose p=3 and q=11. Then n=33 and z=20. d=7 (so d, z relatively prime). e=3 (so ed-1 exactly divisible by z). Encrypting messages: M M e C = Me mod n 19 6859 28 d C C M = Cd mod n 28 13492928512 19 Encrypt: Decrypt:
  • 19. RSA Issues  RSA is computationally intense.  Commonly used key lengths are 1024 bits  The plain text should be smaller than the key length  The encrypted text is of the same size as the key length  Generally used to encrypt secret keys.  Basis: Factoring a big number is hard
  • 20. Summary  Public key systems replace the problem of distributing symmetric keys with one of authenticating public keys  Public key encryption algorithms need to be trapdoor one-way functions  RSA is a public key encryption algorithm whose security is believed to be based on the problem of factoring large numbers  ElGamal is a public key encryption algorithm whose security is believed to be based on the discrete logarithm problem  RSA is generally favoured over ElGamal for practical rather than security reasons  RSA and ElGamal are less efficient and fast to operate than most symmetric encryption algorithms because they involve modular exponentiation  DH key exchange is an important protocol on which many real key exchange protocols are based
  • 22. Attacks on RSA  Smooth Number Attack:  If you sign m1 and m2  S1 = md 1 mod n  S2 = m2d mod n  Attacker can sign m1m2, m1/m2, m12, m1jm2k  Easy to do if mi’s are small (smooth) numbers.  Cube Root Problem of RSA  If public exponent e=3:  hde mod n = h  hd mod n = h1/3  Simply compute h1/3 mod n

Editor's Notes

  • #11: CASE-1: According to No cryptography. CASE-2: According to symmetrical cryptography
  • #12: The first requirement says that if we apply D to an encrypted message, E(P), we get the original plaintext message, P, back. Without this property, the legitimate receiver could not decrypt the ciphertext. The second requirement speaks for itself. The third requirement is needed because, as we shall see in a moment, intruders may experiment with the algorithm to their hearts’ content. Under these conditions, there is no reason that the encryption key cannot be made public.
  • #13: How system behave in public key algorithm