<?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 an's security blog</title><link>https://panman4040.github.io/tags/cryptohack/</link><description>Recent content in CryptoHack on an's security blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 04 May 2026 21:12:44 +0800</lastBuildDate><atom:link href="https://panman4040.github.io/tags/cryptohack/index.xml" rel="self" type="application/rss+xml"/><item><title>Modular Arithmetic</title><link>https://panman4040.github.io/training/cryptohack/modular_arithmetic/</link><pubDate>Mon, 04 May 2026 11:58:16 +0800</pubDate><guid>https://panman4040.github.io/training/cryptohack/modular_arithmetic/</guid><description>&lt;h1 id="modular-arithmetic">Modular Arithmetic&lt;/h1>
&lt;p>This module (no pun intended) introduces modular arithmetic, which is a critical mathematical edge for cryptography. Here are my important remarks:&lt;/p>
&lt;h2 id="euclidean-algorithm">Euclidean Algorithm&lt;/h2>
&lt;p>This is a very famous algorithm designed to calculate the GCD of two integers. I initially struggled trying to understand the intuition, but the following analogy helps:&lt;/p>
&lt;p>You are a carpenter. You have two wooden planks of different lengths, say Plank A is 105 inches long, Plank B 24. Our goal is to find a &amp;ldquo;ruler&amp;rdquo; that measures perfectly both plank from end-to-end.&lt;/p></description></item><item><title>CryptoHack</title><link>https://panman4040.github.io/training/cryptohack/</link><pubDate>Mon, 04 May 2026 07:23:16 +0700</pubDate><guid>https://panman4040.github.io/training/cryptohack/</guid><description/></item><item><title>Introduction to CryptoHack</title><link>https://panman4040.github.io/training/cryptohack/introduction_to_cryptohack/</link><pubDate>Mon, 27 Apr 2026 07:23:16 +0700</pubDate><guid>https://panman4040.github.io/training/cryptohack/introduction_to_cryptohack/</guid><description>&lt;h1 id="introduction-to-cryptohack">Introduction to CryptoHack&lt;/h1>
&lt;p>Since this is an introduction, these are pretty straightforward stuffs. But there are a few notes to consider:&lt;/p>
&lt;h2 id="base64">Base64&lt;/h2>
&lt;p>This allows us to represent binary data as an ASCII string using an alphabet of 64 characters. One character of a Base64 string encodes 6 binary digits (bits), and so 4 characters of Base64 encode three 8-bit bytes.&lt;/p>
&lt;p>There is also padding introduced when the number of bits is not divisible by 6. Read more here: &lt;a href="https://en.wikipedia.org/wiki/Base64#Examples">https://en.wikipedia.org/wiki/Base64#Examples&lt;/a>&lt;/p></description></item></channel></rss>