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 1.0.8 to 1.1.0

src/formats/openssh.js

2

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

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

@@ -121,2 +121,3 @@ # Node-RSA

* `'pkcs8'` — public key starts from `'-----BEGIN PUBLIC KEY-----'` header and private key starts from `'-----BEGIN PRIVATE KEY-----'` header
* `'openssl'` — public key starts from `'ssh-rsa'` header and private key starts from `'-----BEGIN OPENSSH PRIVATE KEY-----'` header
* `'components'` — use it for import/export key from/to raw components (see example below). For private key, importing data should contain all private key components, for public key: only public exponent (`e`) and modulus (`n`). All components (except `e`) should be Buffer, `e` could be Buffer or just normal Number.

@@ -248,2 +249,5 @@

### 1.1.0
* Added OpenSSH key format support.
### 1.0.2

@@ -250,0 +254,0 @@ * Importing keys from PEM now is less dependent on non-key data in files.

@@ -0,0 +0,0 @@ var crypto = require('crypto');

@@ -0,0 +0,0 @@ var crypto = require('crypto');

@@ -34,2 +34,3 @@ var _ = require('../utils')._;

components: require('./components'),
openssh: require('./openssh'),

@@ -36,0 +37,0 @@ isPrivateExport: function (format) {

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