How to do deterministic encryption on databricks?

NM
New Contributor III

How can I do deterministic encryption on databricks? And protect PI columns.

01_binary
New Contributor III

In order to deterministic encryption, we need to use aes encryption. Using AES the encrypted text will always remain the same for same input. Databricks recently implemented aes_encrypt and aes_decrypt functions and is the recommended way to perform this.

View solution in original post