Announcement

Collapse
No announcement yet.

Trouble with MD5

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Trouble with MD5



    Has anyone experienced problems with Ivo's md5 script. It looks great,
    but for some reason on the server I am using I've been getting wrong
    values returned. The test function fails and of the 4 hex parts, any
    number of them turn up as all f's or all 0's for most strings.

    If you want to see what I am talking about, the script I am trying to
    use is at www.sorrentopizza.net/md5.mv

    Thanks, I'm not really able to begin debugging this because I'm not sure
    I understand all of the math functions involved with md5 sums, however I
    am willing to help as much as possible if anyone would like to try and
    debug this problem.

    Andrew


    --
    Andrew Rosborough <[email protected]>



    #2
    Trouble with MD5



    Although I do not think that the script uses any features not available in
    former versions, you can try updating to the latest Empresa version. Well,
    you can try it first updating your Mia and testing it locally. The script
    definitely runs on numerous servers without problems (and Mia as well).

    Ivo
    http://mivo.truxoft.com


    -----Original Message-----
    From: Andrew Rosborough

    Has anyone experienced problems with Ivo's md5 script. It looks great,
    but for some reason on the server I am using I've been getting wrong
    values returned. The test function fails and of the 4 hex parts, any
    number of them turn up as all f's or all 0's for most strings.

    If you want to see what I am talking about, the script I am trying to
    use is at www.sorrentopizza.net/md5.mv

    Thanks, I'm not really able to begin debugging this because I'm not sure
    I understand all of the math functions involved with md5 sums, however I
    am willing to help as much as possible if anyone would like to try and
    debug this problem.

    Andrew


    --
    Andrew Rosborough <[email protected]>



    Comment


      #3
      Trouble with MD5



      I think a quick fix, since I don't have much access to my web server,
      would be to call a simple php script.

      I'm a little unsure of how mvcall would work in this situation though.

      the php file would look like this:

      <?php
      echo md5($string);
      ?>

      and mvcall I have that does not work is set up like this:

      <MvCALL ACTION="http://.../md5.php"
      METHOD="post"
      FIELDS="l.string">
      <MvASSIGN NAME="l.checksum" VALUE="{decodeentites(callvalue)}">
      </MvCALL>

      I don't know about fields being l.string, but I don't have a form so I
      want to send a string to md5.php. This doesn't work, so does anybody
      know the proper way to handle a situation like this?

      Thank You,
      Andrew

      On Fri, 2005-03-04 at 01:24 +0100, Ivo Truxa wrote:
      > Although I do not think that the script uses any features not available in
      > former versions, you can try updating to the latest Empresa version. Well,
      > you can try it first updating your Mia and testing it locally. The script
      > definitely runs on numerous servers without problems (and Mia as well).
      >
      > Ivo
      > http://mivo.truxoft.com
      >
      >
      > -----Original Message-----
      > From: Andrew Rosborough
      >
      > Has anyone experienced problems with Ivo's md5 script. It looks great,
      > but for some reason on the server I am using I've been getting wrong
      > values returned. The test function fails and of the 4 hex parts, any
      > number of them turn up as all f's or all 0's for most strings.
      >
      > If you want to see what I am talking about, the script I am trying to
      > use is at www.sorrentopizza.net/md5.mv
      >
      > Thanks, I'm not really able to begin debugging this because I'm not sure
      > I understand all of the math functions involved with md5 sums, however I
      > am willing to help as much as possible if anyone would like to try and
      > debug this problem.
      >
      > Andrew
      >
      >
      --
      Andrew Rosborough <[email protected]>


      Comment


        #4
        Trouble with MD5



        On Tue, 08 Mar 2005 13:56:25 -0500, Andrew Rosborough
        <[email protected]> gave utterance to the following:

        > I think a quick fix, since I don't have much access to my web server,
        > would be to call a simple php script.
        >
        > I'm a little unsure of how mvcall would work in this situation though.
        >
        > the php file would look like this:
        >
        > <?php
        > echo md5($string);
        > ?>
        >
        > and mvcall I have that does not work is set up like this:
        >
        > <MvCALL ACTION="http://.../md5.php"
        > METHOD="post"
        > FIELDS="l.string">
        > <MvASSIGN NAME="l.checksum" VALUE="{decodeentites(callvalue)}">
        > </MvCALL>
        >
        > I don't know about fields being l.string, but I don't have a form so I
        > want to send a string to md5.php. This doesn't work, so does anybody
        > know the proper way to handle a situation like this?
        >
        Unscope the l.string. It's exactly the same as writing an HTML form field:
        you put <input name="foo" rather than <input name="g.foo"
        --
        Richard Grevers
        Between two evils always pick the one you haven't tried



        Comment


          #5
          Trouble with MD5



          Thanks, I found that I used your tip, and since earthlink hosting only
          offers php version 3 something, my php file wasn't parsing unless I
          named it .php3. Also, $_REQUEST and $_POST array's were not available
          before php version 4.1.0 so I had to change that part to
          $HTTP_POST_VARS['string'] in order to get things up and running.

          I'm sure it is deprecated, but at least it works now.

          Andrew

          On Wed, 2005-03-09 at 10:42 +1300, Richard Grevers wrote:
          > On Tue, 08 Mar 2005 13:56:25 -0500, Andrew Rosborough
          > <[email protected]> gave utterance to the following:
          >
          > > I think a quick fix, since I don't have much access to my web server,
          > > would be to call a simple php script.
          > >
          > > I'm a little unsure of how mvcall would work in this situation though.
          > >
          > > the php file would look like this:
          > >
          > > <?php
          > > echo md5($string);
          > > ?>
          > >
          > > and mvcall I have that does not work is set up like this:
          > >
          > > <MvCALL ACTION="http://.../md5.php"
          > > METHOD="post"
          > > FIELDS="l.string">
          > > <MvASSIGN NAME="l.checksum" VALUE="{decodeentites(callvalue)}">
          > > </MvCALL>
          > >
          > > I don't know about fields being l.string, but I don't have a form so I
          > > want to send a string to md5.php. This doesn't work, so does anybody
          > > know the proper way to handle a situation like this?
          > >
          > Unscope the l.string. It's exactly the same as writing an HTML form field:
          > you put <input name="foo" rather than <input name="g.foo"
          --
          Andrew Rosborough <[email protected]>


          Comment

          Working...
          X