Comments (7)
Oh well. I happen to be running into the same problem on DigitalOcean via their 16.04 image.
from bcrypt.js.
Looks like an issue with processing power to me. Also, if you have the opportunity to use native packages, you should favor bcrypt
instead of this library.
from bcrypt.js.
Yep I've switched it bcrypt
now, that's at least somewhat faster, but still 10x as slow as on a local machine :(
from bcrypt.js.
By any chance... are you using 16.04 in your dyno?
from bcrypt.js.
Nah, it runs on the cedar-14 stack, which is Ubuntu 14.04
from bcrypt.js.
EventLoop blocking:
console.time('A');
bcrypt.compare(record.password, admin.password, () => {});
bcrypt.compare(record.password, admin.password, () => {});
bcrypt.compare(record.password, admin.password, () => {});
console.timeEnd('A');
A: 410.287ms
After switching to bcrypt
A: 5.101ms
WOW
from bcrypt.js.
It looks like this 'issue' can be closed now...
from bcrypt.js.
Related Issues (20)
- Trailing underscores are not accounted for. HOT 1
- Bcryptjs on browser is not functioning properly. HOT 3
- hopefully can delete email address or write them on the README.md
- Can't resolve 'crypto', BREAKING CHANGE: webpack <5 used to include polyfills? HOT 3
- Bcryptjs compares badly with jwt and its hash HOT 5
- Error: Illegal arguments: undefined, string HOT 1
- issues with compare/compareSync via docker compose env
- This repository is no longer maintained HOT 3
- How bcryptjs works?
- This library is maintained
- Bcrypt compare always return false HOT 3
- bcryptjs.compare returns illegal arguments error
- Error: Illegal arguments: string, undefined HOT 1
- How to decript password?????? HOT 5
- genSalt not working on nodejs esm
- Unclear license status HOT 2
- Vite: Module "crypto" has been externalized for browser compatibility
- Cannot Import from `bcryptjs` in a Playwright Test HOT 1
- Crypto With Nextjs X.X HOT 1
- Inquiry about the Current Status of the Library HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcrypt.js.