Skip to content

Instantly share code, notes, and snippets.

@kaeawc
Created August 25, 2013 19:38
Show Gist options
  • Save kaeawc/6335804 to your computer and use it in GitHub Desktop.
Save kaeawc/6335804 to your computer and use it in GitHub Desktop.
Starting as a nonuser, I sign up for an account at https://www.somewebservice.com https://www.somewebservice.com gives me public and private keys https://www.somewebservice.com generates completely random strings and stores them for user I keep keys in a secure place (not committed in code)
DATA_TO_SIGN = SOME_DATA + PRIVATE_API_KEY
md5 -s "DATA_TO_SIGN"
curl "https://www.somewebservice.com/api/v1/getAwesomeStuff" --data "API_KEY=YOUR_PUBLIC_API_KEY&signature=CALCULATED_SIGNATURE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment