Skip to content

Commit

Permalink
docs language
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Nov 3, 2024
1 parent c84872a commit fe28d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

Sign a session cookie with a secret key (HMAC).

This will stringify a JSON object in a [stable format](https://github.com/ahdinosaur/json-canon), then use an [HMAC key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey#hmac_key_generation) to create a signature. The final cookie value includes a token that is the signature concatted with the JSON you passed in, all base64 encoded.
This will stringify a JSON object in a [stable format](https://github.com/ahdinosaur/json-canon), then use an [HMAC key](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey#hmac_key_generation) to create a signature. The final cookie value includes a token that is the signature concatenated with the JSON you passed in, all base64 encoded.

This conveniently [includes a command](#generate-a-secret-key) to generate keys as well.

Expand Down

0 comments on commit fe28d1c

Please sign in to comment.