7 ms·
It looks like that one is pure JS, using native node crypt functionality for randomness. The one recommended in the article[0] actually includes a blowfish C++
by warfangle 11y ago
It looks like that one is pure JS, using native node crypt functionality for randomness.
The one recommended in the article[0] actually includes a blowfish C++ binding, with both synchronous and asynchronous methods for comparing and hashing. That binding uses NAN[1] to queue AsyncWorkers. NAN uses libuv[2] behind the scenes to launch a thread[3].
0. https://www.npmjs.com/package/bcrypt https://www.npmjs.com/package/bcrypt
1. https://github.com/nodejs/nan https://github.com/nodejs/nan
2. https://github.com/libuv/libuv https://github.com/libuv/libuv
3. https://blog.scottfrees.com/building-an-asynchronous-c-addon-for-node-js-using-nan#toc_7 https://blog.scottfrees.com/building-an-asynchronous-c-addon...