<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>CryptoHack on LUN's secret</title><link>https://lunuyennhi-dev.github.io/tags/cryptohack/</link><description>Recent content from LUN's secret</description><generator>Hugo</generator><language>en</language><managingEditor>lunuyennhi.qna@gmai.com (LUN)</managingEditor><webMaster>lunuyennhi.qna@gmai.com (LUN)</webMaster><copyright>All articles on this blog are licensed under the BY-NC-SA license agreement unless otherwise stated. Please indicate the source when reprinting!</copyright><lastBuildDate>Fri, 13 Nov 2026 16:58:17 +0000</lastBuildDate><atom:link href="https://lunuyennhi-dev.github.io/tags/cryptohack/index.xml" rel="self" type="application/rss+xml"/><item><title>Mathematics</title><link>https://lunuyennhi-dev.github.io/post/mathematics/</link><pubDate>Fri, 23 Oct 2026 23:14:00 +0000</pubDate><author>lunuyennhi.qna@gmai.com (LUN)</author><guid>https://lunuyennhi-dev.github.io/post/mathematics/</guid><description>
<![CDATA[<h1>Mathematics</h1><p>Author: LUN(lunuyennhi.qna@gmai.com)</p>
        
          <p><img src="/images/covers/0ebed99429f6ddb8d5398d27088112a1.jpg" alt="CryptoHack">
Link: <a href="https://cryptohack.org/challenges/maths/">https://cryptohack.org/challenges/maths/</a></p>
<h2 id="quadratic-residues">
<a class="header-anchor" href="#quadratic-residues"></a>
Quadratic Residues
</h2><h3 id="1-đề-bài">
<a class="header-anchor" href="#1-%c4%91%e1%bb%81-b%c3%a0i"></a>
1. Đề bài
</h3><p><img src="/images/post/mathematics/image-1793294028640.png" alt="">
<img src="/images/post/mathematics/image-1793294040464.png" alt=""></p>
<h3 id="2-kiến-thức-toán-học">
<a class="header-anchor" href="#2-ki%e1%ba%bfn-th%e1%bb%a9c-to%c3%a1n-h%e1%bb%8dc"></a>
2. Kiến thức toán học
</h3><p>We say that an integer $x$ is a Quadratic Residue if there exists an $a$ such that $x^2 ≡ a ( \bmod n )$. If there is no such solution, then the integer is a Quadratic Non-Residue.</p>
<p>In other words, $x$ is a quadratic residue when it is possible to take the square root of $x$ modulo an integer $p$.</p>
        
        <hr><p>Published on 2026-10-23 at <a href='https://lunuyennhi-dev.github.io/'>LUN's secret</a>, last modified on 2026-11-13</p>]]></description><category>Learning</category></item><item><title>Symmetric Ciphers</title><link>https://lunuyennhi-dev.github.io/post/symmetric-ciphers/</link><pubDate>Wed, 21 Oct 2026 00:00:00 +0000</pubDate><author>lunuyennhi.qna@gmai.com (LUN)</author><guid>https://lunuyennhi-dev.github.io/post/symmetric-ciphers/</guid><description>
<![CDATA[<h1>Symmetric Ciphers</h1><p>Author: LUN(lunuyennhi.qna@gmai.com)</p>
        
          <p><img src="/images/covers/cryptohack.webp" alt="CryptoHack"></p>
<h2 id="how-aes-works">
<a class="header-anchor" href="#how-aes-works"></a>
How AES Works
</h2><h3 id="bringing-it-all-together">
<a class="header-anchor" href="#bringing-it-all-together"></a>
Bringing It All Together
</h3><h4 id="1-đề-bài">
<a class="header-anchor" href="#1-%c4%91%e1%bb%81-b%c3%a0i"></a>
1. Đề bài
</h4><p><img src="/images/post/cryptohack/image-1792546459907.png" alt="Structure2">
We&rsquo;ve provided the key expansion code, and ciphertext that&rsquo;s been properly encrypted by AES-128. Copy in all the building blocks you&rsquo;ve coded so far, and complete the decrypt function that implements the steps shown in the diagram. The decrypted plaintext is the flag.</p>
<h4 id="2-phân-tích">
<a class="header-anchor" href="#2-ph%c3%a2n-t%c3%adch"></a>
2. Phân tích
</h4><p>Bài này yêu cầu ta xây dựng 1 cấu trúc giải mã AES-128 ($N_{rounds} = 10$) từ các kiến thức đã học được từ các bài trước.<br>
Cụ thể ta cần giải mã ngược dựa theo cấu trúc mã hóa:</p>
        
        <hr><p>Published on 2026-10-21 at <a href='https://lunuyennhi-dev.github.io/'>LUN's secret</a>, last modified on 2026-11-04</p>]]></description><category>Learning</category></item></channel></rss>