How NOT to use Cryptography in your code
summary
Recommends concrete defaults: symmetric keys use 256 bits and AES-256-GCM with an authentication tag and a fresh random IV per message; generate IVs and keys from Python’s secrets module not random; avoid ECB, use authenticated modes. Use modern hashes (SHA-2 family, e.g. SHA-384) for signatures, prefer vetted, certified libraries rather than homegrown code, validate certificates and run TLS 1.3 (or at least 1.2), never hardcode keys, rotate and protect secrets with key management tools.
AI-written summary · about
chapters (11)
- 0:00Introduction to crypto mistakes
- 2:41Basic building blocks in crypto
- 5:56Common encryption modes mistakes
- 8:29Randomness and secrets library
- 10:15Digital signatures pitfalls
- 12:49Certificate authority importance
- 14:51TLS versions and security
- 15:35Hash functions vulnerabilities
- 17:00Avoid implementing crypto yourself
- 18:05Securing cryptographic keys
- 19:27Q&A and summary
