Merge pull request #843 from crcunningham/patch-1
Update README.md: Fix error
This commit is contained in:
commit
bced4513ca
|
@ -184,7 +184,7 @@ const encryptDecryptFunction = async() => {
|
||||||
encrypted = ciphertext.data // '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'
|
encrypted = ciphertext.data // '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'
|
||||||
return encrypted
|
return encrypted
|
||||||
})
|
})
|
||||||
.then(encrypted => {
|
.then(async encrypted => {
|
||||||
const options = {
|
const options = {
|
||||||
message: await openpgp.message.readArmored(encrypted), // parse armored message
|
message: await openpgp.message.readArmored(encrypted), // parse armored message
|
||||||
publicKeys: (await openpgp.key.readArmored(pubkey)).keys, // for verification (optional)
|
publicKeys: (await openpgp.key.readArmored(pubkey)).keys, // for verification (optional)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user