progrium/ruby-jwt — pull request #15 by mgates (2013-03-05 22:33:33+00:00)
Title: Fixes a theoretical timing attack

Fixes a theoretical timing attack:

Based on devise secure_compare:
https://github.com/plataformatec/devise/blob/master/lib/devise.rb#L447

More info:
http://rdist.root.org/2010/01/07/timing-independent-array-comparison/