]> granicus.if.org Git - php/commitdiff
Add note about md5().
authorAndrei Zmievski <andrei@php.net>
Fri, 3 Mar 2006 22:46:55 +0000 (22:46 +0000)
committerAndrei Zmievski <andrei@php.net>
Fri, 3 Mar 2006 22:46:55 +0000 (22:46 +0000)
unicode-gotchas.txt [new file with mode: 0644]

diff --git a/unicode-gotchas.txt b/unicode-gotchas.txt
new file mode 100644 (file)
index 0000000..07d8688
--- /dev/null
@@ -0,0 +1,6 @@
+* md5() on Unicode string will obviously be different from md5() done on
+  a native encoding version of that string. This can trip up people who
+  generate signatures externally (storing them in DB for instance) and then
+  pass md5() of Unicode strings to check against that. The solution is to
+  always run md5() on a string of the same type and encoding that the
+  external md5() was run on.