Skip to content

Commit

Permalink
docs: typos and more differences
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 4, 2019
1 parent 63818e3 commit 61d844c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ jose.JWE.encrypt(
)
```

#### JWE Verifying
#### JWE Decrypting

Decrypt using the private key or a shared symmetrical secret. See the
[documentation][documentation-jwe] for more.
Expand Down Expand Up @@ -268,6 +268,9 @@ in Node.js already, those are often times faster and more reliable.

#### How is it different from [`node-jws`](https://github.com/brianloveswords/node-jws) or [`node-jwa`](https://github.com/brianloveswords/node-jwa)?

- it is not only validating the signatures, it is making sure the JWE/JWS is syntactically correct,
e.g. not having duplicated header parameters between protected/unprotected or per-recipient
headers, it does the "crit" member check to make sure extensions are handled correctly
- it is providing Key and KeyStore abstractions
- there is JSON Web Encryption support
- there is no asynchronous API since node crypto is ultimately entirely synchronous
Expand Down

0 comments on commit 61d844c

Please sign in to comment.