I had posted this in the c++ forum but they told me to move it.
Hi, I'm a new member to this forum and I joined because I'm having some problems finding information about some pieces of code:
I was wondering how I could go about creating an protected folder-like object in c++, in order to put other files in it such as text documents and other exe's.
This is how it works in my head:
There's an exe that you open and that knows the pass word to the folder, and is the only thing that can open that folder and access the information inside that folder. The folder works like any other windows folder in the sense that everything in the folder can be removed/altered, the only difference being it can only be altered by the exe.
Can anyone provide me with a link or a book or any information that could help me create something like this?
But Structured Storage doesn't provide facilities to encrypt. You will have to provide that elsewhere. Structured Storage provide you with a folder-like object accessed via the IStorage COM interface. Inside any given IStorage you can hold more IStorage objects or IStream objects. IStream would be the equivalent of files. Just encrypt the IStream contents and you'll have acquired your objective.
But to be honest, it is no simple stuff (not super hard stuff either, though). Good luck!
Maybe if you can create a user account at install time for it to run as, then create the directory with permissions set so only the account can access. This is purely theoretical, I have no idea how to accomplish this, but it seems feasible to me and possibly easier then encryption.