1 Reply Latest reply on Mar 15, 2006 12:41 AM by mirko27

    Problems with md5/sha

    mirko27

      Well I use DatabaseServerLoginModule and MySQL.
      I run into problem where login worked fine without encrypted password and hashEncoding, but passwords did not match when using SHA/MD5.
      I created program to test MessageDigest variants of those passwords.
      And what I saw, was that mysql SHA result was different from MessageDigest one.

      Charsets are both utf8(hashcharset and mysql default).

      Any ideaS?

        • 1. Re: Problems with md5/sha
          mirko27

          Grins....
          Actually the problem is that Java base64encodes stuff and mysql does not.
          Is there any way to insert base64 encoded passwords to database with query?
          Or should i generate passwords programmatically?