Sha256: 95d94868e99fcfdebac1b275029752d19417ace59e3a516a1a53e53245f8071d
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
<!DOCTYPE html> <title>HMAC Generator</title> <h1>Okay, here's what I've got</h1> <p>These are the values we used to generate the hash: <code><%= @params.inspect %></code></p> <p>Then we add the timestamp parameter: <code><%= @params_with_timestamp.inspect %></code></p> <p>To calculate the HMAC, we generate the following string based on this: <code><%= @checker.send(:message_string, @params_with_timestamp) %></code></p> <p>And use this secret for the HMAC generation: <code>very_secret</code></p> <p>Then we add the HMAC: <code><%= @params_with_hmac.inspect %></code></p> <p>Then, this is a nice URL to use. We URL-escape each value, and keep in mind that the order of HTTP-parameters does not matter:</p> <a href="/auth?<%= @link %>">Link</a>
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
authmac-1.0.4 | example/views/sign.erb |
authmac-1.0.3 | example/views/sign.erb |
authmac-1.0.1 | example/views/sign.erb |
authmac-1.0.0 | example/views/sign.erb |