feat: real world crypto

main
sudo pacman -Syu 2023-08-24 00:09:04 +07:00
parent 89c54f85bf
commit 5b09909099
4 changed files with 100 additions and 0 deletions

View File

@ -380,6 +380,9 @@
<li><a href="https://github.com/foostan/crkbd">Corne keyboard</a></li> <li><a href="https://github.com/foostan/crkbd">Corne keyboard</a></li>
<li><a href="https://github.com/kata0510/Lily58">Lily58</a></li> <li><a href="https://github.com/kata0510/Lily58">Lily58</a></li>
<li><a href="https://github.com/h40io/Amano">Amano</a></li> <li><a href="https://github.com/h40io/Amano">Amano</a></li>
<li>
<a href="https://github.com/hazels-garage/cut-slope">Cut Slope</a>
</li>
</ul> </ul>
<h2> <h2>
<a <a
@ -727,6 +730,13 @@
>Red Samurai</a >Red Samurai</a
> >
</li> </li>
<li>
<a
href="https://matrixzj.github.io/docs/gmk-keycaps/Lavender/"
rel="nofollow"
>Lavender</a
>
</li>
</ul> </ul>
<h2> <h2>
<a <a

View File

@ -0,0 +1,74 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown.min.css"
/>
<title>haunt98 posts</title>
</head>
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body {
padding: 15px;
}
}
</style>
<body class="markdown-body">
<h2>
<a href="index.html"><code>~</code></a>
</h2>
<h1>
<a
id="user-content-real-world-crypto-101"
class="anchor"
aria-hidden="true"
href="#real-world-crypto-101"
><span aria-hidden="true" class="octicon octicon-link"></span></a
>Real World Crypto 101
</h1>
<p>
My notes when reading
<a
href="https://www.manning.com/books/real-world-cryptography"
rel="nofollow"
>Real-World Cryptography</a
>
</p>
<p><strong>Hash</strong> function convert from input to digest:</p>
<ul>
<li>Pre-image resistance: Given digest, can not find input</li>
<li>
Second pre-image resistance: Given input, digest, can not find another
input produce same digest. Small change to input make digest big change.
</li>
<li>Collision resistance: Can not find 2 input produce same digest.</li>
</ul>
<p>
<strong>MAC</strong> aka Message Authentication Code produce from key,
message to authentication tag.
</p>
<div>
Feel free to ask me via
<a href="mailto:hauvipapro+posts@gmail.com">email</a> or
<a rel="me" href="https://hachyderm.io/@haunguyen">Mastodon</a>.
<br />Source code is available on
<a href="https://github.com/haunt98/posts-go">GitHub</a>
<a href="https://codeberg.org/yoshie/posts-go">Codeberg</a>
<a href="https://git.sr.ht/~youngyoshie/posts-go">sourcehut</a>
<a href="https://gitea.treehouse.systems/yoshie/posts-go">Treehouse</a>
<a href="https://gitlab.com/youngyoshie/posts-go">GitLab</a>
</div>
</body>
</html>

View File

@ -106,6 +106,7 @@ Ergo:
- [Corne keyboard](https://github.com/foostan/crkbd) - [Corne keyboard](https://github.com/foostan/crkbd)
- [Lily58](https://github.com/kata0510/Lily58) - [Lily58](https://github.com/kata0510/Lily58)
- [Amano](https://github.com/h40io/Amano) - [Amano](https://github.com/h40io/Amano)
- [Cut Slope](https://github.com/hazels-garage/cut-slope)
## Switch ## Switch
@ -206,6 +207,7 @@ Be careful:
- [Space Cadet](https://matrixzj.github.io/docs/gmk-keycaps/Space-Cadet-R2/) - [Space Cadet](https://matrixzj.github.io/docs/gmk-keycaps/Space-Cadet-R2/)
- [Blue Samurai](https://matrixzj.github.io/docs/gmk-keycaps/Blue-Samurai/) - [Blue Samurai](https://matrixzj.github.io/docs/gmk-keycaps/Blue-Samurai/)
- [Red Samurai](https://matrixzj.github.io/docs/gmk-keycaps/Red-Samurai-R2/) - [Red Samurai](https://matrixzj.github.io/docs/gmk-keycaps/Red-Samurai-R2/)
- [Lavender](https://matrixzj.github.io/docs/gmk-keycaps/Lavender/)
## Thanks ## Thanks

View File

@ -0,0 +1,14 @@
# Real World Crypto 101
My notes when reading
[Real-World Cryptography](https://www.manning.com/books/real-world-cryptography)
**Hash** function convert from input to digest:
- Pre-image resistance: Given digest, can not find input
- Second pre-image resistance: Given input, digest, can not find another input
produce same digest. Small change to input make digest big change.
- Collision resistance: Can not find 2 input produce same digest.
**MAC** aka Message Authentication Code produce from key, message to
authentication tag.