SlideShare a Scribd company logo
BY
RAFIDH
PUBLIC-KEY
CRYPTOGAPHY
AND RSA
Outline
principles of public--key
cryptography
RSA algorithm,
implementation, security
Structure Cipher Systems
Symmetric
algorithm
Stream Cipher Block Cipher
AESRC4
Cipher Systems
DES
ASymmetric
algorithm
RSA
Public key
encryption
Asymmetric encryption is a form of cryptosystem in which
encryption and decryption are performed using the different
keys—one a public key and one a private key. It is also known as
public-key encryption.
 Asymmetric encryption transforms plaintext into ciphertext
using a one of two keys and an encryption algorithm. Using the
paired key and a decryption algorithm, the plaintext is
recovered from the ciphertext.
 Asymmetric encryption can be used for confidentiality,
authentication, or both.
 The most widely used public-key cryptosystem is RSA. The
difficulty of attacking RSA is based on the difficulty of finding
the prime factors of a composite number.
Key points
PUBLIC-KEY CRYPTOGAPHY
The concept of public-key cryptography evolved
from an attempt to attack two of the most difficult
problems associated with symmetric encryption :
 The first problem is that of key distribution .
The second problem and one that was apparently
unrelated to the first, was that of digital
signatures.
 Asymmetric algorithms rely on one key for encryption and a
different but related key for decryption .These algorithms
have the following important characteristic.
 It is computationally infeasible to determine the decryption
key given only knowledge of the cryptographic algorithm
and the encryption key.
Public-Key Cryptosystems
Information and data security public key cryptography and rsa
Information and data security public key cryptography and rsa
 Plaintext: This is the readable message or data that is fed
into the algorithm as input.
 Encryption algorithm: The encryption algorithm performs
various transformations on the plaintext.
 Public and private keys: This is a pair of keys that have
been selected so that if one is used for encryption, the other is
used for decryption. The exact transformations performed by
the algorithm depend on the public or private key that is
provided as input.
scheme has six ingredients
 Ciphertext: This is the scrambled message produced
as output. It depends on the plaintext and the key.
For a given message, two different keys will produce
two different ciphertexts.
 Decryption algorithm: This algorithm accepts the
ciphertext and the matching key and produces the
original plaintext.
1. Each user generates a pair of keys to be used for the encryption
and decryption of messages.
2. Each user places one of the two keys in a public register or other
accessible file. This is the public key.The companion key is kept
private.
3. If Bob wishes to send a confidential message to Alice, Bob
encrypts the message using Alice’s public key.
4. When Alice receives the message, she decrypts it using her
private key. No other recipient can decrypt the message because
only Alice knows Alice’s private key.
The essential steps are the following :
Information and data security public key cryptography and rsa
Information and data security public key cryptography and rsa
 Encryption /decryption: The sender encrypts a message with
the recipient’s public key.
 Digital signature: The sender “signs” a message with its
private key. Signing is achieved by a cryptographic algorithm
applied to the message or to a small block of data of the
message.
 Key exchange: Two sides cooperate to exchange a session key.
Applications for Public-Key Cryptosystems
Information and data security public key cryptography and rsa
1. It is computationally easy for a party B to generate a pair
(public key PUb, private key PRb).
2. It is computationally easy for a sender A, knowing the public
key and the message to be encrypted,M, to generate the
corresponding ciphertext:
C = E(PUb,M)
3. It is computationally easy for the receiver B to decrypt the
resulting ciphertext using the private key to recover the
original message:
M = D(PRb, C) = D[PRb, E(PUb,M)]
Requirements for Public-Key
Cryptography
4. It is computationally infeasible for an adversary, knowing the
public key, PUb, to determine the private key,PRb.
5. It is computationally infeasible for an adversary, knowing the
public key, PUb, and a ciphertext, C, to recover the original
message,M. We can add a sixth requirement that, although useful,
is not necessary for all public-key applications:
6. The two keys can be applied in either order:
M = D[PUb, E(PRb,M)] = D[PRb, E(PUb,M)]
Requirements for Public-Key
Cryptography
 developed in 1977 by Ron Rivest, Adi Shamir, and Len Adleman
