Skip to content

Empty file created using encryption with public key #39

Description

@rjain3

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions