We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16453c7 commit 50a1f85Copy full SHA for 50a1f85
scrypt.js
@@ -153,7 +153,6 @@
153
}
154
155
return dk;
156
- //return new Buffer(dk);
157
158
159
// The following is an adaptation of scryptsy
@@ -282,8 +281,6 @@
282
281
if (!checkBufferish(salt)) {
283
throw new Error('salt must be an array or buffer');
284
285
- password = new Buffer(password);
286
- salt = new Buffer(salt);
287
288
var b = PBKDF2_HMAC_SHA256_OneIter(password, salt, p * 128 * r);
289
var B = new Uint32Array(p * 32 * r)
@@ -418,9 +415,6 @@
418
415
419
416
420
417
var derivedKey = PBKDF2_HMAC_SHA256_OneIter(password, b, dkLen);
421
- //if (typeof(Buffer) !== 'undefined') {
422
- // derivedKey = new Buffer(derivedKey);
423
- //}
424
425
// Done; don't break (which would reschedule)
426
return callback(null, 1.0, derivedKey);
0 commit comments