I am currently working on a project where i can encrypt and decrypt files. I am developing it in Java.
This is how it works (simplified):
- First I read the file and convert it to a byte array
- Then I encrypt the byte array and write it back to a file
When I want to run the encrypted file, I do the opposite, so like this:
- I read encrypted file and convert it to byte array
- Then I decrypt the byte array and write it back to a file.
So the file is converted back to its original form.
My problem is, I do not want to write the decrypted byte array as a file to the disk.
Is there a way to do this? I want to run the decrypted byte array directly in memory. By "running" it, I mean executing it, because it is a Win32 executable crypter.
Thanks in advance, Onur