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

PBKDF2 does not produce the expected results #36

Closed
GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments
Closed

PBKDF2 does not produce the expected results #36

GoogleCodeExporter opened this issue Aug 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a simple html document inside project dir (attached as index.html) 
which includes a script tag with src="rollups/pbkdf2.js"
2. Follow steps in the PBKDF2 example
3. Open the javascript console and inspect the contents of each example variable

What is the expected output? What do you see instead?

The output I'm expecting from CryptoJS.PBKDF2 is a hex digest or some sort, but 
I get an object.


What version of the product are you using? On what operating system?

v3, OSX Lion


Please provide any additional information below.

Original issue reported on code.google.com by marshall...@gmail.com on 15 May 2012 at 4:22

Attachments:

@GoogleCodeExporter
Copy link
Author

The object you're getting is a WordArray object. You can convert that object to 
a string of hex digits by using it in a string context, e.g.

key128Bits + ''

or by explicitly calling the toString method.

key128Bits.toString()

There's more detail in the quick-start guide's "hasher output" section.

http://code.google.com/p/crypto-js/#The_Hasher_Output

Original comment by Jeff.Mott.OR on 15 May 2012 at 4:52

@GoogleCodeExporter
Copy link
Author

Original comment by Jeff.Mott.OR on 16 May 2012 at 8:54

  • Changed state: Invalid

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