I need to use bcrypt in Node, and as usual, there are 27 gazillion libraries to choose from.
The two top packages on npm are
How do they differ? Is there a compelling reason or use case to use one or the other?
Apparently the one is pure JS, and the other has bindings to a native C++ crypto library. And so the latter is faster than the former.
I've read that one should choose the fastest implementation of the slowest algorithm. So that means I should choose the non-JS one. However the JS one is even more popular. Why is that the case in node - is there a reason a "pure js" package is preferable to one that binds to a native library using node-gyp?