arshanmugam / crypto-js

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

Uncaught TypeError: Cannot read property 'init' of undefined #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I am trying to convert the string into encrypted key
here is my line : 
var key = CryptoJS.PBKDF2(password, salt, { hasher: CryptoJS.algo.SHA256, 
keySize: 128 / 32, iterations: 1000 });

when i use the "hasher: CryptoJS.algo.SHA256" it throws an error. 
if i use it without hasher it works.

Original issue reported on code.google.com by nitinkis...@gmail.com on 21 Jun 2014 at 11:06

GoogleCodeExporter commented 8 years ago
Sounds like the SHA256 file wasn't loaded.

Original comment by Jeff.Mott.OR on 21 Jun 2014 at 3:26