Comparing version 0.1.3 to 0.1.31
{ | ||
"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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74419
2099
127