I have an application that use EXE file in it. I want to secure EXE file, I encrypt file but it should be decrypted to use in the program, so I have to create temporary EXE file in to hard disk.
my questions are:
1) How can I create it in memory that no one can access to it? (EXE file uses commands to run)
2) How can I run this file from locked folder without unlocking folder?
Use VeraCrypt (or another TrueCrypt clone). Create an image and put the file into it. It will be encrypted this way. If you want to use it, mount it as a drive and run the exe file inside.