-
Notifications
You must be signed in to change notification settings - Fork 35
Description
I'm trying to encrypt a file with a public key. The file is getting generated but the destination file is empty, 0 bytes of data.
Is there anyone who can help me here?
gpg.importKey(publicKey, [], (err, success) => { console.log('printing success', success) if (err) { console.log('printing error', err) } else { gpg.callStreaming('C:/Users/file.csv', 'C:/Users/file.csv.gpg', ['--recipient=publickey.com', '--encrypt'], function(err){ if (err) { console.error('There was an error reading the file!', err); return; } }) } })
Please note, I have found a similar issue raised before but there was no update on the solution and it was closed. I am unable to open the same issue so creating a new issue for the same.
Reference to the previous issue raised: #21