Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-forge

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-forge - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

17

js/rsa.js

@@ -1420,5 +1420,16 @@ /**

else {
var padBytes = forge.random.getBytes(padNum);
for(var i = 0; i < padNum; ++i) {
eb.putByte(Math.max(1, padBytes.charCodeAt(i)));
// pad with random non-zero values
while(padNum > 0) {
var numZeros = 0;
var padBytes = forge.random.getBytes(padNum);
for(var i = 0; i < padNum; ++i) {
padByte = padBytes.charCodeAt(i);
if(padByte === 0) {
++numZeros;
}
else {
eb.putByte(padByte);
}
}
padNum = numZeros;
}

@@ -1425,0 +1436,0 @@ }

2

package.json
{
"name": "node-forge",
"version": "0.2.5",
"version": "0.2.6",
"description": "JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilties.",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/digitalbazaar/forge",

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