react-native-crypto-js
react-native-crypto-js copied to clipboard
HmacMD5 TypeError: Cannot read property 'init' of undefined
CryptoJS.HmacMD5('text', 'pass')
TypeError: Cannot read property 'init' of undefined at Object.HmacMD5 ...
@naxel Thanks for reporting issues. Can you please provide the detail of React Native version?
"react-native": "0.58.4"
Any update on it? Have the same issue.
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz", // react-native expo build
It is hard to read obfuscated code but looks like there some issue with the code or your obfuscation tool. You can pay attention to the line
for(var t=CryptoJS,r=t.lib,w=r.WordArray,v=r.Hasher,r=t.algo,b=[],x=0;64>x;x++)
Also I cannot find in the code where HMAC assigned to algo