Help for this page

Select Code to Download


  1. or download this
    # !perl
    
    use CGI qw(:standard);                # use the CGI libraries 
    ...
    } else {
        print "Incorrect username or password, please try again.";
    }
    
  2. or download this
    $salt = join '', ('.', '/', 0..9, 'A'..'Z', 'a'..'z') [rand 64, rand 6
    +4];
                            # create random two-character salt
    
    $passhash = crypt($password, $salt);        # hash the password with t
    +he salt