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.1.3 to 0.1.31

2

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

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

# Node-RSA
Node.js RSA library
Node.js RSA library<br/>
Based on jsbn library from Tom Wu http://www-cs-students.stanford.edu/~tjw/jsbn/

@@ -76,4 +76,4 @@

```
**buffer** - data for encrypting, may be string, Buffer, or any object/array. Arrays and objects will encoded to JSON string first.
**source_encoding** - source encoding, works only with string buffer. Can take standard Node.js Buffer encodings (hex, utf8, base64, etc). *Utf8* by default.
**buffer** - data for encrypting, may be string, Buffer, or any object/array. Arrays and objects will encoded to JSON string first.<br/>
**source_encoding** - source encoding, works only with string buffer. Can take standard Node.js Buffer encodings (hex, utf8, base64, etc). *Utf8* by default.<br/>
**output_encoding** - encoding for output result, can also take 'buffer' to return Buffer object. Default *base64*.

@@ -85,6 +85,5 @@

**buffer** - data for decrypting. Takes Buffer object.
**buffer** - data for decrypting. Takes Buffer object or base64 encoded string.<br/>
**encoding** - encoding for result string. Can also take 'buffer' for raw Buffer object, or 'json' for automatic JSON.parse result.
## Contributing

@@ -96,3 +95,3 @@

Copyright (c) 2014 rzcoder
Copyright (c) 2014 rzcoder<br/>
All Rights Reserved.

@@ -104,3 +103,3 @@

Copyright (c) 2003-2005 Tom Wu
Copyright (c) 2003-2005 Tom Wu<br/>
All Rights Reserved.

@@ -107,0 +106,0 @@

/**
* TODO: test for compatibility with other rsa libraries
* TODO: tests for compatibility with other rsa libraries
*/

@@ -9,4 +9,2 @@

for(var i=0;i<100;i++)
describe('NodeRSA', function(){

@@ -19,3 +17,3 @@ var nodeRSA = null;

it('.generateKeyPair() should make key pair', function(){
nodeRSA = new NodeRSA({b: 512});
nodeRSA = new NodeRSA({b: 1024});
assert.instanceOf(nodeRSA.keyPair, Object);

@@ -22,0 +20,0 @@ });

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