惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
博客园_首页
博客园 - 【当耐特】
量子位
S
SegmentFault 最新的问题
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
Y
Y Combinator Blog
博客园 - 聂微东
The Cloudflare Blog
小众软件
小众软件
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
H
Help Net Security
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
宝玉的分享
宝玉的分享

Quarrelsome

Stop Making TUIs The Emacsification of Software Vulnerability Research Is Cooked I Went To SQL Injection Court 14 DNS Nerds Don't Control The Internet 14 DNS Nerds Don't Control The Internet Be Coachable Be Coachable Is Extended Random A Malicious NSA Plot? Is Extended Random A Malicious NSA Plot? Starfighter, Summer 2015 Starfighter, Summer 2015 Checksums, MACs, and Signatures The Hiring Post The Hiring Post Against DNSSEC A Liquid Nitrogen Cocktail Party You Don't Want XTS How To Safely Generate A Random Number Applied Cryptography Engineering
Checksums, MACs, and Signatures
Quarrelsome · 2015-06-23 · via Quarrelsome

A Checksum

Examples: CRC-32, MD5, SHA3.

Use a checksum when you want to protect data from accidental corruption.

Checksums are deterministic and don’t rely on secrets. An adversary who can make guesses about the kinds of data you send can spoof a checksum. So checksums aren’t useful against adversaries. Trying to use them for security is a famous class of cryptographic mistakes; for instance, it’s why we use SSH2 rather than SSH1.

A MAC

Examples: HMAC-SHA2, keyed SHA3, Poly1305, GCM’s GHASH construction.

Use a MAC any time you’re protecting

A Signature

Which do I need?