Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the MD5 lib not work proper on non-Latin characters #1

Open
dasudiy opened this issue Nov 12, 2010 · 1 comment
Open

the MD5 lib not work proper on non-Latin characters #1

dasudiy opened this issue Nov 12, 2010 · 1 comment

Comments

@dasudiy
Copy link

dasudiy commented Nov 12, 2010

e.g. md5 of Chinese word '你好' should be 7ECA689F0D3389D9DEA66AE112E5CFD7
but current caculated is 52a90a58a24523da1b9d09124b1f3861

@matt-oakes
Copy link

This tripped me up as well. Anyone who wants a replacement md5 function with works with UTF-8 characters should replace this with:

http://www.webtoolkit.info/javascript-md5.html

Works perfectly! Change the function name to lowercase md5 and it's a drop in replacement

fxb pushed a commit that referenced this issue Aug 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants