The Ruby on Rails and ClojureScript experts

Feb 17, 2012

Description of how to use HMAC for secure API access. Gist:

  • send the message payload, along with a cryptographic hash of the payload
  • client and server both know a private key which is part of the hash
  • server can compute hash itself to confirm authenticity of payload.

Link: Designing a Secure REST (Web) API without OAuth