-
-
Notifications
You must be signed in to change notification settings - Fork 274
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 fails on browser context #27
Comments
Consider using |
Good point, thanks! |
Hi, I'm using bcryptjs in browser, for WCA mode. |
I find the bcrypt.js I download from the source dist folder directly is correct. |
I got the error
Neither WebCryptoAPI nor a crypto module is available. Use bcrypt.setRandomFallback to set an alternative
when I was trying to generate salt withbcryptjs
. After taking a brief look at the source, I've found thatglobal
variable is actually not defined on browser context.The text was updated successfully, but these errors were encountered: