Deterministic or probabilistic encryption for a field?
Your confidence:Not rated
Model answer
| Probabilistic | Deterministic |
|---|---|
| Same value encrypts differently each time | Same value encrypts the same way (per key and settings) |
| Strongest protection | Allows exact-match filters, duplicate rules, lookups |
| Can't filter, sort or match | Still can't sort or do partial matches |
Choose deterministic when the business must find records by the value (national ID lookup, matching email). Choose probabilistic for data that's only displayed (notes, diagnoses). Test feature impact either way, and remember encryption doesn't replace permissions.
โ Key points to hit
โ Red-flag answers
- 'Always deterministic so everything works'
- Encrypting every field
โช Follow-ups
Can you switch a field from probabilistic to deterministic later?
Yes, by changing the scheme and running a background encryption sync for existing data. Plan it like a data change and test first โ verify current process.
What about case sensitivity?
Deterministic encryption has case-sensitive and case-insensitive options; choose the one that matches how users search.