﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>数据加密技术 &#8211; 学术创新中心</title>
	<atom:link href="https://www.leexinghai.com/aic/category/gdgm/21221/det/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.leexinghai.com/aic</link>
	<description>Academic Innovation Center</description>
	<lastBuildDate>Sat, 20 Nov 2021 07:57:19 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.leexinghai.com/aic/wp-content/uploads/2025/08/cropped-徽标名称-32x32.jpg</url>
	<title>数据加密技术 &#8211; 学术创新中心</title>
	<link>https://www.leexinghai.com/aic</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>H11116-第四章课后习题</title>
		<link>https://www.leexinghai.com/aic/h11116-%e7%ac%ac%e5%9b%9b%e7%ab%a0%e8%af%be%e5%90%8e%e4%b9%a0%e9%a2%98/</link>
					<comments>https://www.leexinghai.com/aic/h11116-%e7%ac%ac%e5%9b%9b%e7%ab%a0%e8%af%be%e5%90%8e%e4%b9%a0%e9%a2%98/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Sat, 20 Nov 2021 07:57:18 +0000</pubDate>
				<category><![CDATA[2021-2022-1课程资源分享]]></category>
		<category><![CDATA[数据加密技术]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=620</guid>

					<description><![CDATA[第4章 4.用推广的Euclid算法求67mod119的逆元 解：由已知得：a=119,b=67 计算得其最大 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>第4章</p>



<p><strong>4.用推广的Euclid算法求67mod119的逆元</strong></p>



<p>解：由已知得：a=119,b=67</p>



<p>计算得其最大公因数为1.（见图1）</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="151" height="43" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-65.png" alt="" class="wp-image-621"/><figcaption>图1</figcaption></figure></div>



<p>即存在一个X（X&lt;a），使得</p>



<p>67X≡1mod119</p>



<p>有X≡67<sup>-1</sup>mod119</p>



<p>使用推广的欧几里得算法，有Excel公式见图2，结果见图3</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img decoding="async" width="554" height="81" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-66.png" alt="" class="wp-image-622" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-66.png 554w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-66-300x44.png 300w" sizes="(max-width: 554px) 100vw, 554px" /><figcaption>图2</figcaption></figure></div>



<div class="wp-block-image"><figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="505" height="148" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-67.png" alt="" class="wp-image-623" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-67.png 505w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-67-300x88.png 300w" sizes="(max-width: 505px) 100vw, 505px" /><figcaption>图3</figcaption></figure></div>



<p></p>



<p>由图3得67mod119的逆元为16.</p>



<p><strong>8.求25的所有本原根</strong></p>



<p>解：</p>



<p>由已知得：n=25</p>



<p>有</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="399" height="68" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-69.png" alt="" class="wp-image-625" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-69.png 399w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-69-300x51.png 300w" sizes="auto, (max-width: 399px) 100vw, 399px" /></figure>



<p>考虑2在mod9下的幂,py计算如图4所示。</p>



<div class="wp-block-image"><figure class="aligncenter size-full is-resized"><img loading="lazy" decoding="async" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-68.png" alt="" class="wp-image-624" width="242" height="328" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-68.png 242w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-68-221x300.png 221w" sizes="auto, (max-width: 242px) 100vw, 242px" /><figcaption>图4</figcaption></figure></div>



<p>整理得表1</p>



<figure class="wp-block-table"><table><tbody><tr><td>底</td><td>幂</td><td>  mod25≡</td><td> 结果</td></tr><tr><td>2</td><td>1</td><td></td><td>2</td></tr><tr><td>2</td><td>2</td><td></td><td>4</td></tr><tr><td>2</td><td>3</td><td></td><td>8</td></tr><tr><td>2</td><td>4</td><td></td><td>16</td></tr><tr><td>2</td><td>5</td><td></td><td>7</td></tr><tr><td>2</td><td>6</td><td></td><td>14</td></tr><tr><td>2</td><td>7</td><td></td><td>3</td></tr><tr><td>2</td><td>8</td><td></td><td>6</td></tr><tr><td>2</td><td>9</td><td></td><td>12</td></tr><tr><td>2</td><td>10</td><td></td><td>24</td></tr><tr><td>2</td><td>11</td><td></td><td>23</td></tr><tr><td>2</td><td>12</td><td></td><td>21</td></tr><tr><td>2</td><td>13</td><td></td><td>17</td></tr><tr><td>2</td><td>14</td><td></td><td>9</td></tr><tr><td>2</td><td>15</td><td></td><td>18</td></tr><tr><td>2</td><td>16</td><td></td><td>11</td></tr><tr><td>2</td><td>17</td><td></td><td>22</td></tr><tr><td>2</td><td>18</td><td></td><td>19</td></tr><tr><td>2</td><td>19</td><td></td><td>13</td></tr><tr><td>2</td><td>20</td><td></td><td>1</td></tr></tbody></table><figcaption>表1</figcaption></figure>



<p>有ord<sub>25</sub>(2)=y（25），可知2是25的本原根。</p>



<p>将结果中的质数排序，有【1，3，7，9，11，13，17，19】使用py求模数，得图5</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="259" height="169" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-71.png" alt="" class="wp-image-627"/><figcaption>图5</figcaption></figure></div>



<p>将图5结果整理，得表2</p>



<figure class="wp-block-table"><table><tbody><tr><td>底</td><td>幂</td><td>    mod25≡</td><td> 结果</td></tr><tr><td>2</td><td>1</td><td></td><td>2</td></tr><tr><td>2</td><td>3</td><td></td><td>8</td></tr><tr><td>2</td><td>7</td><td></td><td>3</td></tr><tr><td>2</td><td>9</td><td></td><td>12</td></tr><tr><td>2</td><td>11</td><td></td><td>23</td></tr><tr><td>2</td><td>13</td><td></td><td>17</td></tr><tr><td>2</td><td>17</td><td></td><td>22</td></tr><tr><td>2</td><td>19</td><td></td><td>23</td></tr></tbody></table><figcaption>表2</figcaption></figure>



<p>将结果排序，有【2，3，8，12，13，17，22，23】，即为25的本原根</p>



<p></p>



<p><strong>10.设通信双方使用RSA加密体制，接收方的公开钥是（e,n）=(5,35),接收到的密文是C=10，求明文M。</strong></p>



<p>解：</p>



<p>由已知得：e=5，n=35，C=10</p>



<p>使用rsa加密算法有C≡m<sup>e</sup>modn</p>



<p>将已知条件代入公式有：</p>



<p>10=m<sup>5</sup>mod35</p>



<p>使用py计算：得图6</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="364" height="303" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-70.png" alt="" class="wp-image-626" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-70.png 364w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-70-300x250.png 300w" sizes="auto, (max-width: 364px) 100vw, 364px" /><figcaption>图6</figcaption></figure></div>



<p>故明文M=5。</p>



<p><strong>18.椭圆曲线E<sub>11</sub>（1，6）表示y2≡x3+x+6mod11,求其上的所有点。</strong></p>



<p>计算有图7</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="554" height="497" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-72.png" alt="" class="wp-image-628" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-72.png 554w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-72-300x269.png 300w" sizes="auto, (max-width: 554px) 100vw, 554px" /><figcaption>图7</figcaption></figure>



<p>所以E<sub>11</sub>（1，6）上的所有点为（2，4）（2，7）（3，5）（3，6）（5，2）（5，9）（7，2）（7，9）（8，3）（8，8）（10，2）（10，9），O</p>



<p></p>



<p><strong>20.利用椭圆曲线实现ELGamal密码体制，设椭圆曲线是E11（1，6），生成元G=（2，7），接收方A的秘密钥nA=7.</strong></p>



<p>(1)求A的公开钥PA。</p>



<p>解：A的公开钥：PA=nAG=7G=2*2G+3G=(10,2)+(8,3)=(7,2)</p>



<p>（2）发送方B与发送消息Pm=（10，9），选择随机数k=3，求密文Cm。</p>



<p>C<sub>1</sub>=kG=3G=(8,3)</p>



<p>C<sub>2</sub>=P<sub>m</sub>+kP<sub>A</sub>=(10,9)+3(7,2)=(10,2)</p>



<p>C<sub>m</sub>={(8,3),(10,2)}</p>



<p>（3）显示接收方A从密文Cm恢复消息Pm的过程</p>



<p>P<sub>m</sub>=C<sub>2</sub>-n<sub>A</sub>C<sub>1</sub>=P<sub>m</sub>+kP<sub>A</sub>-n<sub>A</sub>kG=(10,2)-7(8,3)=(10,9)</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h11116-%e7%ac%ac%e5%9b%9b%e7%ab%a0%e8%af%be%e5%90%8e%e4%b9%a0%e9%a2%98/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H11118-用编程实现RSA加密算法</title>
		<link>https://www.leexinghai.com/aic/h11118-%e7%94%a8%e7%bc%96%e7%a8%8b%e5%ae%9e%e7%8e%b0rsa%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95/</link>
					<comments>https://www.leexinghai.com/aic/h11118-%e7%94%a8%e7%bc%96%e7%a8%8b%e5%ae%9e%e7%8e%b0rsa%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Thu, 18 Nov 2021 12:33:56 +0000</pubDate>
				<category><![CDATA[2021-2022-1课程资源分享]]></category>
		<category><![CDATA[数据加密技术]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=615</guid>

					<description><![CDATA[程序代码（Python实现）： 运行结果： 附件：]]></description>
										<content:encoded><![CDATA[
<p>程序代码（Python实现）：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="554" height="644" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-63.png" alt="" class="wp-image-616" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-63.png 554w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-63-258x300.png 258w" sizes="auto, (max-width: 554px) 100vw, 554px" /><figcaption>图1</figcaption></figure>



<p>运行结果：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="411" height="212" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-64.png" alt="" class="wp-image-617" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-64.png 411w, https://www.leexinghai.com/aic/wp-content/uploads/2021/11/image-64-300x155.png 300w" sizes="auto, (max-width: 411px) 100vw, 411px" /><figcaption>图2</figcaption></figure>



<p>附件：</p>



<div class="wp-block-file"><a href="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/rsa.7z">rsa</a><a href="https://www.leexinghai.com/aic/wp-content/uploads/2021/11/rsa.7z" class="wp-block-file__button" download>下载</a></div>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h11118-%e7%94%a8%e7%bc%96%e7%a8%8b%e5%ae%9e%e7%8e%b0rsa%e5%8a%a0%e5%af%86%e7%ae%97%e6%b3%95/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H11020-30页练习题</title>
		<link>https://www.leexinghai.com/aic/h11020-30%e9%a1%b5%e7%bb%83%e4%b9%a0%e9%a2%98/</link>
					<comments>https://www.leexinghai.com/aic/h11020-30%e9%a1%b5%e7%bb%83%e4%b9%a0%e9%a2%98/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Sat, 23 Oct 2021 06:54:49 +0000</pubDate>
				<category><![CDATA[2021-2022-1课程资源分享]]></category>
		<category><![CDATA[数据加密技术]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=422</guid>

					<description><![CDATA[第30页习题1.3 题目1： f(a1,a2,a3)= a1⊕C2, a2⊕C1,a3 当C1=0，C2=0时 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">第30页习题1.3</h2>



<h2 class="wp-block-heading">题目1：</h2>



<p>f(a<sub>1</sub>,a<sub>2</sub>,a<sub>3</sub>)= a<sub>1</sub>⊕C<sub>2</sub>, a<sub>2</sub>⊕C<sub>1</sub>,a<sub>3</sub></p>



<p>当C<sub>1</sub>=0，C<sub>2</sub>=0时，有f(a<sub>1</sub>,a<sub>2</sub>,a<sub>3</sub>)= a<sub>1</sub></p>



<p>a<sub>3</sub> &nbsp;a<sub>2</sub> &nbsp;a<sub>1</sub>&nbsp; a<sub>1</sub></p>



<ol class="wp-block-list" type="1"><li>0&nbsp; 1&nbsp; 1</li><li>1&nbsp; 0&nbsp; 0</li><li>1&nbsp; 1&nbsp; 1</li><li>0&nbsp; 1&nbsp; 1</li></ol>



<p>有r=3.</p>



<p>当C<sub>1</sub>=0，C<sub>2</sub>=1时，有f(a<sub>1</sub>,a<sub>2</sub>,a<sub>3</sub>)= a<sub>1</sub>⊕a<sub>2</sub><sub></sub></p>



<p>a<sub>3</sub> &nbsp;a<sub>2</sub> a<sub>1</sub>&nbsp; a<sub>1</sub></p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>1&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 1&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 1&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>1&nbsp; 0&nbsp; 0&nbsp; 0</p>



<p>0&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>有r=7.</p>



<p>当C<sub>1</sub>=1，C<sub>2</sub>=0时，有f(a<sub>1</sub>,a<sub>2</sub>,a<sub>3</sub>)= a<sub>1</sub>⊕a<sub>3</sub></p>



<p>a<sub>3</sub>&nbsp; a<sub>2</sub> a<sub>1</sub>&nbsp; a<sub>1</sub></p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>0&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>1&nbsp; 0&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 1&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 1&nbsp; 1&nbsp; 1</p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>有r=7.</p>



<p>当C<sub>1</sub>=1，C<sub>2</sub>=1时，有f(a<sub>1</sub>,a<sub>2</sub>,a<sub>3</sub>)= a<sub>1</sub>⊕a<sub>2</sub>⊕a<sub>3</sub></p>



<p>a<sub>3</sub>&nbsp; a<sub>2</sub> a<sub>1</sub>&nbsp; a<sub>1</sub></p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 0&nbsp; 1&nbsp; 1</p>



<p>0&nbsp; 1&nbsp; 0&nbsp; 0</p>



<p>1&nbsp; 0&nbsp; 0&nbsp; 0</p>



<p>有r=2.</p>



<h2 class="wp-block-heading">题目4</h2>



<p>答：没有可能为1 ，因为根据题意求得输出序列周期为2，即01010……，且m+2=0，因此当m+3时值不为1.</p>



<h2 class="wp-block-heading">题目6</h2>



<p>答：由已知得：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="602" height="248" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-62.png" alt="" class="wp-image-424" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-62.png 602w, https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-62-300x124.png 300w" sizes="auto, (max-width: 602px) 100vw, 602px" /></figure>



<p>即有a<sub>i+3</sub>=C<sub>3</sub>a<sub>i</sub>⊕C<sub>1</sub>a<sub>i+2</sub>=a<sub>1</sub>⊕a<sub>i+2</sub></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h11020-30%e9%a1%b5%e7%bb%83%e4%b9%a0%e9%a2%98/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>H10915-仿射变换加密作业</title>
		<link>https://www.leexinghai.com/aic/h10915-%e4%bb%bf%e5%b0%84%e5%8f%98%e6%8d%a2%e5%8a%a0%e5%af%86%e4%bd%9c%e4%b8%9a/</link>
					<comments>https://www.leexinghai.com/aic/h10915-%e4%bb%bf%e5%b0%84%e5%8f%98%e6%8d%a2%e5%8a%a0%e5%af%86%e4%bd%9c%e4%b8%9a/#respond</comments>
		
		<dc:creator><![CDATA[李星海]]></dc:creator>
		<pubDate>Sat, 23 Oct 2021 06:51:27 +0000</pubDate>
				<category><![CDATA[2021-2022-1课程资源分享]]></category>
		<category><![CDATA[数据加密技术]]></category>
		<guid isPermaLink="false">https://aic.leexinghai.com/?p=418</guid>

					<description><![CDATA[设仿射变换的加密是： 对铭文 THE NATIONAL SECURITY AGENCY加密，并使用解密变换 验 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>设仿射变换的加密是：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="294" height="34" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-59.png" alt="" class="wp-image-419"/></figure>



<p>对铭文 THE NATIONAL SECURITY AGENCY加密，并使用解密变换<em><br></em> </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="321" height="27" src="https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-60.png" alt="" class="wp-image-420" srcset="https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-60.png 321w, https://www.leexinghai.com/aic/wp-content/uploads/2021/10/image-60-300x25.png 300w" sizes="auto, (max-width: 321px) 100vw, 321px" /></figure>



<p>验证你的加密结果。</p>



<p>解：</p>



<p>已知密钥A=11，B=23，根据表1-2，构造算法：<br>11*X+23(mod 26)</p>



<p>根据表1-2.转换为十进制数字。为</p>



<p>19,7,4,13,0,19,8,14,13,0,11,18,4,2,20,17,8,19,24,0,6,4,13,2,24</p>



<p>使用python进行计算：</p>



<p>有24,22,15,10,23,24,7,21,10,23,14,13,15,19,9,2,7,24,1,23,11,15,10,19,1</p>



<p>转换成英文字母，为：</p>



<p>YWP KXYHVKXO NPTJCHYB XLPKTB</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.leexinghai.com/aic/h10915-%e4%bb%bf%e5%b0%84%e5%8f%98%e6%8d%a2%e5%8a%a0%e5%af%86%e4%bd%9c%e4%b8%9a/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
