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

node-rsa

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-rsa - npm Package Compare versions

Comparing version 0.2.23 to 0.2.24

2

package.json
{
"name": "node-rsa",
"version": "0.2.23",
"version": "0.2.24",
"description": "Node.js RSA library",

@@ -5,0 +5,0 @@ "main": "src/NodeRSA.js",

@@ -30,3 +30,3 @@ # Node-RSA

```
*Requires nodejs >= 0.10.x or io.js >= 1.x*
> <sub>Requires nodejs >= 0.10.x or io.js >= 1.x</sub>

@@ -213,2 +213,5 @@ ### Testing

### 0.2.24
* Now used old hash APIs for webpack compatible.
### 0.2.22

@@ -215,0 +218,0 @@ * `encryptPrivate` and `decryptPublic` now using only pkcs1 (type 1) padding.

@@ -51,6 +51,6 @@ /**

var hash = crypt.createHash(hashFunction);
hash.write(seed);
hash.update(seed);
c.writeUInt32BE(i, 0);
hash.end(c);
hash.read().copy(T, i * hLen);
hash.update(c);
hash.digest().copy(T, i * hLen);
}

@@ -181,2 +181,2 @@ return T.slice(0, maskLength);

return new Scheme(key, options);
};
};

@@ -171,4 +171,4 @@ /**

var mHash = crypt.createHash(hash);
mHash.end(M);
mHash = mHash.read();
mHash.update(M);
mHash = mHash.digest();

@@ -181,4 +181,4 @@ var Mapostrophe = new Buffer(8 + hLen + sLen);

var Hapostrophe = crypt.createHash(hash);
Hapostrophe.end(Mapostrophe);
Hapostrophe = Hapostrophe.read();
Hapostrophe.update(Mapostrophe);
Hapostrophe = Hapostrophe.digest();

@@ -185,0 +185,0 @@ return H.toString("hex") === Hapostrophe.toString("hex");

Sorry, the diff of this file is not supported yet

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