paragonie/halite
Halite is a high-level PHP cryptography library from Paragon Initiative Enterprises, built on libsodium. It provides safer, opinionated APIs for encryption, authentication, key management, and password hashing, helping you use modern crypto correctly with minimal foot-guns.
Adopt if:
mcrypt, custom RSA implementations) or OpenSSL for modern, side-channel-resistant algorithms (e.g., Argon2, X25519).Look elsewhere if:
php-hsm or AWS KMS SDK.tink (Google’s crypto library).PQClean.sodium_compat or native extensions.For Executives: *"Halite lets us bake military-grade encryption into our core product—without hiring cryptographers or paying for proprietary tools. It’s the difference between ‘our data is probably safe’ and ‘our data is proven secure by the NSA’s standards.’ For example:
For Engineering:
*"Halite is a drop-in replacement for PHP’s openssl or hash functions, but with:
password_hash() with Halite::password() and openssl_encrypt() with Halite::encrypt() in our auth module. I’ll provide a migration guide."*How can I help you explore Laravel packages today?