Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Encrypting an executable with pp

by radiantmatrix (Parson)
on Jun 30, 2013 at 20:09 UTC ( #1041643=note: print w/ replies, xml ) Need Help??


in reply to Encrypting an executable with pp

I'd really like to understand what you're trying to accomplish with encrypting your code. The overwhelming majority of the time, it seems that people wishing to do so either fundamentally misunderstand program execution or fundamentally misunderstand encryption.

If you're attempting to hide your source code from people who run the program, you're wasting your time. To allow them to run the program, you have to make the executable available at some point. Once you do that, it can be decompiled trivially -- especially with interpreted languages like Perl.

If you're attempting to prevent unauthorized execution, you have the same problem. Your authorized users will at some point have access to the "raw" executable, and so it only takes one of them to "leak" an unprotected version. DRM (and anti-piracy measures in general) will always fail for this reason.

In short, you almost certainly don't want to encrypt your package, because you'll create complexity for yourself and your legitimate users while completely failing to cause any trouble for your "undesirable" actors.

<radiant.matrix>
Ramblings and references
“A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort.” Herm Albright
I haven't found a problem yet that can't be solved by a well-placed trebuchet


Comment on Re: Encrypting an executable with pp

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2014-07-11 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls