Skip to content

Commit

Permalink
generate full credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
ansuz committed Dec 20, 2014
1 parent 2afb568 commit 30583f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
7 changes: 6 additions & 1 deletion scripts/genconf/genconf.js → scripts/conf/genconf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var std=require("./default.json");
var passwd=require("../keys/passwd.js");
var keys=require("../keys/keys.js");

// set admin password
std.admin.password=passwd.gen(31);
Expand All @@ -16,6 +17,10 @@ std.authorizedPasswords=[31.31,31,31,31]
std.interfaces.UDPInterface[0].bind="0.0.0.0:"+
(Math.floor(Math.random()*55535)+10000);


// how about some creds?
var creds=keys.genAddress();
std.privateKey=creds.hexPriv;
std.publicKey=creds.b32pub;
std.ipv6=creds.ipv6;

console.log(JSON.stringify(std));

0 comments on commit 30583f1

Please sign in to comment.