Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Digest Authentication encoding issue

by Nik
on Mar 19, 2008 at 13:27 UTC ( #674993=note: print w/ replies, xml ) Need Help??


in reply to Re: Digest Authentication encoding issue
in thread Digest Authentication encoding issue

Here is what i my attempt to do the same thing through a cgi perl script using the Digest::MD5 module

open FILE, ">>$ENV{'DOCUMENT_ROOT'}/some_path/some_other_path/some_pas +s_file" or die $!; print FILE "webmaster:Δημιουρ&#9 +47;ία Βάσης Δεδ&#95 +9;μένων!:" .Digest::MD5::md5_hex("a +dmin:Δημιουργία &#9 +14;άσης Δεδομέ&#957 +;ων!:this_is_the_pass") ."\n"; close FILE;
But when it comes to authentication when i enter the credentials apache says there are wrong.
An encoding issue again? the init.pl file which the above code resides is encoded in 'UTF-8'.

Please suggest something else than hitting my head on the wall ;)


Comment on Re^2: Digest Authentication encoding issue
Download Code
Re^3: Digest Authentication encoding issue
by Nik on Mar 20, 2008 at 21:48 UTC
    so please someone answer me, is this an encoding issue again?
    Why when the user gives the username and password at http authentication the credentials won't match the ones stored in the password file?
    What might be the problem? ?You think its encoding?
      so please someone answer me, is this an encoding issue again?

      I already told you what the problem is. Why do you persist in asking for help if you're going to ignore what people tell you and keep doing what obviously doesn't work?

        Di you see all of my posts?
        My realm is in greek text characters but when i post here in perlmonks it apperas as html entities, in the file its not at all like that.
        I'am not ignoring anything iam just hoping for an answer that works and i already tried many approaches to solve the problem. Comment on those.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2014-07-12 22:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls