caeligo/field-encryption-bundle
#[Encrypted]).Look Elsewhere If:
pgcrypto) or client-side encryption.paragonie/halite if you require external key storage.laravel-encryption or spatie/laravel-encryption.Adopt If:
Problem:
"We’re delaying [Feature X] launch due to compliance risks around storing [PII/health records/payment data]. Manual encryption is error-prone and slows development."
Solution:
"This bundle automates AES-256 encryption for Doctrine fields—transparent to developers, compliant with GDPR/HIPAA, and ready in 2 hours*. No schema changes; just add
#[Encrypted]to fields. Key rotation and auditing are built-in."*
ROI:
Ask:
"Approve 1 day of dev time to integrate this bundle for [Feature Y]’s sensitive fields. Budget: $0 (MIT license)."
Why This Over Custom Crypto?
ParagonIE integration) for AES-256-CBC/GCM, HMAC-SHA256, and timing-safe comparisons.#[Encrypted] or #[EncryptedFile]—no XML/YAML config.caeligo:encryption:generate-key) and rotation wizards.Integration Plan:
User with ssn, medical_history).#[Encrypted] to compliance-critical fields; use #[EncryptedFile] for uploads.Risks & Mitigations:
| Risk | Mitigation |
|---|---|
| Key management complexity | Start with single key; enable rotation later. |
| Query performance on HMAC’d fields | Use LIKE sparingly; optimize with partial indexes. |
| Vendor lock-in (0 stars) | MIT license + open-source; fork if needed. |
Alternatives Considered:
pgcrypto encrypts entire columns).Recommendation:
"Adopt this bundle for [Symfony] projects where Doctrine ORM is already used. Prioritize for [compliance-critical feature] to unblock [roadmap item]."
How can I help you explore Laravel packages today?