spatie/laravel-ciphersweet
Laravel wrapper for Paragonie CipherSweet that adds searchable field-level encryption to Eloquent models. Encrypt/decrypt sensitive attributes and generate blind indexes so you can query encrypted data securely without exposing readable values in your database.
Adopt if:
Look elsewhere if:
encrypt().For Executives: "This package lets us encrypt sensitive customer data—like medical records or payment info—so even if our database is breached, hackers can’t read it. It’s like a digital vault for our most critical data, but with a clever twist: we can still search and filter it without exposing everything. Used by companies like GitHub, it’s a proven way to meet GDPR/CCPA requirements while keeping our systems fast. The cost? Minimal—just a few hours to integrate, with long-term savings from avoiding fines or reputational damage."
For Engineers: *"Spatie’s Laravel-CipherSweet wraps CipherSweet, a high-performance library for searchable field-level encryption. Key benefits:
ssn, credit_card), leaving the rest unencrypted for performance.pgcrypto for efficiency; MySQL support is basic.use CipherSweet to your models.
Tradeoff: Slightly higher query complexity for encrypted searches (but negligible for most use cases). Ideal if you’re storing PII and need compliance without sacrificing functionality."*For Compliance/Privacy Teams: *"This solves two critical gaps:
How can I help you explore Laravel packages today?