cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: login issues

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 12 Apr 2006 16:15:05 -0700

On Wed, Apr 12, 2006 at 06:32:53PM -0400, Blurry wrote:
> thanks. So if there are 2 scripts one called base64 (don't think it is
> using that one) and the other md5, the first doing a base64 encode and
> m5 doing a RSA message digest algorithm, thusly
>
> function validate_form(form)
>
> {
> var passwd_enc = calcMD5(form.password.value);
> var final_to_encode = passwd_enc + form.one_time_token.value;
> form.encoded_pw.value = calcMD5(final_to_encode);
> form.password.value = "";
> return true;
> }
>
> so this MD5 encodes the password, then md5 encodes it again after
> adding the one_time_token ? Is that + a concatentation or addition ?
> So I need to write a perl script (not sure how) to run this MD5 encode
> to my password, and then a combo of my password and token ? The box I
> am running it on has cygwin and perl....thanks alot.

Yup, that's what it looks like. I'm no expert of JavaScript, but in this
case I think + would do a concatentation, and calcMD5 probably returns a
hex-encoded answer. I'm sure you could do this in one line in perl (just
don't ask me how).

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-04-13