End-to-end Cryptography, Pitfalls, Failure Modes, & Finding Success
summary
Claims that naive crypto is the usual failure mode and that better, opinionated libraries fix it: many apps wrongly use AES ECB or password.getBytes for keys, StackOverflow examples proliferate insecure code, and buggy RNGs have led to real losses while one Java AES library reaches tens of millions of users. Recommended fixes: use platform keystores, HSM/KMS, libs like libsodium or the end-to-end encrypted database SDK that generate keys, encrypt JSON, and handle key sharing so developers avoid low-level mistakes.
AI-written summary · about
chapters (35)
- 0:00Intro
- 0:533 billion Yahoo accounts were encrypted. Security professionals are confident your data is safe.
- 1:17Why Does Crypto Matter for Blockchain
- 2:04Why Encrypt
- 3:51There's a good chance you use our crypto
- 4:22Takeaways
- 5:35What you'll get from this talk
- 6:15How Programmers Approach Encryption
- 7:11byte encrypt byte plaintext
- 7:44Negative Example 1: Encrypting Strings in Java
- 9:33Bad code looks completely reasonable
- 11:31Concept: The abstraction stack of building crypto
- 12:32Mistakes creep into the gaps between layers
- 13:01Blockchain closes this conceptual gap
- 13:46Mistake 2
- 15:41Key Generation and Management
- 17:26Mistake 4
- 17:47AES Modes - ECB vs CBC (Encrypt)
- 19:35AES Modes: ECB loses confidentiality
- 20:38Integrity: ECB and CBC don't provide it
- 21:30Negative Example 2: Client-Side Certs in Curl
- 22:25Top hit disables server verification!
- 24:30PHP Docs for Curl
- 27:34Positive Example 1: Our Java AES Library
- 27:55What Java Provides the problem
- 29:19How does this Bridge the Gap
- 29:53Positive Example 2: Signal Protocol
- 30:08End-to-end Crypto in Brief
- 30:25Signal: An end-to-end secure chat protocol
- 32:20Hub-and-Spoke, not point-to-point
- 33:38Primitives: Operate on JSON Data
- 34:04Encrypt data without writing crypto code
- 34:22Encrypt Data Easily - Ruby example
- 34:44Decrypt Data Transparently
- 35:34For the rest of us
