The Sodium crypto library of PHP 7.2
summary
Sodium lands as a PHP 7.2 core extension and exposes about 85 functions that wrap libsodium C primitives. Examples show authenticated encryption (crypto_secretbox) with 256‑bit keys and nonces, public‑key crypto (crypto_box) and 64‑byte signatures for non‑repudiation, Argon2 password hashing and KDFs (deriving 32‑byte keys from passwords; sodium output ~1967 bytes) and memory utilities like sodium_memzero and constant‑time compare to mitigate timing and side‑channel attacks.
AI-written summary · about
chapters (9)
- 0:00Intro
- 2:00Cryptography
- 13:33Eelliptic curve
- 19:13Encryption
- 22:56Authentication
- 24:11Public encryption
- 27:38Digital signature
- 30:03AES
- 36:36Key derivation








