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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Jina AI
Jina AI
The Cloudflare Blog
V
Visual Studio Blog
博客园_首页
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
博客园 - Franky

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?