at MIT and first published in 1978 .
 The RSA scheme is a block cipher in which the plaintext and
ciphertext are integers between 0 and n - 1 for some n.
 A typical size for n is 1024 bits, or 309 decimal digits.
 Encryption and decryption are of the following form, for some
plaintext block M and ciphertext block C.

THE RSA ALGORITHM
Both sender and receiver must know the
value of n.
 The sender knows the value of e.
 only the receiver knows the value of d.
 public key of PU = {e, n}.
 a private key of PR = {d, n}.
THE RSA ALGORITHM
the following requirements must be met
Information and data security public key cryptography and rsa
 The resulting keys are public key PU = {7, 187} and private
key PR = {23, 187}, the example shows the use of these keys
for plaintext M = 88 .
 For encryption
 88^7 mod 187 = [(88^4 mod 187) × (88^2 mod 187)
 × (88^1 mod 187)] mod 187
 88^1 mod 187 = 88
 88^2 mod 187 = 7744 mod 187 = 77
 88^4 mod 187 = 59,969,536 mod 187 = 132
 88^7 mod 187 = (88 × 77 × 132) mod 187 = 894,432 mod 187
= 11
Information and data security public key cryptography and rsa
Information and data security public key cryptography and rsa
Information and data security public key cryptography and rsa
RSA Processeing of Multiple Blocks
Four possible approaches to attacking the RSA algorithm are
 Brute force: This involves trying all possible private keys.
 Mathematical attacks: There are several approaches, all
equivalent in effort to factoring the product of two primes.
 Timing attacks: These depend on the running time of the
decryption algorithm.
 Chosen ciphertext attacks: This type of attack exploits properties
of the RSA algorithm.
The Security of RSA
Information and data security public key cryptography and rsa
Ad

More Related Content

What's hot (20)

CMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signatureCMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signature
Adarsh Patel
 
Cryptography
CryptographyCryptography
Cryptography
Jens Patel
 
cryptography
cryptographycryptography
cryptography
Abhijeet Singh
 
Public Key Cryptosystem
Public Key CryptosystemPublic Key Cryptosystem
Public Key Cryptosystem
Devakumar Kp
 
Pretty good privacy
Pretty good privacyPretty good privacy
Pretty good privacy
Pushkar Dutt
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
Md. Afif Al Mamun
 
Ch02...1
Ch02...1Ch02...1
Ch02...1
nathanurag
 
Double DES & Triple DES
Double DES & Triple DESDouble DES & Triple DES
Double DES & Triple DES
Hemant Sharma
 
Cryptography.ppt
Cryptography.pptCryptography.ppt
Cryptography.ppt
Uday Meena
 
Information Security & Cryptography
Information Security & CryptographyInformation Security & Cryptography
Information Security & Cryptography
Arun ACE
 
Message digest 5
Message digest 5Message digest 5
Message digest 5
Tirthika Bandi
 
RSA ALGORITHM
RSA ALGORITHMRSA ALGORITHM
RSA ALGORITHM
Dr. Shashank Shetty
 
Cryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSACryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSA
aritraranjan
 
MD-5 : Algorithm
MD-5 : AlgorithmMD-5 : Algorithm
MD-5 : Algorithm
Sahil Kureel
 
Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1
Mohamed Loey
 
Public Key Cryptography and RSA algorithm
Public Key Cryptography and RSA algorithmPublic Key Cryptography and RSA algorithm
Public Key Cryptography and RSA algorithm
Indra97065
 
Diffiehellman
DiffiehellmanDiffiehellman
Diffiehellman
chenlahero
 
Lecture 9 key distribution and user authentication
Lecture 9 key distribution and user authentication Lecture 9 key distribution and user authentication
Lecture 9 key distribution and user authentication
rajakhurram
 
Encryption
EncryptionEncryption
Encryption
keith dias
 
Symmetric and asymmetric key
Symmetric and asymmetric keySymmetric and asymmetric key
Symmetric and asymmetric key
Triad Square InfoSec
 
CMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signatureCMACs and MACS based on block ciphers, Digital signature
CMACs and MACS based on block ciphers, Digital signature
Adarsh Patel
 
Public Key Cryptosystem
Public Key CryptosystemPublic Key Cryptosystem
Public Key Cryptosystem
Devakumar Kp
 
Pretty good privacy
Pretty good privacyPretty good privacy
Pretty good privacy
Pushkar Dutt
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
Md. Afif Al Mamun
 
Double DES & Triple DES
Double DES & Triple DESDouble DES & Triple DES
Double DES & Triple DES
Hemant Sharma
 
Cryptography.ppt
Cryptography.pptCryptography.ppt
Cryptography.ppt
Uday Meena
 
Information Security & Cryptography
Information Security & CryptographyInformation Security & Cryptography
Information Security & Cryptography
Arun ACE
 
Cryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSACryptographic Algorithms: DES and RSA
Cryptographic Algorithms: DES and RSA
aritraranjan
 
Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1Computer Security Lecture 2: Classical Encryption Techniques 1
Computer Security Lecture 2: Classical Encryption Techniques 1
Mohamed Loey
 
Public Key Cryptography and RSA algorithm
Public Key Cryptography and RSA algorithmPublic Key Cryptography and RSA algorithm
Public Key Cryptography and RSA algorithm
Indra97065
 
Lecture 9 key distribution and user authentication
Lecture 9 key distribution and user authentication Lecture 9 key distribution and user authentication
Lecture 9 key distribution and user authentication
rajakhurram
 

Similar to Information and data security public key cryptography and rsa (20)

Unit 3(1)
Unit 3(1)Unit 3(1)
Unit 3(1)
Vinod Kumar Gorrepati
 
Unit 3(1)
Unit 3(1)Unit 3(1)
Unit 3(1)
Vinod Kumar Gorrepati
 
Module2.pptx
Module2.pptxModule2.pptx
Module2.pptx
ShilpaShettyA1
 
3 public key cryptography
3 public key cryptography3 public key cryptography
3 public key cryptography
Rutvik Mehta
 
Unit-III_3R-CRYPTO_2021-22_VSM.pptx
Unit-III_3R-CRYPTO_2021-22_VSM.pptxUnit-III_3R-CRYPTO_2021-22_VSM.pptx
Unit-III_3R-CRYPTO_2021-22_VSM.pptx
VishwanathMahalle
 
PUBLIC KEY & RSA.ppt
PUBLIC KEY & RSA.pptPUBLIC KEY & RSA.ppt
PUBLIC KEY & RSA.ppt
RizwanBasha12
 
CS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptxCS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptx
haymanottaddess2015m
 
CS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptxCS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptx
haymanottaddess2015m
 
Public-Key Cryptography.pptx
Public-Key Cryptography.pptxPublic-Key Cryptography.pptx
Public-Key Cryptography.pptx
AbdulRehman970300
 
Vtu network security(10 ec832) unit 3 notes.
Vtu network security(10 ec832) unit 3 notes.Vtu network security(10 ec832) unit 3 notes.
Vtu network security(10 ec832) unit 3 notes.
Jayanth Dwijesh H P
 
Network and Information Security unit2.ppt.ppt
Network and Information Security unit2.ppt.pptNetwork and Information Security unit2.ppt.ppt
Network and Information Security unit2.ppt.ppt
Vivekananda Gn
 
CRYPTOGRAPHY (2).pdf
CRYPTOGRAPHY (2).pdfCRYPTOGRAPHY (2).pdf
CRYPTOGRAPHY (2).pdf
BhuvanaR13
 
Pooguzhali
PooguzhaliPooguzhali
Pooguzhali
NIVEDHINIMANIVANNAN
 
Principles of public key cryptography and its Uses
Principles of  public key cryptography and its UsesPrinciples of  public key cryptography and its Uses
Principles of public key cryptography and its Uses
Mohsin Ali
 
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptxRSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
SiddhanthAlape
 
