magmajo / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

PBKDF2 does not produce the expected results #36

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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 commented 8 years ago

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