Merge pull request #543 from frankcash/patch-1

Update README.md
This commit is contained in:
Bart Butler 2017-04-13 23:41:33 -07:00 committed by GitHub
commit dc04af4a63

View File

@ -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