diff --git a/README.md b/README.md index 2bc1362..efb4809 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Bluecrypt&trade SSH to JWK (for Browsers) +# Bluecrypt SSH to JWK (for Browsers) A minimal library to parse an SSH public key (`id_rsa.pub`) and convert it into a public JWK using Vanilla JS. @@ -16,6 +16,7 @@ Works for RSA and ECDSA public keys. * P-384 (secp384r1) * [x] node.js version * [ssh-to-jwk.js](https://git.coolaj86.com/coolaj86/ssh-to-jwk.js) +* [x] on npm as [bluecrypt-jwk-to-ssh](https://www.npmjs.com/package/bluecrypt-ssh-to-jwk) ### Need SSH Private Keys? @@ -35,14 +36,24 @@ pushd bluecrypt-ssh-to-jwk.js/ open index.html ``` -# Usage +# Install -You can also use it as a library: +You can use it as a plain-old javascript library: ```html ``` +It's also on npm: + +```bash +npm install bluecrypt-ssh-to-jwk +``` + +# Usage + +Very simple: + ```js var pub = 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCE9Uli8bGnD4hOWdeo5KKQJ/P/vOazI4MgqJK54w37emP2JwOAOdMmXuwpxbKng3KZz27mz+nKWIlXJ3rzSGMo= root@localhost'; @@ -53,7 +64,7 @@ console.info(ssh.jwk); # Other Tools in the Bluecrypt Suite -* [Bluecrypt JWK to SSH](https://git.coolaj86.com/coolaj86/jwk-to-ssh.js) (RSA, EC, SSH) +* [Bluecrypt JWK to SSH](https://git.coolaj86.com/coolaj86/bluecrypt-jwk-to-ssh.js) (RSA, EC, SSH) * [Bluecrypt ASN.1 decoder](https://git.coolaj86.com/coolaj86/asn1-parser.js) (x509, RSA, EC, etc) * [Bluecrypt ASN.1 builder](https://git.coolaj86.com/coolaj86/asn1-packer.js) (x509, RSA, EC, etc) @@ -63,3 +74,5 @@ console.info(ssh.jwk); MPL-2.0 | [Terms of Use](https://therootcompany.com/legal/#terms) | [Privacy Policy](https://therootcompany.com/legal/#privacy) + +Bluecrypt™ is owned by AJ ONeal diff --git a/package.json b/package.json index 21b9fbb..9633486 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluecrypt-ssh-to-jwk", - "version": "1.0.0", + "version": "1.0.1", "description": "SSH to JWK in < 150 lines of VanillaJS.", "homepage": "https://git.coolaj86.com/coolaj86/bluecrypt-ssh-to-jwk.js", "main": "ssh-to-jwk.js", diff --git a/ssh-to-jwk.js b/ssh-to-jwk.js index ece1cf0..8ad3da3 100644 --- a/ssh-to-jwk.js +++ b/ssh-to-jwk.js @@ -1,3 +1,6 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ;(function (exports) { 'use strict';