<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="https://publishpress.com/"
	
	>
<channel>
	<title>
	Comments on: RSA Example	</title>
	<atom:link href="https://www.practicalnetworking.net/series/cryptography/rsa-example/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/</link>
	<description>Networking presented simply, practically, and applicably</description>
	<lastBuildDate>Thu, 07 Mar 2024 11:51:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Thomas King		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254382</link>

		<dc:creator><![CDATA[Thomas King]]></dc:creator>
		<pubDate>Thu, 07 Mar 2024 11:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254382</guid>

					<description><![CDATA[I have a public key (&quot;E&quot;) that also decrypts my cipher text. The numbers to generate E follow all the rules. This is what they are:

P = 5 (must be prime number)
Q = 7 (must be prime number)
N = 35 = P*Q
T = 24 = (P-1)*(Q-1)
E = 11 (must be: 1. a prime number; 2. less than T; 3. not be a factor of T)

If my original message is 10 (&quot;M&quot;), I encrypt it with the public key as follows:

Cipher text = M^E MOD N
= 10^11 MOD 35
= 5

Here&#039;s the problem: I can decrypt this cipher text (&quot;C&quot;) with the public key as well:

C^E MOD 35
= 5^11 MOD 35
= 10

I have noticed that if I try a different value for the original message, then I cannot decrypt with the public key.

e.g. if M = 59

Cipher text (&quot;C&quot;) = 59^11 MOD 35
= 19

C^E MOD N
= 19^11 MOD 35
= 24 (not the original message, 59)]]></description>
			<content:encoded><![CDATA[<p>I have a public key (&#8220;E&#8221;) that also decrypts my cipher text. The numbers to generate E follow all the rules. This is what they are:</p>
<p>P = 5 (must be prime number)<br />
Q = 7 (must be prime number)<br />
N = 35 = P*Q<br />
T = 24 = (P-1)*(Q-1)<br />
E = 11 (must be: 1. a prime number; 2. less than T; 3. not be a factor of T)</p>
<p>If my original message is 10 (&#8220;M&#8221;), I encrypt it with the public key as follows:</p>
<p>Cipher text = M^E MOD N<br />
= 10^11 MOD 35<br />
= 5</p>
<p>Here&#8217;s the problem: I can decrypt this cipher text (&#8220;C&#8221;) with the public key as well:</p>
<p>C^E MOD 35<br />
= 5^11 MOD 35<br />
= 10</p>
<p>I have noticed that if I try a different value for the original message, then I cannot decrypt with the public key.</p>
<p>e.g. if M = 59</p>
<p>Cipher text (&#8220;C&#8221;) = 59^11 MOD 35<br />
= 19</p>
<p>C^E MOD N<br />
= 19^11 MOD 35<br />
= 24 (not the original message, 59)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: K.lem		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254332</link>

		<dc:creator><![CDATA[K.lem]]></dc:creator>
		<pubDate>Fri, 19 Jan 2024 01:52:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254332</guid>

					<description><![CDATA[Shouldn&#039;t the formulas for decryption read &quot;&lt;code&gt;Original Message = &lt;u&gt;C&lt;/u&gt;^D MOD N&quot; and &quot;Original Message = &lt;u&gt;S&lt;/u&gt;^E MOD N&quot; respectively?&lt;/code&gt;As they&#039;re written in the article, you&#039;re decrypting the original message instead of the cypher text.]]></description>
			<content:encoded><![CDATA[<p>Shouldn&#8217;t the formulas for decryption read &#8220;<code>Original Message = <u>C</u>^D MOD N" and "Original Message = <u>S</u>^E MOD N" respectively?</code>As they&#8217;re written in the article, you&#8217;re decrypting the original message instead of the cypher text.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MMG		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254303</link>

		<dc:creator><![CDATA[MMG]]></dc:creator>
		<pubDate>Sun, 19 Nov 2023 22:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254303</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254111&quot;&gt;Ed Harmoush&lt;/a&gt;.

How the encryptor or decryptor knows the value of N:

&lt;strong&gt;Encryption (using the public key):&lt;/strong&gt;The value of N is included in the recipient&#039;s public key, which is made public. Anyone who wants to send an encrypted message to the recipient can obtain the public key, including N, and use it to perform encryption.

&lt;strong&gt;﻿Decryption (using the private key):&lt;/strong&gt;The recipient knows the value of N because it is a part of their private key. The private key is kept secret and is only known to the recipient. When someone sends an encrypted message, the recipient uses their private key, which includes N, to decrypt the message.In summary, the knowledge of N is distributed through the public and private key pairs, with N being included in the public key for encryption and in the private key for decryption.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254111">Ed Harmoush</a>.</p>
<p>How the encryptor or decryptor knows the value of N:</p>
<p><strong>Encryption (using the public key):</strong>The value of N is included in the recipient&#8217;s public key, which is made public. Anyone who wants to send an encrypted message to the recipient can obtain the public key, including N, and use it to perform encryption.</p>
<p><strong>﻿Decryption (using the private key):</strong>The recipient knows the value of N because it is a part of their private key. The private key is kept secret and is only known to the recipient. When someone sends an encrypted message, the recipient uses their private key, which includes N, to decrypt the message.In summary, the knowledge of N is distributed through the public and private key pairs, with N being included in the public key for encryption and in the private key for decryption.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254297</link>

		<dc:creator><![CDATA[Daniel]]></dc:creator>
		<pubDate>Mon, 06 Nov 2023 23:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254297</guid>

					<description><![CDATA[There are a few values that would work for the Private Key as well.&#160;But again, for the sake of our example, we will select&#160;&lt;code&gt;&lt;strong&gt;41 &lt;/strong&gt;&lt;/code&gt;

&lt;code&gt;&lt;strong&gt;So there is more private keys to one public key??? &lt;/strong&gt;&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>There are a few values that would work for the Private Key as well.&nbsp;But again, for the sake of our example, we will select&nbsp;<code><strong>41 </strong></code></p>
<p><code><strong>So there is more private keys to one public key??? </strong></code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mustafa		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254225</link>

		<dc:creator><![CDATA[mustafa]]></dc:creator>
		<pubDate>Mon, 17 Apr 2023 22:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254225</guid>

					<description><![CDATA[13 = m^23 mod 55
please help me]]></description>
			<content:encoded><![CDATA[<p>13 = m^23 mod 55<br />
please help me</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ed Harmoush		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254111</link>

		<dc:creator><![CDATA[Ed Harmoush]]></dc:creator>
		<pubDate>Fri, 14 Oct 2022 23:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254111</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254110&quot;&gt;MikeH&lt;/a&gt;.

Glad you enjoyed it. Great question.  When doing RSA, the &quot;Public Key&quot; value is actually &lt;em&gt;both the &quot;E&quot; value and the Modulus&lt;/em&gt;.  More details here:  https://www.youtube.com/watch?v=om9-9BCZr5M]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254110">MikeH</a>.</p>
<p>Glad you enjoyed it. Great question.  When doing RSA, the &#8220;Public Key&#8221; value is actually <em>both the &#8220;E&#8221; value and the Modulus</em>.  More details here:  <a href="https://www.youtube.com/watch?v=om9-9BCZr5M" rel="nofollow ugc">https://www.youtube.com/watch?v=om9-9BCZr5M</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MikeH		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-254110</link>

		<dc:creator><![CDATA[MikeH]]></dc:creator>
		<pubDate>Fri, 14 Oct 2022 03:31:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-254110</guid>

					<description><![CDATA[I love this. this is PRECISELY what I was looking for. &lt;span&gt;sorry for posting on an old post. &lt;/span&gt;

I have one question. In the example, how does the encryptor or decryptor know the value of &quot;N&quot; when they are decrypting or decrypting. 

At the time of encrypting I know:
1) the message
2) and the public Key

which I can:

M^E MOD ( unknown N? ) = cipher text?
99^29 MOD? = 92

This is the last piece of the puzzle for me ( in a long journey to understand how this works! )]]></description>
			<content:encoded><![CDATA[<p>I love this. this is PRECISELY what I was looking for. <span>sorry for posting on an old post. </span></p>
<p>I have one question. In the example, how does the encryptor or decryptor know the value of &#8220;N&#8221; when they are decrypting or decrypting. </p>
<p>At the time of encrypting I know:<br />
1) the message<br />
2) and the public Key</p>
<p>which I can:</p>
<p>M^E MOD ( unknown N? ) = cipher text?<br />
99^29 MOD? = 92</p>
<p>This is the last piece of the puzzle for me ( in a long journey to understand how this works! )</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: waell kateb		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-253962</link>

		<dc:creator><![CDATA[waell kateb]]></dc:creator>
		<pubDate>Tue, 29 Mar 2022 14:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-253962</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-110670&quot;&gt;Indra&lt;/a&gt;.

you should to chinge it to binery]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-110670">Indra</a>.</p>
<p>you should to chinge it to binery</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Leroy van Logchem		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-191179</link>

		<dc:creator><![CDATA[Leroy van Logchem]]></dc:creator>
		<pubDate>Thu, 10 Sep 2020 06:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-191179</guid>

					<description><![CDATA[Thank you for the clear explanation! Bringing it down to small numbers really helped to follow along.]]></description>
			<content:encoded><![CDATA[<p>Thank you for the clear explanation! Bringing it down to small numbers really helped to follow along.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Indra		</title>
		<link>https://www.practicalnetworking.net/series/cryptography/rsa-example/#comment-110670</link>

		<dc:creator><![CDATA[Indra]]></dc:creator>
		<pubDate>Mon, 12 Aug 2019 13:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.practicalnetworking.net/?p=185#comment-110670</guid>

					<description><![CDATA[Using rsa can’t we encrypt any text messege taking text as plain text. If yes then please help me with an example of encrypting any text(take “practicalnetworking” as example) with rsa. Thanking you]]></description>
			<content:encoded><![CDATA[<p>Using rsa can’t we encrypt any text messege taking text as plain text. If yes then please help me with an example of encrypting any text(take “practicalnetworking” as example) with rsa. Thanking you</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
