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

HMAC-SHA1 Produces different results in IE and Safari #9

Closed
GoogleCodeExporter opened this issue Apr 1, 2015 · 6 comments
Closed

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. compute has using Crypto.HMAC(Crypto.SHA1, "Message", "Key", { asBytes: true 
}); in IE
2. Repeat step (1) in Safari
3. Compare array of bytes

What is the expected output? What do you see instead?
Output should be the same, but they're different.

What version of the product are you using? On what operating system?
Windows Vista Home Edition, IE 8, Safari 5

Original issue reported on code.google.com by sergey.s...@gmail.com on 12 Nov 2010 at 5:02

@GoogleCodeExporter
Copy link
Author

I couldn't reproduce the issue. Can you attach a full and working webpage that 
will reproduce the issue? Also, if you could, please run the test suite and let 
me know if it reports any errors. 
(http://code.google.com/p/crypto-js/source/browse/branches/2.0.x#2.0.x/test)

Original comment by Jeff.Mott.OR on 12 Nov 2010 at 6:11

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Please take a look at the attached sample.
Open CryptoTest.htm in IE and Safari and you'd see different outputs while
they must be the same (I assume)

Original comment by sergey.s...@gmail.com on 12 Nov 2010 at 6:29

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

The attachment didn't seem to take. Can you try again?

Original comment by Jeff.Mott.OR on 12 Nov 2010 at 11:29

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Sorry, please find it attached.

Original comment by sergey.s...@gmail.com on 13 Nov 2010 at 12:10

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Unfortunately I still haven't been able to reproduce your results. Are there 
any more details about your setup or software versions that might be relevant?

Original comment by Jeff.Mott.OR on 16 Nov 2010 at 6:56

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Original comment by Jeff.Mott.OR on 7 Mar 2011 at 2:41

  • Changed state: Invalid
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant