Open bitsal opened 7 years ago
Encryption Current version
options = { ... privateKeys: openpgp.readArmoredKey(privkey).keys, // for signing (optional) ... };
but should be
options = { ... privateKeys: openpgp.readArmoredKey(privkey).keys .map(key => openpgp.decryptKey({ privateKey: key, passphrase: <passphrase> }).key ) // for signing (optional) ... };
Decryption Current version
options = { ... privateKey: openpgp.readArmoredKey(privkey).keys[0], // for decryption ... };
options = { ... privateKey: openpgp.decryptKey({ privateKey: openpgp.readArmoredKey(privkey).keys[0], passphrase: <passphrase> }).key // for decryption ... };
Encryption Current version
but should be
Decryption Current version
but should be