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

encrypt not the same with backend use java,did any params about encoding pass to md5.createHash function #18

Open
dribehance opened this issue Nov 25, 2016 · 1 comment

Comments

@dribehance
Copy link

hi,i use the lib to encrypt my request param to server ,but when it come to chinese ,the result is not the same with the backend use java md5

@rquadling
Copy link
Contributor

Currently, the md5.createHash() method in angular-md5 forces the content to lowercase before hashing. I think this is a cut and paste error from using the Gravatar API.

See #15 for an outstanding pull request.

Some options for you.

  1. Manually patch your angular-md5.js / angular-md5.min.js.
  2. Lower case your strings before calling the java md5.

If you do try step 2 and the code starts working correctly, I'd try step 1 and not step 2.

I'm not the author of this project, just another user.

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