Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c396a20

Browse files
duncanchungseebees
authored andcommittedJul 22, 2020
docs: fix sample code in client-node/Readme.md
1 parent 75803ed commit c396a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎modules/client-node/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const cleartext = 'asdf'
6161
* the Encryption SDK returns an "encrypted message" (`result`) that includes the ciphertext
6262
* the encryption context, and the encrypted data keys.
6363
*/
64-
const { result } = await encrypt(keyring, cleartext, { context })
64+
const { result } = await encrypt(keyring, cleartext, { encryptionContext: context })
6565

6666
/* Decrypt the result using the same keyring */
6767
const { plaintext, messageHeader } = await decrypt(keyring, result)

0 commit comments

Comments
 (0)
Please sign in to comment.