engineering cryptography pptxmodule 4 rsa.pptx
engineering cryptography  pptxmodule 4 rsa.pptxengineering cryptography  pptxmodule 4 rsa.pptx
engineering cryptography pptxmodule 4 rsa.pptx
shaziasulthana2
 
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptxLesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
MohamedNowfeek1
 
Elementry Cryptography
Elementry CryptographyElementry Cryptography
Elementry Cryptography
Tata Consultancy Services
 
Cryptography Key Management.pptx
Cryptography Key Management.pptxCryptography Key Management.pptx
Cryptography Key Management.pptx
SurendraBasnet6
 
Ch09
Ch09Ch09
Ch09
Joe Christensen
 
3 public key cryptography
3 public key cryptography3 public key cryptography
3 public key cryptography
Rutvik Mehta
 
Unit-III_3R-CRYPTO_2021-22_VSM.pptx
Unit-III_3R-CRYPTO_2021-22_VSM.pptxUnit-III_3R-CRYPTO_2021-22_VSM.pptx
Unit-III_3R-CRYPTO_2021-22_VSM.pptx
VishwanathMahalle
 
PUBLIC KEY & RSA.ppt
PUBLIC KEY & RSA.pptPUBLIC KEY & RSA.ppt
PUBLIC KEY & RSA.ppt
RizwanBasha12
 
CS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptxCS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptx
haymanottaddess2015m
 
CS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptxCS_Chapter_2Security concerns of different types of devices.pptx
CS_Chapter_2Security concerns of different types of devices.pptx
haymanottaddess2015m
 
Public-Key Cryptography.pptx
Public-Key Cryptography.pptxPublic-Key Cryptography.pptx
Public-Key Cryptography.pptx
AbdulRehman970300
 
Vtu network security(10 ec832) unit 3 notes.
Vtu network security(10 ec832) unit 3 notes.Vtu network security(10 ec832) unit 3 notes.
Vtu network security(10 ec832) unit 3 notes.
Jayanth Dwijesh H P
 
Network and Information Security unit2.ppt.ppt
Network and Information Security unit2.ppt.pptNetwork and Information Security unit2.ppt.ppt
Network and Information Security unit2.ppt.ppt
Vivekananda Gn
 
CRYPTOGRAPHY (2).pdf
CRYPTOGRAPHY (2).pdfCRYPTOGRAPHY (2).pdf
CRYPTOGRAPHY (2).pdf
BhuvanaR13
 
Principles of public key cryptography and its Uses
Principles of  public key cryptography and its UsesPrinciples of  public key cryptography and its Uses
Principles of public key cryptography and its Uses
Mohsin Ali
 
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptxRSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
RSA-Algorithm-in-Modular-Arithmetic11 (1) (1).pptx
SiddhanthAlape
 
engineering cryptography pptxmodule 4 rsa.pptx
engineering cryptography  pptxmodule 4 rsa.pptxengineering cryptography  pptxmodule 4 rsa.pptx
engineering cryptography pptxmodule 4 rsa.pptx
shaziasulthana2
 
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptxLesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
Lesson 04 - Symmetric and Asymmetric Key Encryptions (1).pptx
MohamedNowfeek1
 
Cryptography Key Management.pptx
Cryptography Key Management.pptxCryptography Key Management.pptx
Cryptography Key Management.pptx
SurendraBasnet6
 
Ad

More from Mazin Alwaaly (20)

Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometrics
Mazin Alwaaly
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication system
Mazin Alwaaly
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signature
Mazin Alwaaly
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and ear
Mazin Alwaaly
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognition
Mazin Alwaaly
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognition
Mazin Alwaaly
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand Geometry
Mazin Alwaaly
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identification
Mazin Alwaaly
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprints
Mazin Alwaaly
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognition
Mazin Alwaaly
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometric
Mazin Alwaaly
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognition
Mazin Alwaaly
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networks
Mazin Alwaaly
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communications
Mazin Alwaaly
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital libraries
Mazin Alwaaly
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
Mazin Alwaaly
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithms
Mazin Alwaaly
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
Mazin Alwaaly
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
Mazin Alwaaly
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
Mazin Alwaaly
 
Pattern recognition voice biometrics
Pattern recognition voice biometricsPattern recognition voice biometrics
Pattern recognition voice biometrics
Mazin Alwaaly
 
Pattern recognition palm print authentication system
Pattern recognition palm print authentication systemPattern recognition palm print authentication system
Pattern recognition palm print authentication system
Mazin Alwaaly
 
Pattern recognition on line signature
Pattern recognition on line signaturePattern recognition on line signature
Pattern recognition on line signature
Mazin Alwaaly
 
Pattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and earPattern recognition multi biometrics using face and ear
Pattern recognition multi biometrics using face and ear
Mazin Alwaaly
 
Pattern recognition IRIS recognition
Pattern recognition IRIS recognitionPattern recognition IRIS recognition
Pattern recognition IRIS recognition
Mazin Alwaaly
 
Pattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognitionPattern recognition hand vascular pattern recognition
Pattern recognition hand vascular pattern recognition
Mazin Alwaaly
 
Pattern recognition Hand Geometry
Pattern recognition Hand GeometryPattern recognition Hand Geometry
Pattern recognition Hand Geometry
Mazin Alwaaly
 
Pattern recognition forensic dental identification
Pattern recognition forensic dental identificationPattern recognition forensic dental identification
Pattern recognition forensic dental identification
Mazin Alwaaly
 
Pattern recognition fingerprints
Pattern recognition fingerprintsPattern recognition fingerprints
Pattern recognition fingerprints
Mazin Alwaaly
 
Pattern recognition facial recognition
Pattern recognition facial recognitionPattern recognition facial recognition
Pattern recognition facial recognition
Mazin Alwaaly
 
Pattern recognition ear as a biometric
Pattern recognition ear as a biometricPattern recognition ear as a biometric
Pattern recognition ear as a biometric
Mazin Alwaaly
 
Pattern recognition 3d face recognition
Pattern recognition 3d face recognitionPattern recognition 3d face recognition
Pattern recognition 3d face recognition
Mazin Alwaaly
 
Multimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networksMultimedia multimedia over wireless and mobile networks
Multimedia multimedia over wireless and mobile networks
Mazin Alwaaly
 
Multimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communicationsMultimedia network services and protocols for multimedia communications
Multimedia network services and protocols for multimedia communications
Mazin Alwaaly
 
Multimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital librariesMultimedia content based retrieval in digital libraries
Multimedia content based retrieval in digital libraries
Mazin Alwaaly
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
Mazin Alwaaly
 
Multimedia lossless compression algorithms
Multimedia lossless compression algorithmsMultimedia lossless compression algorithms
Multimedia lossless compression algorithms
Mazin Alwaaly
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
Mazin Alwaaly
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
Mazin Alwaaly
 
Multimedia fundamental concepts in video
Multimedia fundamental concepts in videoMultimedia fundamental concepts in video
Multimedia fundamental concepts in video
Mazin Alwaaly
 
Ad

Recently uploaded (20)

Understanding Quantitative Research.pptx
Understanding Quantitative Research.pptxUnderstanding Quantitative Research.pptx
Understanding Quantitative Research.pptx
AzkaRao2
 
ICAI OpenGov Lab: A Quick Introduction | AI for Open Government
ICAI OpenGov Lab: A Quick Introduction | AI for Open GovernmentICAI OpenGov Lab: A Quick Introduction | AI for Open Government
ICAI OpenGov Lab: A Quick Introduction | AI for Open Government
David Graus
 
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspekeLower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
ParamiVihanga
 
Applications of Radioisotopes in Cancer Research.pptx
Applications of Radioisotopes in Cancer Research.pptxApplications of Radioisotopes in Cancer Research.pptx
Applications of Radioisotopes in Cancer Research.pptx
MahitaLaveti
 
Presantation investigation new drug new.pdf
Presantation investigation new drug new.pdfPresantation investigation new drug new.pdf
Presantation investigation new drug new.pdf
091HarshikaModi
 
