MCPcopy Index your code
hub / github.com/dcodeIO/bcrypt.js / _async

Function _async

index.js:120–129  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

118 throw Error("illegal arguments: " + typeof rounds);
119
120 function _async(callback) {
121 nextTick(function () {
122 // Pretty thin, but salting is fast enough
123 try {
124 callback(null, genSaltSync(rounds));
125 } catch (err) {
126 callback(err);
127 }
128 });
129 }
130
131 if (callback) {
132 if (typeof callback !== "function")

Callers 3

genSaltFunction · 0.85
hashFunction · 0.85
compareFunction · 0.85

Calls 5

genSaltSyncFunction · 0.85
genSaltFunction · 0.85
_hashFunction · 0.85
hashFunction · 0.85
safeStringCompareFunction · 0.85

Tested by

no test coverage detected