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.
Halite::isLibsodiumSetupCorrectly() to verify the
latter two)Key object to
most methods; you must pass the appropriate child class (i.e.
Symmetric\Crypto::encrypt() expects an instance of
Symmetric\Crypto\EncryptionKey.File now uses a keyed BLAKE2b hash instead of HMAC-SHA256.Key->get() was renamed to Key->getRawKeyMaterial()Password now has a needsRehash() method which will return true
if you're using an obsolete encryption and/or hashing method.Util now has several new methods for generating BLAKE2b hashes:
hash()keyed_hash()raw_hash()raw_keyed_hash()ContractHow can I help you explore Laravel packages today?