lib/razorpay/utility.rb in razorpay-2.3.0 vs lib/razorpay/utility.rb in razorpay-2.4.0
- old
+ new
@@ -26,9 +26,11 @@
expected_signature = OpenSSL::HMAC.hexdigest('SHA256', secret, data)
verified = secure_compare(expected_signature, signature)
raise SecurityError, 'Signature verification failed' unless verified
+
+ verified
end
def secure_compare(a, b)
return false unless a.bytesize == b.bytesize