Click here to Skip to main content
14,643,868 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to lock a folder through password for all types of accessing from unauthorized users. So that only authorized person can unlock it and work on it.

Let me know the proper C# commands to lock/encrypt and hide the folder.

kind Regards,

Sushil Saini
Posted
Updated 4-Jan-11 15:53pm
v2
Comments
Manfred Rudolf Bihy 4-Jan-11 21:15pm
   
I'm really curious, why you would want to do that from code. All you would have to do to achieve this is to give the proper access rights (filesystem ACLs) to the folder for just those users who are allowed to access it.
Can you give us more details on your usage scenario?
   
I agree with Manfred on this. You better explain the bigger picture; may be the folder itself is not the best option for data protection. There are some other options.
Rate this:
Please Sign up or sign in to vote.

Solution 3

TrueCrypt[^] is a free and open source application that solves your purpose.
   
Comments
   
Very interesting find (my 5). Most importantly it's open source.
Rate this:
Please Sign up or sign in to vote.

Solution 4

Hope Lock a folder[^]will help you.

But it is a third party tool.
   
Comments
   
Kasson, this is a very interesting find (vote of 5). Is it open source or not?
justinonday 5-Jan-11 1:10am
   
no answer
Rate this:
Please Sign up or sign in to vote.

Solution 1

You can hide folders. You can also encrypt them. Google is your friend.
   
Rate this:
Please Sign up or sign in to vote.

Solution 5

Is using C# and available documented API, why not using available mechanism designed for similar purposes -- Microsoft Isolated Storage?

This is where to start:

http://msdn.microsoft.com/en-us/library/3ak841sy.aspx[^]
   
v2
Comments
#realJSOP 5-Jan-11 8:02am
   
Ya know, you really don't have to post inane comments for every response to every question.
   
Yes, I know. So, what's the purpose of this comment; and how it is relevant to this answer?

Thank you.

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100