Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Re: Here is a commercial obfuscator

by Anonymous Monk
on Mar 14, 2003 at 18:20 UTC ( #243139=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Here is a commercial obfuscator
in thread Here is a commercial obfuscator

> $Hn->request($ED, $svyr)); Here is a bug (one from a zillion) in your hack - the method name is not obfuscated here.
  • Comment on Re: Re: Re: Here is a commercial obfuscator

Replies are listed 'Best First'.
Re^4: Here is a commercial obfuscator
by diotalevi (Canon) on Mar 14, 2003 at 18:32 UTC

    Well... since the method name belongs to the LWP package I can't very well go changing that unless I perform the same steps on LWP as well. Anyhow, the patch as written renames pad and stash accesses. It does introduce bugs where otherwise correct accesses to %ENV would now fail. If the obfuscator were actually correct it'd need to have special cases to avoid changing things that shouldn't be. I figure that's best implemented by adding support for a list of expressions that may not be altered. Anyhow, since I don't need an obfuscation filter I'm not going to alter B::Obfuscate to add that support. Changing string constants is somewhat problematic but not irresolvable given the framework provided by B::Deparse.

    I'll leave it to someone else to extend the new module.

    Seeking Green geeks in Minnesota

      In that particular line, method name shouldn't be obfuscated of course. It was meant that your patch doesn't even try to obfuscate method names.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://243139]
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....
[stevieb]: ++ atcroft

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2017-04-29 04:40 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.