Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by jettero (Monsignor)
on Mar 12, 2007 at 00:53 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://604267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found