klattimer/crypto-js

Uncaught TypeError: Cannot read property 'init' of undefined

Opened this issue · 1 comments

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

Sounds like the SHA256 file wasn't loaded.

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