Help for this page

Select Code to Download


  1. or download this
      When verifying an existing encrypted string you should use the
      encrypted text as the salt (like "crypt($plain, $crypted) eq
      $crypted"). This allows your code to work with the standard
      "crypt" and with more exotic implementations.
    
  2. or download this
        $foo = new Apache::Htpasswd({passwdFile => "path-to-file",
                     ReadOnly   => 1}
                    );
        # Check that a password is correct
        $pwdFile->htCheckPassword("zog", "password");