The third option, which may be most appropriate, is simply not to store these values ββin a specific database at all. I would say that it is probably more convenient to store them in another place, since you are probably not going to join the table of sensitive words.
Otherwise, you probably want to use the Conrad Frix offer of SQL Server built-in encryption support.
The reason I say this is because you say that = = and LIKE should work with your data. When you use a string using hash-algo, for example SHA / MD5 / etc., the Results will not correspond to the semantics of the LIKE language.
If exact equality (=) is enough (that is, you really don't need to make LIKE requests), you can use the cryptographic function to protect the text. But keep in mind that a one-way hash function will prevent you from getting a list of "un-hashed" strings - if you need to do this, you need to use an encryption algorithm where decryption is possible, such as AES.
source share