crypto-browserify
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -5,3 +5,3 @@ { | ||
"description": "partial implementation of crypto for the browser", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"homepage": "https://github.com/dominictarr/crypto-browserify", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -18,3 +18,3 @@ // JavaScript PBKDF2 Implementation | ||
setTimeout(function () { | ||
cb(null, exports.pbkdf2(password, salt, iterations, keylen)) | ||
cb(null, exports.pbkdf2Sync(password, salt, iterations, keylen)) | ||
}) | ||
@@ -21,0 +21,0 @@ } |
// Original code adapted from Robert Kieffer. | ||
// details at https://github.com/broofa/node-uuid | ||
(function() { | ||
@@ -25,3 +26,3 @@ var _global = this; | ||
var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array | ||
crypto.getRandomValues(bytes.buffer || bytes); | ||
crypto.getRandomValues(bytes); | ||
return bytes; | ||
@@ -28,0 +29,0 @@ } |
@@ -6,3 +6,3 @@ | ||
var data = require('crypto').randomBytes(256) | ||
var data = require('crypto').pseudoRandomBytes(256) | ||
@@ -9,0 +9,0 @@ ;['sha1', 'sha256', 'md5'].forEach(function (alg) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39011
21
1075