Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Protecting perl source code

by JayBonci (Curate)
on Jul 22, 2002 at 10:15 UTC ( #183999=note: print w/replies, xml ) Need Help??


in reply to Protecting perl source code

The only real suggestion I have for you is take the code you want to protect, and throw it in a file as a data segment, and make a self-decripting perl file that takes one command line argument, the key. The entire point of this wrapper perl file would be to read the data in, decrypt, unpack it, and then eval it. To obscure a script language is difficult, no matter what you do, especially if it's heavily bound to the interpreter. If you need to hide stuff away, consider either packing away the string that contains the code (or using Storable to freeze it)and then encrypting with one of the major perl Crypt::* modules.

Other than that, enjoy the time off. Keep the decryption key.

    --jb

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://183999]
help
Chatterbox?
[moritz]: seems there's a size limit for hostenum, and the error message just sucks
[vrk]: None, other than the location of the error: auto/NetAddr/IP/ _splitref.al
[vrk]: Aha, there's a reference to "bug report 82719" in NetAddr/IP.pm's sub _splitref.
[moritz]: wow, that's their idea of an "improved error message"
[moritz]: how about "This network is too large to enumerate all host addresses." or so?
[vrk]: Well, there's a call to notcontiguous() before the error, whose description is "counts the bit positions remaining in the mask when the rightmost '0's are removed"
[vrk]: Clear as mud!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-04-25 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (449 votes). Check out past polls.