Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 5c25e82

Browse files
authored
Merge pull request #205 from LKI/master
Be more specific on hash algorithm in README
2 parents 2c0012f + c7f9fab commit 5c25e82

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ server. The **Hawk** credentials issued to the client include the following attr
218218

219219
* Key identifier: `dh37fgj492je`
220220
* Key: `werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn`
221-
* Algorithm: `sha256`
221+
* Algorithm: `hmac sha256`
222+
* Hash: `6R4rV5iE+NPoym+WwjeHzjAGXUtLNIxmo1vpMofpLAE=`
222223

223224
The client generates the authentication header by calculating a timestamp (e.g. the number of seconds since January 1,
224225
1970 00:00:00 GMT), generating a nonce, and constructing the normalized request string (each value followed by a newline
@@ -269,7 +270,8 @@ For example:
269270

270271
* Payload: `Thank you for flying Hawk`
271272
* Content Type: `text/plain`
272-
* Hash (sha256): `Yi9LfIIFRtBEPt74PVmbTF/xVAwPn7ub15ePICfgnuY=`
273+
* Algorithm: `sha256`
274+
* Hash: `Yi9LfIIFRtBEPt74PVmbTF/xVAwPn7ub15ePICfgnuY=`
273275

274276
Results in the following input to the payload hash function (newline terminated values):
275277

0 commit comments

Comments
 (0)