Compare commits

..

No commits in common. "master" and "v1.0.0" have entirely different histories.

3 changed files with 5 additions and 11 deletions

View File

@ -56,16 +56,11 @@ npm install bluecrypt-jwk-to-ssh
Very simple: Very simple:
```js ```js
var jwk = { var pub = 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBCE9Uli8bGnD4hOWdeo5KKQJ/P/vOazI4MgqJK54w37emP2JwOAOdMmXuwpxbKng3KZz27mz+nKWIlXJ3rzSGMo= root@localhost';
"kty": "EC",
"crv": "P-256",
"x": "IT1SWLxsacPiE5Z16jkopAn8_-85rMjgyCokrnjDft4",
"y": "mP2JwOAOdMmXuwpxbKng3KZz27mz-nKWIlXJ3rzSGMo"
};
var pub = SSH.pack({ jwk: jwk, comment: 'root@localhost' }); var ssh = SSH.parse(pub);
console.info(pub); console.info(ssh.jwk);
``` ```
# Other Tools in the Bluecrypt Suite # Other Tools in the Bluecrypt Suite

View File

@ -33,8 +33,7 @@
<div class="code"><pre><code class="js-pub"> </code></pre></div> <div class="code"><pre><code class="js-pub"> </code></pre></div>
<br> <br>
<p>Made with <a href="https://git.coolaj86.com/coolaj86/bluecrypt-jwk-to-ssh.js/">jwk-to-ssh.js</a> (Browser friendly, obviously)</p> <p>Made with <a href="https://git.coolaj86.com/coolaj86/bluecrypt-jwk-to-ssh.js/">jwk-to-ssh.js</a></p>
<p>Also available for node.js: <a href="https://git.coolaj86.com/coolaj86/jwk-to-ssh.js/">jwk-to-ssh.js</a></p>
<script src="./jwk-to-ssh.js"></script> <script src="./jwk-to-ssh.js"></script>
<script> <script>

View File

@ -1,6 +1,6 @@
{ {
"name": "bluecrypt-jwk-to-ssh", "name": "bluecrypt-jwk-to-ssh",
"version": "1.0.1", "version": "1.0.0",
"description": "JWK to SSH in < 100 lines of VanillaJS.", "description": "JWK to SSH in < 100 lines of VanillaJS.",
"homepage": "https://git.coolaj86.com/coolaj86/bluecrypt-jwk-to-ssh.js", "homepage": "https://git.coolaj86.com/coolaj86/bluecrypt-jwk-to-ssh.js",
"main": "jwk-to-ssh.js", "main": "jwk-to-ssh.js",