Use a constant time compare for comparing signatures. Fix #7

I've used constant_time_compare code found in both django and from this article http://rdist.root.org/2010/01/07/timing-independent-array-comparison/.