ruby-securecompare

string comparison method safe for use in cryptographic functions
  https://github.com/samuelkadolph/securecompare
  0
  no reviews



Securecompare borrows the secure_compare private method from ActiveSupport::MessageVerifier which lets you do safely compare strings without being vulnerable to timing attacks. Useful for Basic HTTP Authentication in your rack/rails application.