posts-go/posts/2023-08-23-real-world-crypt...

15 lines
539 B
Markdown
Raw Normal View History

2023-08-23 17:09:04 +00:00
# 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.