paragonie/halite
High-level, easy-to-use wrapper around libsodium for secure encryption, decryption, and key management in PHP. Provides modern cryptography primitives with safer APIs, supporting authenticated encryption, password hashing, and secure key storage for applications.
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?