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.0 to 2.1.1

6

package.json

@@ -5,3 +5,3 @@ {

"description": "partial implementation of crypto for the browser",
"version": "2.1.0",
"version": "2.1.1",
"homepage": "https://github.com/dominictarr/crypto-browserify",

@@ -19,3 +19,3 @@ "repository": {

"dependencies": {
"sha.js": "1.3.0"
"sha.js": "2.1.0"
},

@@ -26,3 +26,3 @@ "devDependencies": {

"testling": {
"files": "test/browser.js",
"files": "test/{create-hash,create-hmac,simple}.js",
"browsers": [

@@ -29,0 +29,0 @@ "ie/8..latest",

// Original code adapted from Robert Kieffer.
// details at https://github.com/broofa/node-uuid
(function() {

@@ -26,3 +25,3 @@ var _global = this;

var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array
crypto.getRandomValues(bytes);
crypto.getRandomValues(bytes.buffer || bytes);
return bytes;

@@ -29,0 +28,0 @@ }

@@ -6,3 +6,3 @@

var data = require('crypto').pseudoRandomBytes(256)
var data = require('crypto').randomBytes(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