Skip to content

Commit

Permalink
Doc: fix wrong decryption sample code in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxwolf committed Nov 24, 2015
2 parents 948132e + 69fcb0d commit 733d23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -456,7 +456,7 @@ To decrypt a JWE, and retrieve the plaintext:

```
jose.JWE.createDecrypt(keystore).
verify(input).
decrypt(input).
then(function(result) {
// {result} is a Object with:
// * header: the combined 'protected' and 'unprotected' header members
Expand All @@ -469,7 +469,7 @@ To decrypt a JWE using an implied key:

```
jose.JWE.createDecrypt(key).
verify(input).
decrypt(input).
then(function(result) {
// ....
});
Expand Down

0 comments on commit 733d23f

Please sign in to comment.