Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: howto: Perl CGI, image with random scewed text for account creations

by jettero (Monsignor)
on Mar 12, 2007 at 00:53 UTC ( #604267=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $msg  = sha1_base64(
        join("^G", ("secret part", map {$cgi->param($_)} 
            grep {not m/^(?:usec|utime|tcode)$/} $cgi->param)));
    
    my $code = $1 if $msg =~ m/(.{4})\z/;
    
  2. or download this
    print $cgi->header({type=>"image/png"});
    
    ...
    }
    
    print $gd->png;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://604267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2014-07-23 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (152 votes), past polls