File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ .DS_Store
12.idea
23node_modules /
Original file line number Diff line number Diff line change 11{
22 "name" : " node-rsa" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.1.3 " ,
44 "description" : " Node.js RSA library" ,
5- "main" : " dist/nodersa .js" ,
5+ "main" : " src/NodeRSA .js" ,
66 "scripts" : {
7- "test" : " grunt test" ,
8- "install" : " grunt"
7+ "test" : " grunt test"
98 },
109 "repository" : {
1110 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -218,6 +218,8 @@ module.exports = (function() {
218218 */
219219 NodeRSA . prototype . decrypt = function ( buffer , encoding ) {
220220 encoding = encoding || 'utf8' ;
221+
222+ buffer = _ . isString ( buffer ) ? new Buffer ( buffer , 'base64' ) : buffer ;
221223 var res = this . keyPair . decrypt ( buffer ) ;
222224
223225 if ( encoding == 'buffer' ) {
You can’t perform that action at this time.
0 commit comments