Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I have use Module Acme::Enc to secure my source code

That's odd, since Acme::Enc doesn't secure anything. The "decryption" code is available to all in Acme::Enc.

#!/usr/bin/perl # Usage: # decode.pl encoded.pl > original.pl # # In-place: # perl -i decode.pl script.pl use Acme::Enc qw( ); BEGIN { *zipperstuck = \&Acme::Enc::zipperstuck; *unbutton = \&Acme::Enc::unbutton; } { my $pants = do { local $/; <> }; $pants =~ s{ .* use \s+ Acme::Enc [^\n]* \n}{}xms; die("This input wasn't \"encoded\"\n") if !zipperstuck($pants); print(unbutton($pants)); }

Unstead, but adapted from something similar that worked with Acme::Bleach.

Acme::Bleach works fine with perl threads when I convert that code for cgi it wont work.

Works fine for me. Yeah, that's rather useless to say, but not as useless as saying "it wont work". Tell us how it doesn't work.

Update: Changed first snippet to reverse Acme::Enc. I had originally wrote and tested one for Acme::Bleach.


In reply to Re: Acme Enc by ikegami
in thread Acme Enc by sameerperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-18 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found