From: Andrei Zmievski Date: Fri, 3 Mar 2006 22:46:55 +0000 (+0000) Subject: Add note about md5(). X-Git-Tag: RELEASE_1_2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5f9807b76c34ce5e24beb9ced917ebe6849fcb8;p=php Add note about md5(). --- diff --git a/unicode-gotchas.txt b/unicode-gotchas.txt new file mode 100644 index 0000000000..07d86889c4 --- /dev/null +++ b/unicode-gotchas.txt @@ -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.