SlideShare a Scribd company logo
1 of 1
Download to read offline
RSA cryptosytem Alice and Bob set up an RSA cryptosystem: Bob chooses the modulus 3131
and an encrypting exponent e = 7, and sends Alice the pair (m, e) = (3131, 7). Alice takes a two-
letter message, turns it into a four-digit number by replacing each letter by its place in the
alphabet (so A = 01, Z = 26), and sends Bob c = 1502. Bob knows that the decrypting exponent d
= 2143, so in order to find Alice's message, he needs to find 1502^2143 (mod 3131) Solve
Bob's problem in the following way: using that 3131 = 31 middot 101, reduce the problem to
that of finding two much smaller modular exponentiation problems. Then solve both problems.
Then solve a pair of congruences, one modulo 31 and one modulo 101, to find Alice's message.
Solution
Alice generates her RSA keys by selecting two primes: p=11 and q=13. The
modulusn=p×q=143. The totient of n (n)=(p1)x(q1)=120. She chooses 7 for her RSA public keye
and calculates her RSA private key using the Extended Euclidean Algorithm which gives her
103.
Bob wants to send Alice an encrypted message M so he obtains her RSA public key (n,e) which
in this example is (143, 7). His plaintext message is just the number 9 and is encrypted into
ciphertext C as follows:
Me mod n = 97 mod 143 = 48 = C
When Alice receives Bob’s message she decrypts it by using her RSA private key (d, n) as
follows:
Cd mod n = 48103 mod 143 = 9 = M
To use RSA keys to digitally sign a message, Alice would create a hash or message digest of her
message to Bob, encrypt the hash value with her RSA private key and add it to the message. Bob
can then verify that the message has been sent by Alice and has not been altered by decrypting
the hash value with her public key. If this value matches the hash of the original message, then
only Alice could have sent it (authentication and non-repudiation) and the message is exactly as
she wrote it (integrity). Alice could, of course, encrypt her message with Bob’s RSA public key
(confidentiality) before sending it to Bob. A digital certificate contains information that identifies
the certificate's owner and also contains the owner's public key. Certificates are signed by the
certificate authority that issues them, and can simplify the process of obtaining public keys and
verifying the owner.

More Related Content

More from ALASEEMKOTA

Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdf
Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdfSalad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdf
Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdfALASEEMKOTA
 
Sabrina is the virtual team leader of a group that will be creating .pdf
Sabrina is the virtual team leader of a group that will be creating .pdfSabrina is the virtual team leader of a group that will be creating .pdf
Sabrina is the virtual team leader of a group that will be creating .pdfALASEEMKOTA
 
R[a,b] is remann integralSolution Do you kno.pdf
R[a,b] is remann integralSolution                     Do you kno.pdfR[a,b] is remann integralSolution                     Do you kno.pdf
R[a,b] is remann integralSolution Do you kno.pdfALASEEMKOTA
 
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdf
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdfRussia imports 5 billion Rubles of goods and exports 7 billion ruble.pdf
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdfALASEEMKOTA
 
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdf
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdfRunoff isA. Change in soil moistureB. Change in groundwaterC..pdf
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdfALASEEMKOTA
 
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdf
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdfRudy Co. has total fixed costs of $520,000. A unit of product sells .pdf
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdfALASEEMKOTA
 
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdf
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdfROY G. BIV is a mnemonic device to remember that the color spectrum .pdf
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdfALASEEMKOTA
 
Ross and Rachel have just tied the knot. The probability that they.pdf
Ross and Rachel have just tied the knot. The probability that they.pdfRoss and Rachel have just tied the knot. The probability that they.pdf
Ross and Rachel have just tied the knot. The probability that they.pdfALASEEMKOTA
 
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdf
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdfRory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdf
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdfALASEEMKOTA
 
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdf
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdfRose Corporation acquired 100 percent of Lilly Company’s outstanding.pdf
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdfALASEEMKOTA
 
Ronald is about to roll his two dice again. What are the odds of ha.pdf
Ronald is about to roll his two dice again.  What are the odds of ha.pdfRonald is about to roll his two dice again.  What are the odds of ha.pdf
Ronald is about to roll his two dice again. What are the odds of ha.pdfALASEEMKOTA
 
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdf
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdfRomeo and Juliet plan to meet each other at the Theta Pond on the Va.pdf
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdfALASEEMKOTA
 
Robert has eight guests, two of whom are Jim and John. If the guests.pdf
Robert has eight guests, two of whom are Jim and John. If the guests.pdfRobert has eight guests, two of whom are Jim and John. If the guests.pdf
Robert has eight guests, two of whom are Jim and John. If the guests.pdfALASEEMKOTA
 
ROA2The net profit margin for a company is 26.2 , the asset turno.pdf
ROA2The net profit margin for a company is 26.2 , the asset turno.pdfROA2The net profit margin for a company is 26.2 , the asset turno.pdf
ROA2The net profit margin for a company is 26.2 , the asset turno.pdfALASEEMKOTA
 
Robert Corp. sponsors a defined benefit pension plan for its employe.pdf
Robert Corp. sponsors a defined benefit pension plan for its employe.pdfRobert Corp. sponsors a defined benefit pension plan for its employe.pdf
Robert Corp. sponsors a defined benefit pension plan for its employe.pdfALASEEMKOTA
 
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdf
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdfRiver Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdf
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdfALASEEMKOTA
 
Risk management is made up of primary and secondary activities. Whic.pdf
Risk management is made up of primary and secondary activities. Whic.pdfRisk management is made up of primary and secondary activities. Whic.pdf
Risk management is made up of primary and secondary activities. Whic.pdfALASEEMKOTA
 
risk in securites trading areSolutionHi,The biggest risk in.pdf
risk in securites trading areSolutionHi,The biggest risk in.pdfrisk in securites trading areSolutionHi,The biggest risk in.pdf
risk in securites trading areSolutionHi,The biggest risk in.pdfALASEEMKOTA
 
rev 04_17_2012.pdf
rev 04_17_2012.pdfrev 04_17_2012.pdf
rev 04_17_2012.pdfALASEEMKOTA
 
Richard has just been given a ten-question multiple choice test in h.pdf
Richard has just been given a ten-question multiple choice test in h.pdfRichard has just been given a ten-question multiple choice test in h.pdf
Richard has just been given a ten-question multiple choice test in h.pdfALASEEMKOTA
 

More from ALASEEMKOTA (20)

Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdf
Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdfSalad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdf
Salad Toppings Donald Wheeler is ordering a salad at a Ruby Tuesday.pdf
 
Sabrina is the virtual team leader of a group that will be creating .pdf
Sabrina is the virtual team leader of a group that will be creating .pdfSabrina is the virtual team leader of a group that will be creating .pdf
Sabrina is the virtual team leader of a group that will be creating .pdf
 
R[a,b] is remann integralSolution Do you kno.pdf
R[a,b] is remann integralSolution                     Do you kno.pdfR[a,b] is remann integralSolution                     Do you kno.pdf
R[a,b] is remann integralSolution Do you kno.pdf
 
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdf
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdfRussia imports 5 billion Rubles of goods and exports 7 billion ruble.pdf
Russia imports 5 billion Rubles of goods and exports 7 billion ruble.pdf
 
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdf
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdfRunoff isA. Change in soil moistureB. Change in groundwaterC..pdf
Runoff isA. Change in soil moistureB. Change in groundwaterC..pdf
 
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdf
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdfRudy Co. has total fixed costs of $520,000. A unit of product sells .pdf
Rudy Co. has total fixed costs of $520,000. A unit of product sells .pdf
 
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdf
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdfROY G. BIV is a mnemonic device to remember that the color spectrum .pdf
ROY G. BIV is a mnemonic device to remember that the color spectrum .pdf
 
Ross and Rachel have just tied the knot. The probability that they.pdf
Ross and Rachel have just tied the knot. The probability that they.pdfRoss and Rachel have just tied the knot. The probability that they.pdf
Ross and Rachel have just tied the knot. The probability that they.pdf
 
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdf
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdfRory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdf
Rory, Elyse, Jason, Jodi, and Sarah are each going to host a class p.pdf
 
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdf
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdfRose Corporation acquired 100 percent of Lilly Company’s outstanding.pdf
Rose Corporation acquired 100 percent of Lilly Company’s outstanding.pdf
 
Ronald is about to roll his two dice again. What are the odds of ha.pdf
Ronald is about to roll his two dice again.  What are the odds of ha.pdfRonald is about to roll his two dice again.  What are the odds of ha.pdf
Ronald is about to roll his two dice again. What are the odds of ha.pdf
 
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdf
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdfRomeo and Juliet plan to meet each other at the Theta Pond on the Va.pdf
Romeo and Juliet plan to meet each other at the Theta Pond on the Va.pdf
 
