{"id":7551,"date":"2024-01-17T17:03:22","date_gmt":"2024-01-17T17:03:22","guid":{"rendered":"https:\/\/www.writemyessays.app\/blog\/questions\/perform-encryption-and-decryption-using-the-rsa-p-3-q-11-e-7-m-5-what-is-the-public-key-pu-what-is-the-private-key-pr-what-is-the-cipertext-c-how-does-the-decryption-to-covert-the-ciphe\/"},"modified":"2024-01-17T17:03:22","modified_gmt":"2024-01-17T17:03:22","slug":"perform-encryption-and-decryption-using-the-rsa-p-3-q-11-e-7-m-5-what-is-the-public-key-pu-what-is-the-private-key-pr-what-is-the-cipertext-c-how-does-the-decryption-to-covert-the-ciphe","status":"publish","type":"questions","link":"https:\/\/www.writemyessays.app\/blog\/questions\/perform-encryption-and-decryption-using-the-rsa-p-3-q-11-e-7-m-5-what-is-the-public-key-pu-what-is-the-private-key-pr-what-is-the-cipertext-c-how-does-the-decryption-to-covert-the-ciphe\/","title":{"rendered":"Perform encryption and decryption using the RSA p = 3; q = 11, e = 7; M = 5  What is the public key PU? What is the private key PR? What is the cipertext C? How does the decryption to covert the ciphertext back to the plaintext M?"},"content":{"rendered":"<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The pioneering paper by Diffie and Hellman introduced a new approach to cryptography and, in effect, challenged cryptologists to come up with a cryptographic algorithm that met the requirements for public-key systems. A number of algorithms have been proposed for public-key cryptography. Some of these, though initially promising, turned out to be breakable.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">One of the first successful responses to the challenge was developed in 1977 by Ron Rivest, Adi Shamir, and Len Adleman at MIT and first published in 1978. The Rivest-Shamir-Adleman (RSA) scheme has since that time reigned supreme as the most widely accepted and implemented general-purpose approach to public-key encryption.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><b style=\"cursor: auto; color: inherit;\">RSA<\/b><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>scheme is a cipher in which the plaintext and ciphertext are integers between 0 and n &#8211; 1 for some n. A typical size for n is 1024 bits, or 309 decimal digits. That is, n is less than 2<sup style=\"cursor: auto; color: inherit;\">1024<\/sup>. We examine RSA in this section in some detail, beginning with an explanation of the algorithm. Then we examine some of the computational and cryptanalytical implications of RSA.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><b style=\"cursor: auto; color: inherit;\">Description of the Algorithm<br style=\"cursor: auto; color: inherit;\"><\/b><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">RSA makes use of an expression with exponentials. Plaintext is encrypted in blocks, with each block having a binary value less than some number n. That is, the block size must be less than or equal to log<sub style=\"cursor: auto; color: inherit;\">2<\/sub>(n)&nbsp; +&nbsp; 1; in practice, the block size is i bits, where&nbsp; encryption and decryption are of the following form, for some plaintext block M and ciphertext block C.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\">C = M<sup style=\"cursor: auto; color: inherit;\">e<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\">M = C<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><sup style=\"cursor: auto; color: inherit;\">d<\/sup><\/i><sup style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/sup>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n = (M<sup style=\"cursor: auto; color: inherit;\">e<\/sup>)<sup style=\"cursor: auto; color: inherit;\">d<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n = M<sup style=\"cursor: auto; color: inherit;\">ed<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><br \/><\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">(mod means to find the remainder. For example 10 mod 5 = 0 because 10 divided by 5 and remainder is 0, while 10 mod 3 = 1 because 10 divided by 3 and the remainder is 1)<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">Both sender and receiver must know the value of n. The sender knows the value of e, and only the receiver knows the value of d. Thus, this is a public-key encryption algorithm with a public key of PU&nbsp; =&nbsp;&nbsp; {e, n} and a private key of PR&nbsp;&nbsp; =&nbsp; {d, n}.For this algorithm to be satisfactory for public-key encryption, the following requirements must be met.<\/p>\n<ol style=\"margin-left: 50px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">It is possible to find values of<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e, d<\/i>, and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>such that<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">M<sup style=\"cursor: auto; color: inherit;\">ed<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i>&nbsp;<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">=&nbsp; M<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>for all M &lt;&nbsp; n.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">It is relatively easy to calculate<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">M<sup style=\"cursor: auto; color: inherit;\">e<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">C<sup style=\"cursor: auto; color: inherit;\">d<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>for all values of M&nbsp; &lt;&nbsp; n.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">It is infeasible to determine<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">d<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>given<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">n<\/i>.<\/li>\n<\/ol>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">For now, we focus on the first requirement and consider the other questions later. We need to find a relationship of the form<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">M<sup style=\"cursor: auto; color: inherit;\">ed<\/sup><\/i><span style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><\/span><i style=\"cursor: auto; color: inherit;\">n = M<\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><br \/><\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The preceding relationship holds if<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">d<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>are multiplicative inverses modulo<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i>. For two prime numbers p, q,<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(pq)<\/i>&nbsp;&nbsp; =&nbsp;&nbsp; (p&nbsp; &#8211;&nbsp; 1)(q&nbsp; &#8211;&nbsp; 1). The relationship between e and d can be expressed as<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\">ed<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>= 1<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">This is equivalent to saying<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\">ed<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>\u2261 1 mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\">d \u2261 e<sup style=\"cursor: auto; color: inherit;\">-1<\/sup><\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">Figure 4 summarizes the RSA algorithm.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><b style=\"cursor: auto; color: inherit;\">An RSA example<\/b><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">For this example, the keys were generated as follows.<\/p>\n<ol style=\"margin-left: 50px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Select two prime numbers, p&nbsp; =&nbsp; 17 and q&nbsp; =&nbsp; 11.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Calculate n&nbsp; =&nbsp; pq&nbsp; =&nbsp; 17&nbsp; *&nbsp; 11&nbsp; =&nbsp; 187.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Calculate<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i>&nbsp; =&nbsp; (p&nbsp; &#8211;&nbsp; 1)(q&nbsp; &#8211;&nbsp; 1)&nbsp; =&nbsp; 16&nbsp; *&nbsp; 10&nbsp; =&nbsp; 160.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Select e such that<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>is relatively prime to<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i>&nbsp; =&nbsp;&nbsp; 160 and less than<i style=\"cursor: auto; color: inherit;\"><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>\u03d5(n)<\/i>; we choose<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e<\/i>&nbsp; =&nbsp;&nbsp; 7. (the greatest common divider (gcd) between<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">e<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>and<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">\u03d5(n)<\/i>&nbsp; is 1)<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Determine<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">d<\/i><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>such that<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">de<\/i>&nbsp; \u2261&nbsp; 1 (mod 160) and d&nbsp; &lt;&nbsp; 160. The correct value is d&nbsp; =&nbsp;&nbsp; 23, because 23&nbsp; *&nbsp; 7&nbsp; =&nbsp;&nbsp; 161&nbsp; = &nbsp;&nbsp;(1&nbsp; *&nbsp; 160)&nbsp; +&nbsp; 1;<\/li>\n<\/ol>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The resulting keys are public key PU&nbsp; =&nbsp;&nbsp; {7, 187} and private key PR&nbsp; =&nbsp;&nbsp; {23, 187}.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The example shows the use of these keys for a plaintext input of M&nbsp; =&nbsp;&nbsp; 88. For encryption, we need to calculate C&nbsp; =&nbsp;&nbsp; 88<sup style=\"cursor: auto; color: inherit;\">7<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187. Exploiting the properties of &nbsp;modular arithmetic, we can do this as follows.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">88<sup style=\"cursor: auto; color: inherit;\">7<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = [(88<sup style=\"cursor: auto; color: inherit;\">4<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187) * (88<sup style=\"cursor: auto; color: inherit;\">2<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187) * (88<sup style=\"cursor: auto; color: inherit;\">1<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187)] mod 187<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">88<sup style=\"cursor: auto; color: inherit;\">1<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 88<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">88<sup style=\"cursor: auto; color: inherit;\">2<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 7744 mod 187 = 77<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">88<sup style=\"cursor: auto; color: inherit;\">4<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 59,969,536 mod 187 = 132<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">88<sup style=\"cursor: auto; color: inherit;\">7<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = (88 * 77 * 132) mod 187 = 894,432 mod 187 = 11<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">For decryption, we calculate M&nbsp;&nbsp; =&nbsp;&nbsp; 11<sup style=\"cursor: auto; color: inherit;\">23<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187:<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">23<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = [(11<sup style=\"cursor: auto; color: inherit;\">1<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187) * (11<sup style=\"cursor: auto; color: inherit;\">2<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187) * (11<sup style=\"cursor: auto; color: inherit;\">4<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187)<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * (11<sup style=\"cursor: auto; color: inherit;\">8<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187) * (11<sup style=\"cursor: auto; color: inherit;\">8<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187)] mod 187<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">1<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 11<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">2<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 121<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">4<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 14,641 mod 187 = 55<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">8<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = 214,358,881 mod 187 = 33<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">11<sup style=\"cursor: auto; color: inherit;\">23<\/sup><span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span>mod 187 = (11 * 121 * 55 * 33 * 33) mod 187<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 79,720,245 mod 187 = 88<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><b style=\"cursor: auto; color: inherit;\">The Security of RSA<\/b><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">Five possible approaches to attacking the RSA algorithm are<\/p>\n<ul style=\"margin-left: 50px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Brute force: This involves trying all possible private keys.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Mathematical attacks: There are several approaches, all equivalent in effort to factoring the product of two primes.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Timing attacks: These depend on the running time of the decryption algorithm.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Hardware fault-based attack: This involves inducing hardware faults in the processor that is generating digital signatures.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Chosen ciphertext attacks: This type of attack exploits properties of the RSA algorithm.<\/li>\n<\/ul>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The defense against the brute-force approach is the same for RSA as for other cryptosystems, namely, to use a large key space. Thus, the larger the number of bits in<span style=\"cursor: auto; color: inherit;\">&nbsp;<\/span><i style=\"cursor: auto; color: inherit;\">d<\/i>, the better. However, because the calculations involved, both in key generation and in encryption\/decryption, are complex, the larger the size of the key, the slower the system will run.<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">To learn more about RSA, check the following sites:<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><a style=\"font-size: 16px; cursor: auto;\">RSA Encryption &#8211; Tutorial<\/a><br style=\"cursor: auto; color: inherit;\">http:\/\/www.woodmann.com\/crackz\/Tutorials\/Rsa.htm<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><a style=\"font-size: 16px; cursor: auto;\">Number theory and RSA<\/a><br style=\"cursor: auto; color: inherit;\">http:\/\/www.sagemath.org\/doc\/thematic_tutorials\/numtheory_rsa.html<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><a style=\"font-size: 16px; cursor: auto;\">RSA concept and example<\/a><br style=\"cursor: auto; color: inherit;\">https:\/\/www.youtube.com\/watch?v=ADozzYA8sTs<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><em style=\"cursor: auto; color: inherit;\"><a style=\"font-size: 16px; cursor: auto;\">The RSA encryption algorithm<\/a><br style=\"cursor: auto; color: inherit;\"><\/em>https:\/\/youtu.be\/4zahvcJ9glg<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">Perform encryption and decryption using the RSA algorithm, for the following:<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">&nbsp;p = 3; q = 11, e = 7; M = 5<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">What is the public key PU? What is the private key PR? What is the cipertext C<span style=\"color: inherit; background-color: var(--color-6); font-variant-ligatures: inherit; font-variant-caps: inherit;\">Use information from the modular background readings as well as the given resources. Also, you could use any good quality resource you can find. Please cite all sources and provide a reference list at the end of your paper.<\/span><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">The following items will be assessed in particular:<\/p>\n<ol style=\"margin-left: 50px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Your ability to consolidate ideas from reading materials and your understanding of the materials.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Your ability to write a report with strong argument.<\/li>\n<li style=\"padding-bottom: 10px; line-height: 1.3em; cursor: auto; color: inherit;\">Some in-text references to modular background readings.<\/li>\n<\/ol>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\">? How does the decryption to covert the ciphertext back to the plaintext M?<\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-weight: 400; font-size: medium; cursor: auto; color: inherit;\">\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><br \/><\/i><\/p>\n<p style=\"margin-left: 70px; margin-right: 70px; font-size: medium; cursor: auto; color: inherit;\"><i style=\"cursor: auto; color: inherit;\"><br \/><\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The pioneering paper by Diffie and Hellman introduced a new approach to cryptography and, in effect, challenged cryptologists to come up with a cryptographic algorithm that met the requirements for public-key systems. A number of algorithms have been proposed for public-key cryptography. Some of these, though initially promising, turned out to be breakable. One of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[63],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/questions\/7551"}],"collection":[{"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/comments?post=7551"}],"version-history":[{"count":0,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/questions\/7551\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/media?parent=7551"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/disciplines?post=7551"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/paper_types?post=7551"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.writemyessays.app\/blog\/wp-json\/wp\/v2\/tagged?post=7551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}