diff options
author | Andrei Zmievski <andrei@php.net> | 2006-03-03 22:46:55 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2006-03-03 22:46:55 +0000 |
commit | a5f9807b76c34ce5e24beb9ced917ebe6849fcb8 (patch) | |
tree | 7fab03c74193cfd989b777a40dc66e3668a25fca /unicode-gotchas.txt | |
parent | 5d77a462f64ce18ddb8213ee91bd0ffac4c531bb (diff) | |
download | php-git-a5f9807b76c34ce5e24beb9ced917ebe6849fcb8.tar.gz |
Add note about md5().
Diffstat (limited to 'unicode-gotchas.txt')
-rw-r--r-- | unicode-gotchas.txt | 6 |
1 files changed, 6 insertions, 0 deletions
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. |