Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Digest Authentication encoding issue

Thread Tools

Digest Authentication encoding issue

Posts: n/a
Hello when i try the following code from cmd

htdigest -c "C:\path\passfile" "Δημιουργία Βάσης Δεδομ*νων!" webmaster

console understand it as Adding password for webmaster in realm
╬Φ╬╖╬╝╬╣╬┐╧Ζ╧Β╬│╬ψ ╬▒ ╬Τ╬υ╧Δ╬╖╧Γ ╬Φ╬╡╬┤╬┐╬ ╝╬φ╬╜╧Κ╬╜!. as a result not
a proper md5 crypt of the realm resultign to a faulty authentication

What can i do? Sorry for this not beign a perl questiosn i tried other
forums but i though of askignj this here perhaps to see if i can a
result by trying the same thing from within a perl script file. But
wont ti also use dos to take place like? in backticks still wotn work:
print `htdigest -c "C:\path\passfile" "Δημιουργία Βάσης Δεδομ*νων!"
webmaster so what's left?

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_pass_file" or die $!; print FILE "webmaster:Δημιουργία Βάσης
Δεδομ*νων!:" .Digest::MD5::md5_hex("admin:Δημιουργία Βάσης
Δεδομ*νων!: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 file which the above code resides
is encoded in 'UTF-8'.

Please suggest something else than hitting my head on the wall

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?

ps. I must tell you i aksed this in devshed and perlmonks but didnt
get any luck so iam posting here too for help. Thenk you.
Reply With Quote
Posts: n/a
Thanks for the help.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't locate Digest/ cannot install Digest/SHA myalo Perl Misc 4 11-28-2007 11:10 PM
help: digest/ no such file to load -- Tammy Mc Ruby 3 10-01-2006 01:36 AM
Custom Error Page Using Digest Authentication Wayne Carlaw ASP .Net 0 03-29-2005 07:09 PM
Does Jboss support DIGEST authentication Ravi kiran Java 0 06-08-2004 06:18 AM
Somewhat OT: HTTP Authentication - Digest EJ MCSE 0 10-24-2003 01:33 PM