Socket
Socket
Sign inDemoInstall

crypto-browserify

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-browserify - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

package.json

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc