View Single Post
Old 04-15-2005, 10:10 AM  
pstation
Confirmed User
 
Join Date: Jul 2003
Location: chicago
Posts: 1,135
Quote:
Originally Posted by NichePay - StuartD
Yeah, that's what I'm thinking too.... there has to be a way to work it so that it won't function without it... and it still has to be checked.
If you can work it to be complicated enough, sure other programmers could figure it out, but the average joe couldn't. If you can stop 99%, that's good enough right?
Yeah, the best bet is to use obfuscation for that. you could possible code up some custom function to hide the code in an encrypted string, along with other functions that are critcal for the script to function, and then use the eval function to exec the string.

here's a pretty good example of a good obfuscation
Code:
perl -e "push @x,ord()-32 for split'','Z=!;g&7?<:*5gI5:>oO&:;- c';split'','phroggy'x4;print chr^shift @_ for @x,109"
you would probably have no clue that it would print "Just another Perl Hacker"
pstation is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote