From a5f9807b76c34ce5e24beb9ced917ebe6849fcb8 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Fri, 3 Mar 2006 22:46:55 +0000 Subject: [PATCH] Add note about md5(). --- unicode-gotchas.txt | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 unicode-gotchas.txt 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. -- 2.50.1