Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
i want to encrypt my MS-SQL database that no one can read it but my application,i wrote the application in c# language.
I simply can encrypt MS-sql database in my local computer but i want to install the application on other computers,that i don't want them read my database.
please give me a solution & excuse me for my poor english.

THANKS very much.....
Posted

Hi,

Why you are encrypting all the data? It will slow down the system. Instead i suggest you to use some complex credentials for MsSQL and Encrypt only ConnectionString.

Hope this works for you,
Thanks
-Amit Gajjar
 
Share this answer
 
Comments
ali sedighian 11-Sep-12 4:37am    
thanks,
I want install database on local computer and i can't risk to lose data.is this helpful for my problem?
AmitGajjar 11-Sep-12 4:38am    
it's all depend on criticality of your code. if user do not have credential , how they will open and see your data ?
ali sedighian 11-Sep-12 4:47am    
that's the problem i want just application can open it and see the data.is there any solution?
AmitGajjar 11-Sep-12 4:49am    
you can encrypt connection string and use that from your code. human eye can not read that encypted usernamd and password of your database. so they even can't read your database information except from your application.
ali sedighian 11-Sep-12 4:58am    
thanks
And the last question how can i encrypt connection string?!?
 
Share this answer
 
Comments
ali sedighian 11-Sep-12 4:45am    
that was a good article about encrypting but don't solve my problem,because i want it don't mention that how can i use the encrypted database in c# and it just says how to encrypt database.
although,thanks for Ur help.

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