Mastering Cryptography with Node's crypto module
summary
Practical walkthrough of Node.js' built-in crypto shows exact APIs and gotchas: listing 171 algorithms available, using AES-256-CBC with random IV and Buffer-based update/final, deriving keys with scrypt/pbkdf2+salt, generating secure randomness via randomBytes/randomInt, and exporting keypairs with generateKeyPair and RSA publicEncrypt/privateDecrypt. Diffie-Hellman key exchange runs but key generation can be slow (createDiffieHellman takes ~20s). All example code is published as runnable unit tests.
AI-written summary · about
chapters (10)
- 0:00Introduction to cryptography
- 3:16Encryption fundamentals
- 8:54Symmetric encryption with AES
- 13:07Key derivation functions
- 14:30Key distribution problem
- 17:19Asymmetric encryption with RSA
- 20:31Message signing and verification
- 22:18Real-world cryptography use case
- 24:04Public key certificates
- 27:36Summary and resources
related talks
36mMastering Cryptography Fundamentals with Node's crypto module
30mMastering Cryptography Fundamentals with Node’s crypto module
58mState of crypto in Node.js
25mCryptography Isn't Scary
26mRequire Cyrpto is a Human Right
23mJS Bringing Crypto to the Masses
42mEverything I always wanted to know about crypto
01h 04m Cryptography For Newcomers - The hitchhiker's guide to cipher in devs
