Reputation: 4110
I'm working on a WPF project which is in charge to display a picture library. The pictures are stored on folders. I would like to know if there is a way to encrypt the folders and the pictures to protect the files (the user shouldn't see the files), but I want to keep the possibility to browse these folders by code to build my library.
Upvotes: 0
Views: 1892
Reputation: 10143
you can use Zip archive and Another way:
you can add another project project(Library)into your main solution,add your image folders into your application and set their build action
property to resource
,with that,your images will store in an Dll and for can access them from Dll.i tried it before follow this link:
Upvotes: 0
Reputation: 180777
The best way that I can think of is to store the files and folders in a Zip archive with a password. Zip files are supported natively by Windows. There are plenty of options for supporting zip files, including framework options and outboard libraries.
Note that this doesn't really protect the files from user tampering; it merely hides them from casual observers. Also, there may be a speed penalty; you should use the fastest possible options for compression.
Upvotes: 1