show example of non-random secret

This commit is contained in:
AJ ONeal 2018-04-25 11:29:59 -06:00
parent 6eae454bed
commit 26da6c84cc
1 changed files with 2 additions and 3 deletions

View File

@ -9,12 +9,11 @@
// This demo is used with tunnel-server.js and tunnel-client.js // This demo is used with tunnel-server.js and tunnel-client.js
// //
var crypto = require('crypto');
var email = 'john.doe@gmail.com'; var email = 'john.doe@gmail.com';
var domains = [ 'example.com' ]; var domains = [ 'example.com' ];
var agreeLeTos = true; var agreeLeTos = true;
var secret = crypto.randomBytes(16).toString('hex'); //var secret = "My Little Brony";
var secret = require('crypto').randomBytes(16).toString('hex');
require('../').create({ require('../').create({
version: 'draft-11' version: 'draft-11'