Skip to content

Commit d320b21

Browse files
committed
README updated
1 parent 6960009 commit d320b21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let verification = objectHmac.verifyHmac(obj, key);
4545
The verification would fail and return `false`, if...
4646
- The object to be verified doesn't provide a HMAC to check against
4747
- The object was manipulated: attributes were changed, added or deleted (deep-inspection including all nested objects/arrays)
48-
- Tha HMAC was manipulated
48+
- The HMAC was manipulated
4949

5050
### Only calculate HMAC for an object
5151

@@ -60,12 +60,12 @@ let obj = {
6060
hobbies: ['sports', 'travelling']
6161
};
6262

63-
let hmac = objectHmac.calculateHmac(obj, secret);
63+
let hmac = objectHmac.calculateHmac(obj, key);
6464

6565
// 37c2e448b6f4a72c9d8abc9a1ab6cada602c3785148caeeed5498ed065ddc69f
6666
```
6767

68-
## API
68+
## API - *under construction*
6969

7070
### createHmac(obj, key, hmacAttribute = '__hmac')
7171

0 commit comments

Comments
 (0)