bcrypt.js
bcrypt.js copied to clipboard
Bcryptjs on browser is not functioning properly.
tried using bycryptjs on the browser, It kept on throwing the error.
Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
When i checked WebCryptoAPI i saw it has full support on my current browser Chrome according to mdn web docs
setRandomFallbackis missing. I log the contents of bycrypt after setting a variableconst bcrypt = dcodeIO.bcrypt;and there was no function calledsetRandomFallback
I have the same issue :)
Facing this on a React Native expo app:
- "react-native": "0.68.2",
- "bcryptjs": "2.4.3",
maybe the browser is outdated, it work, see https://jsfiddle.net/8np0bkmr/
