Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more: , +
Hai,

I want to encrypt the data in my database? so What can i do..?

Please help me..
Posted

Try the links provided below:

http://msdn.microsoft.com/en-us/library/as0w18af%28v=vs.80%29.aspx[^]

Encrypt and Decrypt Data with C#[^]

Simple encrypting and decrypting data in C#[^]

Hope these links help, tell me if I got you wrong and tell me what you wanna achieve exactly, so that we could help you.
 
Share this answer
 
please see this link it will help you

Encrypted columns and SQL Server performance[^]
 
Share this answer
 
this may helps to u

SQL
set a column in u r  storeProcedure

TestCrypt (varbinary(255), null)
for retrive:
SELECT cast(s.TestCrypt AS varbinary) AS TestCrypt
while (reader.Read())
{
    data.TestCrypt = (byte[])reader["TestCrypt"];
}

for decript:

plaintext = srDecrypt.ReadToEnd();






http://stackoverflow.com/questions/9664096/c-sharp-4-0-sql-server-2008-encrypt-decrypt-in-business-layer[^]
 
Share this answer
 
Just write your encryption algorithm in a c# class library and register its assembly in the sql server and start using it from sql query.
 
Share this answer
 

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