laravel-secure-fields
Encrypt sensitive Eloquent fields without losing the ability to query them.
When your database leaks, plain-text PII becomes a breach. This package encrypts sensitive fields transparently at the model level, with no schema changes and no query rewrites. You can still run exact-match lookups on encrypted fields through a blind index, rotate keys without downtime, and produce the access trails an audit asks for.
- AES-256-GCM encryption with per-value random IV
- Searchable encrypted fields via blind indexes (HMAC-SHA256)
- Key rotation with zero downtime
- Field masking in toArray() & toJson()
- Audit logging for access trails
composer require vimatech/laravel-secure-fields