2 Option i can suggest here
Option 1 - Deterministic Encryption Functions: Synapse Analytics has built-in functions like DETERMINISTIC_ENCRYPT and DETERMINISTIC_DECRYPT. These functions use a special algorithm that always gives the same encrypted result for the same data and key.
SQL Script - SELECT DETERMINISTIC_ENCRYPT('Secret data', 'your_fixed_key') AS encrypted_data
FROM your_table;
Option 2 - Combining Symmetric Encryption with Hashing: While not directly supported in Synapse Analytics, you can still achieve deterministic encryption. Here's how:
Hash the data: Use a hashing function like SHA256 on your data to get a fixed-length string.
Combine hash and data: Mix the obtained hash with your original data.
Encrypt the combined string: Use a symmetric encryption method with your fixed key to encrypt the mix of hash and data.
Please let me know if u have any concerns. please accept as answer if it helped you.