Compare commits

...

3 Commits

Author SHA1 Message Date
ee84766a61 simplify 2018-12-03 17:14:13 -07:00
fa90bbcdb9 add link to node version 2018-12-03 17:11:58 -07:00
90021f0416 v1.0.1: update README 2018-12-02 02:05:13 -07:00
3 changed files with 11 additions and 5 deletions

View File

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

View File

@ -33,7 +33,8 @@
<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></p> <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>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.0", "version": "1.0.1",
"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",