Closed sevenbitbyte closed 4 years ago
const GpgPromised = require('gpg-promised') const KeyChain = GpgPromised.KeyChain const keychain = new KeyChain() await keychain.open() await keychain.generate('user@host.com', 'passphrase')
await keychain.generate(email, passphrase, keyType='rsa', keySize=4096)
await keychain.refreshKeys(server)
await keychain.sendKeys(keyId, server)
await keychain.signKey(to, from, local)
🚀 Feature Proposal
await keychain.generate(email, passphrase, keyType='rsa', keySize=4096)
await keychain.refreshKeys(server)
await keychain.sendKeys(keyId, server)
await keychain.signKey(to, from, local)