tags:

views:

60

answers:

3

need coding in .net for protecting a file using password?

A: 

That is very, very vague. You can enforce ACLs on files using File.SetAccessControl; beyond that, you'll need to be more specific. For example, you might want to look at System.Security.Cryptography.

Marc Gravell
+2  A: 

Microsoft have an article on encrypting a file using C#.

http://support.microsoft.com/kb/307010

James L
Nice answer considering the pleez send teh codez question
ShuggyCoUk
A: 

Well, can you give some more details? The simplest thing you could do is to use the .NET encryption APIs and choose some symmetric key algorithm whereby you would encrypt the file and the "password" would simply be the symmetric key.

BobbyShaftoe