The Sandbox Thread

6 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

IE 7 Beta 1 Javascript is not calulating md5 hash properly.

Back to Forum: The Sandbox
  • User profile image
    cyber_cne

    IE 7 Beta 1 Javascript / Math Problem.

    It seems Beta 1 is incorrectly computing a MD5 hash value.
    Link from:
    Internet Explorer7 Bugs
    http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorer7Bugs

    Using the test value  "DMC"

    the Javascript md5 hash routine returns ...

    ---------------------------
    Microsoft Internet Explorer  -IE 6
    ---------------------------
    md5=405fe4391be6c286341a2c4e1ac3429e
    ---------------------------
    Microsoft Internet Explorer  - IE7
    ---------------------------
    md5=012355e700000000ff3d10c075524250
    ---------------------------

    See the attached md5.zip for the javascript

  • User profile image
    Maurits

    Don't suppose you could narrow it down a little?  Say, by showing intermediate results on IE 6 vs. IE 7 so we can see where the differences lie?

  • User profile image
    Maurits

    What about Frez Systems' javascript MD5 implementation?  Does that generate the same hash in both browsers?

  • User profile image
    cyber_cne

    Maurits,
    I have included the javascript in the posting (The [save] link at the bottom. 

    I don't have access to the MS VM software so I can't afford to be running IE7 since it breaks our login routine.

    We take a users password hash it and store the resulting hash in the database at registration. 

    The Login process takes the password and hashes it & attempts a lookup of the userId & password in the database. 
    If the hash dosen't calculate in IE7 then IE7 will break our site. Expressionless


  • User profile image
    Maurits

    I'd love to narrow it down for you, but alas I was not invited to participate in the IE 7 beta.

  • User profile image
    Karim

    It doesn't look like either of those MD5 hashes is correct?

    For the input string "DMC", I get the hash

    a55680c75243a20a901ad32f8ddbe130

    using IE 6.

    This is the same as the hash provided from an online MD5 calculator at:

    http://ds.nfshost.com/MD5calc/

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.