Log in

No account? Create an account
need some help with perl md5 response - LiveJournal Client Discussions — LiveJournal [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: hober
2005-01-17 04:07 am (UTC)
Keep in mind that the livejournal server expects downcased md5sums, and (at least used to) barf on upcase ones.
(Reply) (Thread)