From 3588ef8f18bea42a983376c1d2c96d9114c72546 Mon Sep 17 00:00:00 2001 From: Frank Cash Date: Wed, 12 Apr 2017 21:05:13 -0400 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22923b30..3d74c70c 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,8 @@ var privkey = '-----BEGIN PGP PRIVATE KEY BLOCK ... END PGP PRIVATE KEY BLOCK--- var passphrase = 'secret passphrase'; //what the privKey is encrypted with var privKeyObj = openpgp.key.readArmored(privkey).keys[0]; -privKeyObj.decrypt(passphrase);``` +privKeyObj.decrypt(passphrase); +``` ```js options = { @@ -218,6 +219,7 @@ openpgp.sign(options).then(function(signed) { }); ``` + ```js options = { message: openpgp.cleartext.readArmored(cleartext), // parse armored message