Haxe NME executables can be decrypted or decompiled?

Haxe NME windows executables can be easily decrypted or decompiled? There is any native method to check the host mac addresses? I was planning to pack a simple .exe made with Haxe NME to help minimize the chances of hack in my AIR app activation pro…

Viewing 1 to 3 (3 Total)
Haxe NME executables can be decrypted or decompiled?

fernandofr

fernandofr
Total Posts: 2
Joined: June 23, 2012

Haxe NME windows executables can be easily decrypted or decompiled?

There is any native method to check the host mac addresses?

I was planning to pack a simple .exe made with Haxe NME to help minimize the chances of hack in my AIR app activation process.

Tags:
Posted on June 23, 2012 at 5:02 PM

Huge

Huge
Total Posts: 548
Joined: October 07, 2011

Re: Haxe NME executables can be decrypted or decompiled?

Hi,
There is quite a bit of "reflection" code around, naming methods etc. that might make things a bit easier for a decompiler.
If you compile for release, this should be reduced, but even though it is machine code, it can be decompiled.
There is no mac-address code that I know of. You may be better off going for a thirdparty solution, but DRM is generally more trouble than it is worth.

I would recommend doing something like this:
The user pays and enters their details (name, email etc) in a form. You then use a private key to encrypt this along with a user id to create a license, which either gets emailed or shown in a web page.
The user then gets the license and stores it. Your program uses a public key to decrypt the user name and ID, and display the name somewhere to make pirates feel lightly guilty about using someone else key. You then have some online component that makes it desirable to have a unique user ID - eg, high score list.

It does not matter if this gets decompiled, because there is nothing for them to see. You could possibly phone-home occasionally to check for keys posted online, but I do not think this will get you any more sales.

Pirates will need to decompile/compile your program to change the display name - but if the end user is willing to put up with trojans, then they will never buy anything anyhow,

Adding the machineid lock adds a tiny bit (makes keys posted online harder to use), but pirates can just spoof this and you punish your paying users who might want to install on another machine (or install on another NME platform!)

Of course, this method is also very good for AIR - it does not matter that you can decompile the flash, so you would not need an NME component.

Hugh

Posted on June 25, 2012 at 1:10 AM

fernandofr

fernandofr
Total Posts: 2
Joined: June 23, 2012

Re: Haxe NME executables can be decrypted or decompiled?

Thank you so much for you advice, Hugh!

Posted on June 25, 2012 at 1:48 PM