[Mono-bugs] [Bug 75021][Maj] Changed - FormsAuthentication HashPasswordForStoringInConfigFile MD5 hash not always compatible to MS hash

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun May 22 11:15:55 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by sebastien at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75021

--- shadow/75021	2005-05-22 08:09:34.000000000 -0400
+++ shadow/75021.tmp.11027	2005-05-22 11:15:55.000000000 -0400
@@ -179,6 +179,31 @@
 
 but that didn't solve the problem, and the error message is still 
 there.. what else do I have to do?
 
 Thank you,
 Barbara
+
+------- Additional Comments From sebastien at ximian.com  2005-05-22 11:15 -------
+Sorry I'm don't know much about that (I'm the crypto man ;-). I didn't
+have this problem when using NLD9 (with LANG="en_US.UTF-8"). Maybe
+"man mono" can help you ?
+
+I also added some unit tests in SVN, and I wanted to avoid any
+possible encoding problems, so I transformed the characters into byte
+arrays, like that:
+
+// § (C2-A7)
+string s = Encoding.UTF8.GetString (new byte [2] { 0xC2, 0xA7 });
+Assert.AreEqual ("BD9A4C255DEEC8944D99E01A64C1E322",
+FormsAuthentication.HashPasswordForStoringInConfigFile (s, "MD5"));
+
+// ä (C3-A4)
+s = Encoding.UTF8.GetString (new byte [2] { 0xC3, 0xA4 });
+Assert.AreEqual ("8419B71C87A225A2C70B50486FBEE545",
+FormsAuthentication.HashPasswordForStoringInConfigFile (s, "MD5"));
+
+http://lists.ximian.com/archives/public/mono-patches/2005-May/058889.html
+
+If you want to re-compile System.Web.dll with the patch then the
+required changes are very simples
+http://lists.ximian.com/archives/public/mono-patches/2005-May/058888.html


More information about the mono-bugs mailing list