Permalink
Browse files

readme and an example

  • Loading branch information...
1 parent 36ee939 commit 065047b54aa116c68611aa4d2ef69a939703e5c9 @substack committed Mar 1, 2011
Showing with 29 additions and 1 deletion.
  1. +24 −0 README.markdown
  2. +3 −0 examples/generate.js
  3. +2 −1 package.json
View
@@ -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
@@ -0,0 +1,3 @@
+var keyx = require('keyx');
+var keypair = keyx.generate('dss');
+console.log(keypair.key('public').format('ssh2'));
View
@@ -9,7 +9,8 @@
"main" : "./index.js",
"directories" : {
"lib" : ".",
- "test" : "./test"
+ "test" : "./test",
+ "example" : "./examples"
},
"dependencies" : {
"bigint" : ">=0.0.9",

0 comments on commit 065047b

Please sign in to comment.