Using pbkdf2Sync function with sha256 gives different key with different system architecture (32 bit and 64 bit)
Opened this issue · 2 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1.Create a simple javascript and require crypto.
2.crypto.pbkdf2Sync("12345", "salt", 10000, 14, "sha256");
3.Run it in with 32 bit and 64 bit systems.
What is the expected output? What do you see instead?
Both should return same output but its observed that outputs vary.
What version of the product are you using? On what operating system?
Using node v0.12.4 to run the script created in as mentioned above, tried on
ubuntu 14.04 64 bit and 32 bit systems.
Original issue reported on code.google.com by harish...@gmail.com
on 11 Jun 2015 at 2:15
GoogleCodeExporter commented
Edit: Using Node v0.10.12 in 32 bit system and Node v0.12.4 in 64 bit system.
Original comment by harish...@gmail.com
on 12 Jun 2015 at 5:33
GoogleCodeExporter commented
The issue is with the implementation of node's crypto. Key output varies with
node v0.10.12 and v0.12.4.
Please disregard this issue. Apologies for bothering you.
Original comment by harish...@gmail.com
on 12 Jun 2015 at 6:44