Robert has eight guests, two of whom are Jim and John. If the guests.pdf
Robert has eight guests, two of whom are Jim and John. If the guests.pdfRobert has eight guests, two of whom are Jim and John. If the guests.pdf
Robert has eight guests, two of whom are Jim and John. If the guests.pdf
 
ROA2The net profit margin for a company is 26.2 , the asset turno.pdf
ROA2The net profit margin for a company is 26.2 , the asset turno.pdfROA2The net profit margin for a company is 26.2 , the asset turno.pdf
ROA2The net profit margin for a company is 26.2 , the asset turno.pdf
 
Robert Corp. sponsors a defined benefit pension plan for its employe.pdf
Robert Corp. sponsors a defined benefit pension plan for its employe.pdfRobert Corp. sponsors a defined benefit pension plan for its employe.pdf
Robert Corp. sponsors a defined benefit pension plan for its employe.pdf
 
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdf
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdfRiver Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdf
River Forest, Inc., has 5,000 shares of 6, $100 par value, noncumul.pdf
 
Risk management is made up of primary and secondary activities. Whic.pdf
Risk management is made up of primary and secondary activities. Whic.pdfRisk management is made up of primary and secondary activities. Whic.pdf
Risk management is made up of primary and secondary activities. Whic.pdf
 
risk in securites trading areSolutionHi,The biggest risk in.pdf
risk in securites trading areSolutionHi,The biggest risk in.pdfrisk in securites trading areSolutionHi,The biggest risk in.pdf
risk in securites trading areSolutionHi,The biggest risk in.pdf
 
rev 04_17_2012.pdf
rev 04_17_2012.pdfrev 04_17_2012.pdf
rev 04_17_2012.pdf
 
Richard has just been given a ten-question multiple choice test in h.pdf
Richard has just been given a ten-question multiple choice test in h.pdfRichard has just been given a ten-question multiple choice test in h.pdf
Richard has just been given a ten-question multiple choice test in h.pdf
 

Recently uploaded

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 

RSA cryptosytem Alice and Bob set up an RSA cryptosystem Bob choose.pdf

  • 1. RSA cryptosytem Alice and Bob set up an RSA cryptosystem: Bob chooses the modulus 3131 and an encrypting exponent e = 7, and sends Alice the pair (m, e) = (3131, 7). Alice takes a two- letter message, turns it into a four-digit number by replacing each letter by its place in the alphabet (so A = 01, Z = 26), and sends Bob c = 1502. Bob knows that the decrypting exponent d = 2143, so in order to find Alice's message, he needs to find 1502^2143 (mod 3131) Solve Bob's problem in the following way: using that 3131 = 31 middot 101, reduce the problem to that of finding two much smaller modular exponentiation problems. Then solve both problems. Then solve a pair of congruences, one modulo 31 and one modulo 101, to find Alice's message. Solution Alice generates her RSA keys by selecting two primes: p=11 and q=13. The modulusn=p×q=143. The totient of n (n)=(p1)x(q1)=120. She chooses 7 for her RSA public keye and calculates her RSA private key using the Extended Euclidean Algorithm which gives her 103. Bob wants to send Alice an encrypted message M so he obtains her RSA public key (n,e) which in this example is (143, 7). His plaintext message is just the number 9 and is encrypted into ciphertext C as follows: Me mod n = 97 mod 143 = 48 = C When Alice receives Bob’s message she decrypts it by using her RSA private key (d, n) as follows: Cd mod n = 48103 mod 143 = 9 = M To use RSA keys to digitally sign a message, Alice would create a hash or message digest of her message to Bob, encrypt the hash value with her RSA private key and add it to the message. Bob can then verify that the message has been sent by Alice and has not been altered by decrypting the hash value with her public key. If this value matches the hash of the original message, then only Alice could have sent it (authentication and non-repudiation) and the message is exactly as she wrote it (integrity). Alice could, of course, encrypt her message with Bob’s RSA public key (confidentiality) before sending it to Bob. A digital certificate contains information that identifies the certificate's owner and also contains the owner's public key. Certificates are signed by the certificate authority that issues them, and can simplify the process of obtaining public keys and verifying the owner.