Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

readme and an example

  • Loading branch information...
commit 065047b54aa116c68611aa4d2ef69a939703e5c9 1 parent 36ee939
@substack authored
Showing with 29 additions and 1 deletion.
  1. +24 −0 README.markdown
  2. +3 −0  examples/generate.js
  3. +2 −1  package.json
View
24 README.markdown
@@ -0,0 +1,24 @@
+keyx
+====
+
+Algorithms, parsers, and file formats for public key cryptography key exchanges.
+
+Presently supports [DSS](http://www.itl.nist.gov/fipspubs/fip186.htm)
+with [Diffie-Hellman](http://tools.ietf.org/html/rfc4253#section-8)
+challenge/response.
+
+examples/generate.js
+
+ var keyx = require('keyx');
+ var keypair = keyx.generate('dss');
+ console.log(keypair.key('public').format('ssh2'));
+***
+ $ node examples/generate.js
+ -----BEGIN DSA PUBLIC KEY-----
+ AAAAB3NzaC1kc3MAAABJAKvQMeAdlpxSvFwEE1AvYeFqs1lPmRVHOzqnn3aiBgbz
+ u2cLuSKG0bq2aJdgJcQx62jICLsUR/3Luuph48ptCpH1d/R3zP3AtQAAABUA6Au9
+ yHZH88OCkC0vWNJ1Szm8qKsAAABITXMjWzv6ppfu+IKjFoJcr8rWQdsAiklvXVW6
+ Mzxs/i5gBrSR5y8vUMfr+TE04fe5C/xR+qBXA4cQawS8vZOMiLc8D0uM5AxoAAAA
+ SQCGoqNgw55bW7HrMy7brjGyo6SrtYJvRwM/v9zhBLTdxpA00gg9eeS8xUj36pNW
+ NoMRnZZxc4BZjToccrbQvMv6B1zL2jZWfe4=
+ -----END DSA PUBLIC KEY-----
View
3  examples/generate.js
@@ -0,0 +1,3 @@
+var keyx = require('keyx');
+var keypair = keyx.generate('dss');
+console.log(keypair.key('public').format('ssh2'));
View
3  package.json
@@ -9,7 +9,8 @@
"main" : "./index.js",
"directories" : {
"lib" : ".",
- "test" : "./test"
+ "test" : "./test",
+ "example" : "./examples"
},
"dependencies" : {
"bigint" : ">=0.0.9",
Please sign in to comment.
Something went wrong with that request. Please try again.