Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: basic login

by Anonymous Monk
on Apr 14, 2017 at 15:02 UTC ( [id://1187937]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if ($usr eq 'admin' && $pwd eq 'admin') {
    $cookie = ...;
    ...
    print "Set-Cookie: login="$cookie"\r\n\r\n";
    ...
    }
    
  2. or download this
    my $cipher = Crypt::CBC->new(-key=>$secret_key, -cipher => 'Rijndael')
    +;
    my $cookie = MIME::Base64::encode_base64($cipher->encrypt("$usr:$pwd")
    +, '');
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found