troubleshooting Question

How to encrypt a *.res file and make it work?

Avatar of fjocke
fjocke asked on
Delphi
5 Comments1 Solution890 ViewsLast Modified:
How to Encrypt a *.Res file?

Here is my problem. Im making a Serial Key Activation Wrapper for executables.
Where i load the target i have from a Target.rc and compile it to a Target.res

I then later start the target from memory by loading the executable stored in the resource table.

Now, this is a good way to make a executable wrapper. However, its not safe at all loading it memory wise. Anyone can just open my protected exe file with my bundled target and just use ResHack and safe the Resource stub as binary and boom its not protected anymore.

So now i'd like to encrypt the resource file somehow. Since im loading the resource into a resource data.
It would be easy to decrypt. But since im using brcc32.exe to compile the Target.rc its kind of hard to encrypt the resource. The packer scheme i made only goes for the resource filestream, not memorystream, so they can easly see all the strings there.

So what i need is a way to protect my resource stub from being read and exported from my wrapper exe.
Only my wrapper exe should be able to decrypt the resource before actually loading it up.

Cheers Jocke

ASKER CERTIFIED SOLUTION
aikimark
Get vaccinated; Social distance; Wear a mask
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros