gtt/crypt-bundle
GTT Crypt Bundle is a Symfony bundle that integrates cryptography services into your application, offering configurable encryption and decryption support plus service container integration for secure data handling.
composer require vendor/package (replace with actual package name).php artisan vendor:publish --provider="Vendor\Package\ServiceProvider".php artisan package:generate-key) or set a key in .env as instructed in the config file.$ciphertext = Package::encrypt('my secret');
$plaintext = Package::decrypt($ciphertext);
.env or the database and decrypt them at runtime (e.g., in a service provider or config file) to avoid plain‑text secrets.defuse/php-encryption for PHP 8, so the package now likely requires PHP 8+. Verify your composer.json and CI environment before upgrading; this is a breaking change for PHP 7 projects.Hash::make) for passwords; encryption is reversible and unsuitable for one‑way storage.LIKE or =; consider blind indexing or deterministic encryption only if the package explicitly supports it.DecryptException (or the package’s equivalent) when decrypting user‑supplied or legacy data to avoid 500 errors; log the failure and handle gracefully.defuse/php-encryption version; the underlying library may have changed formats or padding. Run a full backup before rotating keys.How can I help you explore Laravel packages today?