<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hash on Ricky</title><link>https://linzeyan.github.io/categories/hash/</link><description>Recent content in Hash on Ricky</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Mon, 18 Oct 2021 14:24:01 +0800</lastBuildDate><atom:link href="https://linzeyan.github.io/categories/hash/index.xml" rel="self" type="application/rss+xml"/><item><title>Understand the crypto trio: Encode, Encrypt, and Hash</title><link>https://linzeyan.github.io/posts/2021/20211018-what-are-encoding-encrypt-and-hashing/</link><pubDate>Mon, 18 Oct 2021 14:24:01 +0800</pubDate><guid>https://linzeyan.github.io/posts/2021/20211018-what-are-encoding-encrypt-and-hashing/</guid><description>&lt;ul>
&lt;li>&lt;a href="https://medium.com/starbugs/what-are-encoding-encrypt-and-hashing-4b03d40e7b0c" target="_blank" rel="noopener">Understand the crypto trio: Encode, Encrypt, and Hash&lt;/a>&lt;/li>
&lt;/ul>
&lt;h3 id="encoding">Encoding&lt;/h3>
&lt;blockquote>
&lt;p>It does not change the data and has no encryption effect. It simply represents the data in another form. A classic example is &lt;code>Morse code&lt;/code>.&lt;/p>
&lt;ul>
&lt;li>JavaScript has two useful functions: &lt;code>encodeURI&lt;/code> and &lt;code>decodeURI&lt;/code>, which encode special characters in URLs (spaces, punctuation, etc.) into URL-safe formats.&lt;/li>
&lt;li>&lt;code>Base64&lt;/code> encodes binary data into ASCII characters.&lt;/li>
&lt;li>&lt;code>Huffman Coding&lt;/code> is a lossless compression encoding algorithm. In short, it compresses by abbreviating frequently used symbols.&lt;/li>
&lt;/ul>&lt;/blockquote>
&lt;h3 id="encryption">Encryption&lt;/h3>
&lt;blockquote>
&lt;p>Encryption and decryption require a key. In the simplest Caesar cipher, each letter is shifted by an offset, and that offset is the key for encryption/decryption.&lt;/p></description></item></channel></rss>