Skip to content

Commit dbefb17

Browse files
committed
minor updates for tests and readme
1 parent b542db9 commit dbefb17

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ key.encrypt(buffer, [source_encoding], [output_encoding]);
8181
key.decrypt(buffer, [encoding]);
8282
```
8383

84-
**buffer** - data for decrypting. Takes Buffer object.
84+
**buffer** - data for decrypting. Takes Buffer object or base64 encoded string.
8585
**encoding** - encoding for result string. Can also take 'buffer' for raw Buffer object, or 'json' for automatic JSON.parse result.
8686

8787

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-rsa",
3-
"version": "0.1.3",
3+
"version": "0.1.31",
44
"description": "Node.js RSA library",
55
"main": "src/NodeRSA.js",
66
"scripts": {

test/tests.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
/**
2-
* TODO: test for compatibility with other rsa libraries
2+
* TODO: tests for compatibility with other rsa libraries
33
*/
44

55
var assert = require('chai').assert;
66
var _ = require('lodash');
77
var NodeRSA = (require('../src/NodeRSA'));
88

9-
10-
for(var i=0;i<100;i++)
119
describe('NodeRSA', function(){
1210
var nodeRSA = null;
1311
var privateNodeRSA = null;
1412
var publicNodeRSA = null;
1513

1614
describe('Work with keys', function(){
1715
it('.generateKeyPair() should make key pair', function(){
18-
nodeRSA = new NodeRSA({b: 512});
16+
nodeRSA = new NodeRSA({b: 1024});
1917
assert.instanceOf(nodeRSA.keyPair, Object);
2018
});
2119

0 commit comments

Comments
 (0)