lib/twilio-ruby/rest/utils.rb in twilio-ruby-0.4.0 vs lib/twilio-ruby/rest/utils.rb in twilio-ruby-3.0.0

- old
+ new

@@ -18,15 +18,8 @@ else something.to_s.gsub(/[A-Z][a-z]*/) {|s| "_#{s.downcase}"}.gsub(/^_/, '') end end - def self.validate(auth_token, signature, url, params={}) - data = url + params.sort.to_s - digest = OpenSSL::Digest::Digest.new('sha1') - expected = Base64.encode64(OpenSSL::HMAC.digest(digest, auth_token, data)).strip - return expected == signature - end - end end end