<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>密码学 on Rosist Sallina</title><link>https://rosist-sallina.github.io/tags/%E5%AF%86%E7%A0%81%E5%AD%A6/</link><description>Recent content from Rosist Sallina</description><generator>Hugo</generator><language>zh-cn</language><managingEditor>sallinarosist@gmail.com (Rosist Sallina)</managingEditor><webMaster>sallinarosist@gmail.com (Rosist Sallina)</webMaster><copyright>本博客所有文章除特别声明外，均采用 BY-NC-SA 许可协议。转载请注明出处！</copyright><lastBuildDate>Mon, 23 Dec 2024 00:00:00 +0800</lastBuildDate><atom:link href="https://rosist-sallina.github.io/tags/%E5%AF%86%E7%A0%81%E5%AD%A6/index.xml" rel="self" type="application/rss+xml"/><item><title>认证相关</title><link>https://rosist-sallina.github.io/post/hash/</link><pubDate>Mon, 23 Dec 2024 00:00:00 +0800</pubDate><author>sallinarosist@gmail.com (Rosist Sallina)</author><guid>https://rosist-sallina.github.io/post/hash/</guid><description>
<![CDATA[<h1>认证相关</h1><p>作者：Rosist Sallina（sallinarosist@gmail.com）</p>
        
          <h1 id="认证">
<a class="header-anchor" href="#%e8%ae%a4%e8%af%81"></a>
认证
</h1><h2 id="hash与mac">
<a class="header-anchor" href="#hash%e4%b8%8emac"></a>
Hash与MAC
</h2><h3 id="hash">
<a class="header-anchor" href="#hash"></a>
Hash
</h3><ul>
<li>
<p>Hash函数是一种单向函数，在可承受时间内无法逆向破解。</p>
</li>
<li>
<p>Hash函数只用来做摘要，来验证数据的完整性。</p>
</li>
</ul>
<h3 id="mac">
<a class="header-anchor" href="#mac"></a>
MAC
</h3><p>MAC主要分为两种，CMAC(基于块密码)和HMAC(基于Hash函数)。</p>
        
        <hr><p>本文2024-12-23首发于<a href='https://rosist-sallina.github.io/'>Rosist Sallina</a>，最后修改于2024-12-23</p>]]></description><category>学习笔记</category></item><item><title>S-DES</title><link>https://rosist-sallina.github.io/post/s-des/</link><pubDate>Mon, 23 Dec 2024 00:00:00 +0800</pubDate><author>sallinarosist@gmail.com (Rosist Sallina)</author><guid>https://rosist-sallina.github.io/post/s-des/</guid><description>
<![CDATA[<h1>S-DES</h1><p>作者：Rosist Sallina（sallinarosist@gmail.com）</p>
        
          <h1 id="s-des">
<a class="header-anchor" href="#s-des"></a>
S-DES
</h1><h2 id="简介">
<a class="header-anchor" href="#%e7%ae%80%e4%bb%8b"></a>
简介
</h2><p>S-DES是一种简化版本的DES，用于教学目的。其通过置换、代换、密钥生成和简单的加密轮实现基本加密逻辑。</p>
<p><img src="https://www.helloimg.com/i/2024/12/23/6769282e68478.jpg" alt=""></p>
<h2 id="实现逻辑">
<a class="header-anchor" href="#%e5%ae%9e%e7%8e%b0%e9%80%bb%e8%be%91"></a>
实现逻辑
</h2><h3 id="1密钥生成">
<a class="header-anchor" href="#1%e5%af%86%e9%92%a5%e7%94%9f%e6%88%90"></a>
1.密钥生成
</h3><ul>
<li>
<p>首先生成一个10位初始秘钥，分为左右两部分，各5位</p>
        
        <hr><p>本文2024-12-23首发于<a href='https://rosist-sallina.github.io/'>Rosist Sallina</a>，最后修改于2024-12-23</p>]]></description><category>学习笔记</category></item></channel></rss>