Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: Acme Bleach

by eyepopslikeamosquito (Chancellor)
on Jul 24, 2008 at 13:18 UTC ( #699878=note: print w/replies, xml ) Need Help??

in reply to Acme Bleach

I have used Acme::Bleach module to encrypt my cgi source code. after encrypting, my cgi source file just contains invisible character.
Okay, okay, you caught us out. We were just joking before when we advised you not to use Acme modules to protect your source code. Your code is not functioning correctly only because its invisibility attribute is causing it to be ignored by a recent security fix made to the Perl interpreter to protect it from spoofed backscatter attacks. To fix your problem, you simply need to restore your code's visibility attribute by using one of following modules: Give them a try and let us know which one fixes your problem.

Replies are listed 'Best First'.
Re^2: Acme Bleach
by leocharre (Priest) on Jul 24, 2008 at 13:58 UTC

    (Seriously- there is hope.)

    sameerperl, you may want to try this out to unbleach.. If you're stuck. (Dunno where this came from, it was lying around on one of my systems- I tried it out.)

    #!/usr/bin/perl # - for really dirty programs use strict; my $washing = pop or carp("Usage: unbleach [file]"); open white,"<$washing" or carp("Can't get $washing"); local $/; $_=<white>; s/(.*)^\s*use\s+Acme::Bleach\s*;\n(?: \t){8}/$1/ or carp("$washing is not bleached!"); open line,">$washing" or carp("Can't dry $washing"); print line out($_); sub out {s/\n//g;tr/ \t/01/;pack "b*",$_;} sub carp {print shift and exit} =head1 NAME - For I<really> unclean programs =head1 SYNOPSIS [file] =head1 DESCRIPTION This script will replace all the unsighted unprintable characters bleached out of your source file by Acme::Bleach. And turn it into directive with elegant (perhaps) ASCII perl code. It also removes the use bleach line when it rewrites the source code. The code continues to work exactly as it did before, but now looks like normal! =head1 DIAGNOSTICS =item C<Can't get '%s'> could not read the source file. =item C<'%s' is not bleached!> will only process files that have been previously bleached and have the expected format. =item C<Can't dry '%s'> could not open the source file to modify it. =head1 SEE ALSO =head1 AUTHOR not Damian Conway (as if you couldn't guess)
Re^2: Acme Bleach
by blazar (Canon) on Jul 25, 2008 at 08:11 UTC

    I personally believe it would be correct of you -since you certainly know- to remind the OP that he could and should use one or more of those modules, as the more the better: ain't it so?

    If you can't understand the incipit, then please check the IPB Campaign.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://699878]
[perldigious]: but... but... perldigious is the unvirtuous kind of lazy in this case. :-)
[perldigious]: Just kidding. Thanks 1nickt, I'll go ahead and do it the right way. An extra set of brackets and a little extra indentation isn't too much to ask.
[karlgoethebier]: perldigious: perhaps a block if you are paranoid ;-)
[choroba]: but undef %hash and %hash = () both work, too, but the first one keeps the memory allocated, while the latter makes it available for other parts of the program.
[choroba]: iirc
[perldigious]: karlgoethebier: Well it is a pretty old and complicated (for me) bit of code I wrote (poorly by my current standards), so I'm expecting everything to break when I add the scoping and find out what else is undesireably scope changed. :-)
[perldigious]: Ah, thanks choroba, that sort of thing was precisely what I was wondering when I asked.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-07-21 19:51 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (335 votes). Check out past polls.