Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty file created using encryption with public key #39

Open
rjain3 opened this issue Feb 9, 2021 · 2 comments
Open

Empty file created using encryption with public key #39

rjain3 opened this issue Feb 9, 2021 · 2 comments

Comments

@rjain3
Copy link

rjain3 commented Feb 9, 2021

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

@mahamukhtarr
Copy link

im having the same issue, did you figure it out

@natpicone
Copy link

having the same issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants