title: Transloadit: unable to generate the right signature with ruby
body: <p>I tried the example at <a href="https://transloadit.com/docs/api-docs#auth-example" rel="nofollow">https://transloadit.com/docs/api-docs#auth-example</a>.</p>
  
  <pre><code>p = JSON.generate({ auth: { expires: "2010/10/19 09:01:20+00:00", key: "2b0c45611f6440dfb64611e872ec3211"}, steps: { encode: { robot: "/video/encode" } } })
  signature = OpenSSL::HMAC.hexdigest(OpenSSL::Digest.new('sha1'), "d805593620e689465d7da6b8caf2ac7384fdb7e9", p)
  </code></pre>
  
  <p>The result is <code>00320965b86d42b6d983d1fad3f126ee7385b962</code></p>
  
  <p>But according to the documentation it should be <code>6032b7b62879829941b84df5cfaebfe4644ab4e3</code></p>
  
  <p>The Ruby code is borrowed from <a href="https://transloadit.com/docs/api-docs#authentication-implementations" rel="nofollow">https://transloadit.com/docs/api-docs#authentication-implementations</a>
  and seems to be the same at <a href="https://github.com/transloadit/ruby-sdk/blob/master/lib/transloadit/request.rb#L200" rel="nofollow">https://github.com/transloadit/ruby-sdk/blob/master/lib/transloadit/request.rb#L200</a></p>
  
  <p>PS: Since I only need the signature logic I do not want to use the Transloadit Ruby or Rails SDK.</p>
  
  <p>I use Ruby 2.1.1 and Rails 4.1</p>