This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var spdy = require('spdy'), | |
crypto = require('crypto'), | |
fs = require('fs'); | |
b64decode = function(encoded) { | |
return new Buffer(encoded || '', 'base64').toString('utf8'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var spdy = require('spdy'), | |
crypto = require('crypto'), | |
fs = require('fs'); | |
b64decode = function(encoded) { | |
return new Buffer(encoded || '', 'base64').toString('utf8'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var spdy = require('spdy'), | |
crypto = require('crypto'), | |
fs = require('fs'); | |
b64decode = function(encoded) { | |
return new Buffer(encoded || '', 'base64').toString('utf8'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var spdy = require('spdy'), | |
crypto = require('crypto'), | |
fs = require('fs'); | |
b64decode = function (encoded) { | |
return new Buffer(encoded || '', 'base64').toString('utf8'); | |
}; | |
var config = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var countries = [{ | |
"name": "Afghanistan", | |
"code": "AF", | |
"isEu": false | |
}, { | |
"name": "Albania", | |
"code": "AL", | |
"isEu": false | |
}, { | |
"name": "Algeria", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var crypto = require('crypto'); | |
var tls = require('tls'); | |
var net = require('net'); | |
function starttls(socket, options, isServer, cb) { | |
var credentials = crypto.createCredentials(options); | |
var pair = tls.createSecurePair(credentials, isServer, false, !isServer); | |
var cleartext = pipe(pair, socket); |
NewerOlder