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