Created
August 25, 2013 19:38
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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