Fully end to end encrypted anonymous chat program. Server only stores public key lookup for users and the encrypted messages. No credentials are transfered to the server, but kept in local browser storage. This allows 100% safe chatting.
https://safechat.ch
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
903 B
52 lines
903 B
|
|
/*! |
|
* Express - HTTPSServer |
|
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca> |
|
* MIT Licensed |
|
*/ |
|
|
|
/** |
|
* Module dependencies. |
|
*/ |
|
|
|
var connect = require('connect') |
|
, HTTPServer = require('./http') |
|
, https = require('https'); |
|
|
|
/** |
|
* Expose `HTTPSServer`. |
|
*/ |
|
|
|
exports = module.exports = HTTPSServer; |
|
|
|
/** |
|
* Server proto. |
|
*/ |
|
|
|
var app = HTTPSServer.prototype; |
|
|
|
/** |
|
* Initialize a new `HTTPSServer` with the |
|
* given `options`, and optional `middleware`. |
|
* |
|
* @param {Object} options |
|
* @param {Array} middleware |
|
* @api public |
|
*/ |
|
|
|
function HTTPSServer(options, middleware){ |
|
connect.HTTPSServer.call(this, options, []); |
|
this.init(middleware); |
|
}; |
|
|
|
/** |
|
* Inherit from `connect.HTTPSServer`. |
|
*/ |
|
|
|
app.__proto__ = connect.HTTPSServer.prototype; |
|
|
|
// mixin HTTPServer methods |
|
|
|
Object.keys(HTTPServer.prototype).forEach(function(method){ |
|
app[method] = HTTPServer.prototype[method]; |
|
});
|
|
|