Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

need some help with perl md5 response [Jan. 16th, 2005|07:40 pm]
LiveJournal Client Discussions


[mood |distresseddistressed]

Hey everyone!

I'm having some problems implementing the challenge login method.

I'm getting the appropriate response from getchallenge. I make my MD5 hexes and then post, but I'm getting an invalid password error. However, the plain text logs in fine. Here is the source code:

$md5_pass = $md5->md5_hex($pass);

$auth_challenge = $server_response_hash{'challenge'};
$auth_method = "challenge";
$auth_response = $md5->md5_hex($auth_challenge . $md5_pass);

Any thoughts?


[User Picture]From: sohmc
2005-01-19 03:18 pm (UTC)
So it seems that the livejournal documentation is not accurate. According to the the challenge/response docs, I was supposed to use md5_hex and not hexdigest.

According to the man page, both of these are the same. The only difference is in the way they are called.

But I guess the saying applies: "If it's not broke, use it."

Thanks gys for your help.

(Reply) (Parent) (Thread)