Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
var anvil = require('anvil'), | |
bignum = require('bignum'), | |
bn = require('bn.js'); | |
anvil('Bignum functions', function (forge, hammer) { | |
var bigBuffer, bigString; | |
bigBuffer = new Buffer([ 24, 7, 144, 87, 61, 194, 2, 7 ]); | |
bigString = '1731511286119924231'; |
Testing out fedor's SSL enhancements. You don't notice the difference... At first!
Once you adjust ciphers to disable ECDH, then you get the nice surprise.
Running an http server that acts as a proxy to an SSL server, all running on localhost
.
'use strict'; | |
function attempt(fn) { | |
return Object.create({ | |
'fail': function (onError) { | |
try { | |
fn(); | |
} | |
catch (e) { | |
return onError(e); |
import org.eclipse.jetty.util.ssl.SslContextFactory; | |
import org.eclipse.jetty.server.Connector; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.server.nio.SelectChannelConnector; | |
import org.eclipse.jetty.server.ssl.SslSelectChannelConnector; | |
import org.eclipse.jetty.webapp.WebAppContext; | |
public class TestServer { | |
public static void main(String[] args) throws Exception { |
'use strict'; | |
var assert = require('assert'); | |
var https = require('https'), | |
fs = require('fs'); | |
describe('SSL Connection', function () { | |
var server, server_options; |
function Promisify(obj) { | |
var original = Object.getPrototypeOf(obj); | |
var Promise = function Promise() { | |
this._chain = []; | |
}; | |
Promise.prototype = Object.create(Promise, { | |
constructor : { |
/** | |
* Extend an Object from another Object. | |
* @param child | |
* @param parent | |
* @param proto - prototype mixins | |
* @returns {*} | |
*/ | |
function(child, parent, proto) { | |
//Constructor | |
var properties = { |
(function() { | |
try { | |
var s = d.createElement("script"); | |
s.setAttribute("type","text/javascript"); | |
s.setAttribute("src","http://<myhost>/<myscript>.js?t="+(new Date().getTime())); | |
b.appendChild(s); | |
} | |
catch(e) { | |
alert(e); | |
} |
/* | |
* Usage example: | |
* var MongoConnection = require('./mongoconnection').MongoConnection; | |
* mongo_connection = new MongoConnection(process.env.MONGOHQ_URL); | |
* | |
* See also: https://github.com/christkv/node-mongodb-native | |
* | |
* Hat tip to: http://howtonode.org/express-mongodb | |
*/ |
@implementation NSManagedObject (NSManagedObject_JSON) | |
/* | |
* | |
* This method is implemented to help NSObject+JSON with transforming to JSON as per SBJSON's JSONValue helper method. | |
* | |
*/ | |
-(NSDictionary*) proxyForJson { | |
NSDictionary * attributes = [[self entity] attributesByName]; | |
NSDictionary * relationships = [[self entity] relationshipsByName]; |