SEC-Q04Trade-off IntermediateSecurity design#security#regulated

Deterministic or probabilistic encryption for a field?

Your confidence:Not rated

Model answer

ProbabilisticDeterministic
Same value encrypts differently each timeSame value encrypts the same way (per key and settings)
Strongest protectionAllows exact-match filters, duplicate rules, lookups
Can't filter, sort or matchStill 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.