(armored)
| 83 | } |
| 84 | |
| 85 | async function readArmoredPrivate(armored) { |
| 86 | try { |
| 87 | const publicKey = await readKey({armoredKey: armored}); |
| 88 | const privateKey = new PrivateKeyGPG(publicKey.toPacketList()); |
| 89 | return {publicKey, privateKey}; |
| 90 | } catch (e) { |
| 91 | console.log('Parsing armored key from GnuPG failed', e); |
| 92 | } |
| 93 | } |