# Compressor (file security)

**URL:** <https://forum.kirupa.com/t/compressor-file-security/320706>\
**Category:** programming\
**Created:** [March 30, 2011, 10:16pm UTC](https://forum.kirupa.com/t/compressor-file-security/320706 "2011-03-30T22:16:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arsen2](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@Arsen2](https://forum.kirupa.com/u/Arsen2)\
**Post date:** [March 30, 2011, 10:16pm UTC](https://forum.kirupa.com/t/compressor-file-security/320706/1 "2011-03-30T22:16:33Z")

</div>

Hi,

Is it possible in anyway to load a file into memory and then run it  
from there? I am working on a file compressor, that can compress and encrypt and save  
multiple files as an exe file that can then run the compressed files  
after unpacking them to a temp folder. The problem is that I have to  
unpack the files to the hard-disk and then run them from there, making  
them vulnerable to user that may try to get the original (unprotected)  
files.

So the user shouldn’t have access to the file operations in the  
background. So I need to keep the original unpacked files hidden from  
the user, until after they are opened by the unpacker and then deleted.  
So users should have no kind of access to the files (should not see  
them, open them, should not be able to modify or copy them) but the  
unpacker should be able to run them. (that is why I think that the  
memory is the best solution)

So is there any way to protect them, like unpacking them directly to  
memory and then run them from there? Something like a virtual disk in  
memory?

Thanks.
