wemxo/encryption-bundle
wemxo/encryption-bundle provides simple, secure application-level encryption for PHP projects, helping protect sensitive data at rest with configurable keys and a clean service-based API for encrypting and decrypting values.
email/national_id/account_number?" that were previously blocked by search requirements.encrypt()/decrypt() + hash-lookup implementation. The deterministic mode is the piece teams usually hand-roll badly (e.g. unsalted sha256(email) blind indexes); this release lets you buy that capability instead.Consider adoption when:
Look elsewhere (or scope down) when:
LIKE/full-text search, or fuzzy matching on the encrypted data — deterministic encryption gives equality only; you need a dedicated searchable-encryption service or a tokenised search index.To executives: This release lets us encrypt sensitive customer data inside the database while still being able to look records up by it — the trade-off that has historically forced us to leave fields like email and account numbers in plaintext. That means we can answer security questionnaires and enterprise/regulated buyers with "field-level encrypted" instead of "encrypted at rest," without a re-platforming project. It is a small, low-risk dependency addition (opt-in per field, no forced migration of existing data) that converts a recurring compliance blocker into a checkbox. Recommended ask: a short spike plus a written policy on which fields may use deterministic encryption.
To engineering: v1.1.0 adds deterministic encryption on top of the existing randomised mode — i.e. blind-index/equality lookup support, opt-in per attribute. Use it for lookup identifiers only; keep randomised encryption for free-text and high-sensitivity payloads. Adopt to avoid maintaining a homegrown hash-lookup scheme. Before rollout we need: a field-by-field classification, key rotation and re-encryption migration plan, index/storage impact on the largest tables, and a documented rule that no new deterministic field ships without a security review. Treat the deterministic mode's leakage profile (equal values are visibly equal) as an accepted, written risk — not a default.
Bottom line: meaningful feature, non-breaking, worth adopting for teams that need queryable encrypted fields — gated on a clear per-field policy and key-management ownership.
How can I help you explore Laravel packages today?