node-gpg icon indicating copy to clipboard operation
node-gpg copied to clipboard

Empty file created using encryption with public key

Open rjain3 opened this issue 4 years ago • 2 comments

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: https://github.com/drudge/node-gpg/issues/21

rjain3 avatar Feb 09 '21 07:02 rjain3

im having the same issue, did you figure it out

mahamukhtarr avatar Nov 16 '22 01:11 mahamukhtarr

having the same issue...

natpicone avatar May 03 '23 07:05 natpicone