Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: basic login

by Anonymous Monk
on Apr 14, 2017 at 15:02 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2022-05-26 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (93 votes). Check out past polls.

    Notices?