bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

Bcryptjs on browser is not functioning properly.

Open victorKariuki opened this issue 3 years ago • 3 comments

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

setRandomFallback is missing. I log the contents of bycrypt after setting a variable const bcrypt = dcodeIO.bcrypt; and there was no function called setRandomFallback

victorKariuki avatar Jul 21 '22 11:07 victorKariuki

I have the same issue :)

cesarhuret avatar Aug 20 '22 21:08 cesarhuret

Facing this on a React Native expo app:

  • "react-native": "0.68.2",
  • "bcryptjs": "2.4.3",

cesarhuret avatar Aug 20 '22 21:08 cesarhuret

maybe the browser is outdated, it work, see https://jsfiddle.net/8np0bkmr/

image

ewwink avatar Sep 23 '22 15:09 ewwink