Fire Prevention and protection 1123.pptx
Fire Prevention and protection 1123.pptxFire Prevention and protection 1123.pptx
Fire Prevention and protection 1123.pptx
091HarshikaModi
 
Adamson, Walter L. - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Adamson, Walter L.  - Avant-Garde Florence. From Modernism to Fascism [ocr] [...Adamson, Walter L.  - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Adamson, Walter L. - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Francisco Sandoval Martínez
 
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Francisco Sandoval Martínez
 
Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...
Sérgio Sacani
 
Sb- and Sn-based materials in Na-ion batteries
Sb- and Sn-based materials in Na-ion batteriesSb- and Sn-based materials in Na-ion batteries
Sb- and Sn-based materials in Na-ion batteries
MichouRatisou
 
GCMS analysis for plant sample GCMS conclusion.pptx
GCMS analysis for plant sample GCMS conclusion.pptxGCMS analysis for plant sample GCMS conclusion.pptx
GCMS analysis for plant sample GCMS conclusion.pptx
SiddheshPote2
 
The Man Who Dared to Challenge Newton and Won! - The True Story of Thane Hein...
The Man Who Dared to Challenge Newton and Won! - The True Story of Thane Hein...The Man Who Dared to Challenge Newton and Won! - The True Story of Thane Hein...
The Man Who Dared to Challenge Newton and Won! - The True Story of Thane Hein...
Thane Heins NOBEL PRIZE WINNING ENERGY RESEARCHER
 
Hemorrhagic Fever from Venezuala Medical Virology.pptx
Hemorrhagic Fever from Venezuala Medical Virology.pptxHemorrhagic Fever from Venezuala Medical Virology.pptx
Hemorrhagic Fever from Venezuala Medical Virology.pptx
wamunsmith
 
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Francisco Sandoval Martínez
 
Drug transport model in Advance Biopharmaceutics
Drug transport model in Advance BiopharmaceuticsDrug transport model in Advance Biopharmaceutics
Drug transport model in Advance Biopharmaceutics
RushiBharti
 
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptxMITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
shereneramdon1109
 
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptxSEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
dhruti94
 
A tale of two Lucies: talk at the maths dept, Free University of Amsterdam
A tale of two Lucies: talk at the maths dept, Free University of AmsterdamA tale of two Lucies: talk at the maths dept, Free University of Amsterdam
A tale of two Lucies: talk at the maths dept, Free University of Amsterdam
Richard Gill
 
Preclinical Advances in Nuclear Neurology.pptx
Preclinical Advances in Nuclear Neurology.pptxPreclinical Advances in Nuclear Neurology.pptx
Preclinical Advances in Nuclear Neurology.pptx
MahitaLaveti
 
Data Structures Stack and Queue Data Structures
Data Structures Stack and Queue Data StructuresData Structures Stack and Queue Data Structures
Data Structures Stack and Queue Data Structures
poongothai11
 
Understanding Quantitative Research.pptx
Understanding Quantitative Research.pptxUnderstanding Quantitative Research.pptx
Understanding Quantitative Research.pptx
AzkaRao2
 
ICAI OpenGov Lab: A Quick Introduction | AI for Open Government
ICAI OpenGov Lab: A Quick Introduction | AI for Open GovernmentICAI OpenGov Lab: A Quick Introduction | AI for Open Government
ICAI OpenGov Lab: A Quick Introduction | AI for Open Government
David Graus
 
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspekeLower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
Lower_Limb_mcqs_copy.pdfkrrrrkrkeoeleenekspeke
ParamiVihanga
 
Applications of Radioisotopes in Cancer Research.pptx
Applications of Radioisotopes in Cancer Research.pptxApplications of Radioisotopes in Cancer Research.pptx
Applications of Radioisotopes in Cancer Research.pptx
MahitaLaveti
 
Presantation investigation new drug new.pdf
Presantation investigation new drug new.pdfPresantation investigation new drug new.pdf
Presantation investigation new drug new.pdf
091HarshikaModi
 
Fire Prevention and protection 1123.pptx
Fire Prevention and protection 1123.pptxFire Prevention and protection 1123.pptx
Fire Prevention and protection 1123.pptx
091HarshikaModi
 
Adamson, Walter L. - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Adamson, Walter L.  - Avant-Garde Florence. From Modernism to Fascism [ocr] [...Adamson, Walter L.  - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Adamson, Walter L. - Avant-Garde Florence. From Modernism to Fascism [ocr] [...
Francisco Sandoval Martínez
 
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Antliff, Allan . - Anarchist Modernism. Art, Politics, and the First American...
Francisco Sandoval Martínez
 
Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...Structure formation with primordial black holes: collisional dynamics, binari...
Structure formation with primordial black holes: collisional dynamics, binari...
Sérgio Sacani
 
Sb- and Sn-based materials in Na-ion batteries
Sb- and Sn-based materials in Na-ion batteriesSb- and Sn-based materials in Na-ion batteries
Sb- and Sn-based materials in Na-ion batteries
MichouRatisou
 
GCMS analysis for plant sample GCMS conclusion.pptx
GCMS analysis for plant sample GCMS conclusion.pptxGCMS analysis for plant sample GCMS conclusion.pptx
GCMS analysis for plant sample GCMS conclusion.pptx
SiddheshPote2
 
Hemorrhagic Fever from Venezuala Medical Virology.pptx
Hemorrhagic Fever from Venezuala Medical Virology.pptxHemorrhagic Fever from Venezuala Medical Virology.pptx
Hemorrhagic Fever from Venezuala Medical Virology.pptx
wamunsmith
 
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Antliff, Mark. - Avant-Garde Fascism. The Mobilization of Myth, Art, and Cult...
Francisco Sandoval Martínez
 
Drug transport model in Advance Biopharmaceutics
Drug transport model in Advance BiopharmaceuticsDrug transport model in Advance Biopharmaceutics
Drug transport model in Advance Biopharmaceutics
RushiBharti
 
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptxMITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
MITOSIS PRESENTATION FOR BIOLOGY AND HSB.pptx
shereneramdon1109
 
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptxSEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
SEXUAL REPRODUCTION IN FLOWERING PLANTS.pptx
dhruti94
 
A tale of two Lucies: talk at the maths dept, Free University of Amsterdam
A tale of two Lucies: talk at the maths dept, Free University of AmsterdamA tale of two Lucies: talk at the maths dept, Free University of Amsterdam
A tale of two Lucies: talk at the maths dept, Free University of Amsterdam
Richard Gill
 
Preclinical Advances in Nuclear Neurology.pptx
Preclinical Advances in Nuclear Neurology.pptxPreclinical Advances in Nuclear Neurology.pptx
Preclinical Advances in Nuclear Neurology.pptx
MahitaLaveti
 
Data Structures Stack and Queue Data Structures
Data Structures Stack and Queue Data StructuresData Structures Stack and Queue Data Structures
Data Structures Stack and Queue Data Structures
poongothai11
 

Information and data security public key cryptography and rsa

  • 2. Outline principles of public--key cryptography RSA algorithm, implementation, security
  • 3. Structure Cipher Systems Symmetric algorithm Stream Cipher Block Cipher AESRC4 Cipher Systems DES ASymmetric algorithm RSA Public key encryption
  • 4. Asymmetric encryption is a form of cryptosystem in which encryption and decryption are performed using the different keys—one a public key and one a private key. It is also known as public-key encryption.  Asymmetric encryption transforms plaintext into ciphertext using a one of two keys and an encryption algorithm. Using the paired key and a decryption algorithm, the plaintext is recovered from the ciphertext.  Asymmetric encryption can be used for confidentiality, authentication, or both.  The most widely used public-key cryptosystem is RSA. The difficulty of attacking RSA is based on the difficulty of finding the prime factors of a composite number. Key points
  • 5. PUBLIC-KEY CRYPTOGAPHY The concept of public-key cryptography evolved from an attempt to attack two of the most difficult problems associated with symmetric encryption :  The first problem is that of key distribution . The second problem and one that was apparently unrelated to the first, was that of digital signatures.
  • 6.  Asymmetric algorithms rely on one key for encryption and a different but related key for decryption .These algorithms have the following important characteristic.  It is computationally infeasible to determine the decryption key given only knowledge of the cryptographic algorithm and the encryption key. Public-Key Cryptosystems
  • 9.  Plaintext: This is the readable message or data that is fed into the algorithm as input.  Encryption algorithm: The encryption algorithm performs various transformations on the plaintext.  Public and private keys: This is a pair of keys that have been selected so that if one is used for encryption, the other is used for decryption. The exact transformations performed by the algorithm depend on the public or private key that is provided as input. scheme has six ingredients
  • 10.  Ciphertext: This is the scrambled message produced as output. It depends on the plaintext and the key. For a given message, two different keys will produce two different ciphertexts.  Decryption algorithm: This algorithm accepts the ciphertext and the matching key and produces the original plaintext.
  • 11. 1. Each user generates a pair of keys to be used for the encryption and decryption of messages. 2. Each user places one of the two keys in a public register or other accessible file. This is the public key.The companion key is kept private. 3. If Bob wishes to send a confidential message to Alice, Bob encrypts the message using Alice’s public key. 4. When Alice receives the message, she decrypts it using her private key. No other recipient can decrypt the message because only Alice knows Alice’s private key. The essential steps are the following :
  • 14.  Encryption /decryption: The sender encrypts a message with the recipient’s public key.  Digital signature: The sender “signs” a message with its private key. Signing is achieved by a cryptographic algorithm applied to the message or to a small block of data of the message.  Key exchange: Two sides cooperate to exchange a session key. Applications for Public-Key Cryptosystems
  • 16. 1. It is computationally easy for a party B to generate a pair (public key PUb, private key PRb). 2. It is computationally easy for a sender A, knowing the public key and the message to be encrypted,M, to generate the corresponding ciphertext: C = E(PUb,M) 3. It is computationally easy for the receiver B to decrypt the resulting ciphertext using the private key to recover the original message: M = D(PRb, C) = D[PRb, E(PUb,M)] Requirements for Public-Key Cryptography
  • 17. 4. It is computationally infeasible for an adversary, knowing the public key, PUb, to determine the private key,PRb. 5. It is computationally infeasible for an adversary, knowing the public key, PUb, and a ciphertext, C, to recover the original message,M. We can add a sixth requirement that, although useful, is not necessary for all public-key applications: 6. The two keys can be applied in either order: M = D[PUb, E(PRb,M)] = D[PRb, E(PUb,M)] Requirements for Public-Key Cryptography
  • 18.  developed in 1977 by Ron Rivest, Adi Shamir, and Len Adleman at MIT and first published in 1978 .  The RSA scheme is a block cipher in which the plaintext and ciphertext are integers between 0 and n - 1 for some n.  A typical size for n is 1024 bits, or 309 decimal digits.  Encryption and decryption are of the following form, for some plaintext block M and ciphertext block C.  THE RSA ALGORITHM
  • 19. Both sender and receiver must know the value of n.  The sender knows the value of e.  only the receiver knows the value of d.  public key of PU = {e, n}.  a private key of PR = {d, n}. THE RSA ALGORITHM
  • 22.  The resulting keys are public key PU = {7, 187} and private key PR = {23, 187}, the example shows the use of these keys for plaintext M = 88 .  For encryption  88^7 mod 187 = [(88^4 mod 187) × (88^2 mod 187)  × (88^1 mod 187)] mod 187  88^1 mod 187 = 88  88^2 mod 187 = 7744 mod 187 = 77  88^4 mod 187 = 59,969,536 mod 187 = 132  88^7 mod 187 = (88 × 77 × 132) mod 187 = 894,432 mod 187 = 11
  • 26. RSA Processeing of Multiple Blocks
  • 27. Four possible approaches to attacking the RSA algorithm are  Brute force: This involves trying all possible private keys.  Mathematical attacks: There are several approaches, all equivalent in effort to factoring the product of two primes.  Timing attacks: These depend on the running time of the decryption algorithm.  Chosen ciphertext attacks: This type of attack exploits properties of the RSA algorithm. The Security of RSA