Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In sql server data that data are encrypted but i don't no how to data are encrypted.
Posted
Comments
Dipesh Wadhwa 11-Oct-13 4:54am    
Just store your DATA in BINARY FORMAT and you are done.
And while retrieving binary data use Convert Function.

Example: To Encrypt:- insert into [TableName] values (Convert(Binary,'Text Here'))
To Decrypt:- select (varchar,[BinaryColumnName]) from [TableName]
Richard MacCutchan 11-Oct-13 5:10am    
Except that is not encryption.

1 solution

 
Share this answer
 
Comments
Dipesh Wadhwa 11-Oct-13 4:38am    
Just store your DATA in BINARY FORMAT and you are done.
And while retrieving binary data use Convert Function.

Example:
To Encrypt:- insert into [TableName] values (Convert(Binary,'Text Here'))

To Decrypt:- select (varchar,[BinaryColumnName]) from [TableName]
Richard MacCutchan 11-Oct-13 4:38am    
Please reply to the original question not to me.
Dipesh Wadhwa 11-Oct-13 4:55am    
OOPS...!!! By Mistake.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900