Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bcryptjs on browser is not functioning properly. #134

Open
victorKariuki opened this issue Jul 21, 2022 · 3 comments
Open

Bcryptjs on browser is not functioning properly. #134

victorKariuki opened this issue Jul 21, 2022 · 3 comments

Comments

@victorKariuki
Copy link

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

@cesarhuret
Copy link

I have the same issue :)

@cesarhuret
Copy link

Facing this on a React Native expo app:

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

@ewwink
Copy link

ewwink commented Sep 23, 2022

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants