Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi friends...
i have doubt that i can encrypt a string...
but i dont know how to perform to encrypt the file contents...
is it possible to encrypt the whole file contents...
with out decryption any one can't see the original contents...
Posted

Lots of suggested solutions here[^].
 
Share this answer
 
There are a number of ways to do this: SQL supports encryption - there is an example here: http://msdn.microsoft.com/en-us/library/ms179331.aspx[^]

But I would go with encrypting it in C# using the .NET Cryptography namespace[^]. There is an example here, using DES encryption: http://msdn.microsoft.com/en-us/library/system.security.cryptography.descryptoserviceprovider.aspx[^]
 
Share this answer
 
Comments
Raghupathiraja 4-Dec-11 0:15am    
can u give me an solution to know the concept of the code behind it....
have confusions only
OriginalGriff 4-Dec-11 4:04am    
As I said - there is an example there, and it is pretty simple. If you can't follow that, then you really need to look at getting more familiar with the basics before you start tackling anything to do with security - there are so many mistakes you can make which could lead to you being confident in your security, but in fact vulnerable to anyone who happens to have a quick look.

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