How to encrypt numeric column in Sql Server 2008?
I want to encrypt the employee’s salary column in Sql Server 2008.
The column type is numeric or money.
Is there any encryption method that can support the following requirements?
- Is there any sql encryption user defined function to encrypt column? The type of Encrypted result is string will be ok.
- Is sql server support this type of encryption by itself?
- Is there a simple encryption method that can encrypt numbers such as 123.56 to 362.15?
I use C# and Sql Server 2008.
No encryption function will have an output type of numeric or money, ever. Encrypted values are always byte arrays (sql binary data type), or some representation of a byte array (such as a base64-encoded character string).