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

io.Reader based encryption #372

Closed
agustriutomo89 opened this issue Aug 25, 2021 · 4 comments
Closed

io.Reader based encryption #372

agustriutomo89 opened this issue Aug 25, 2021 · 4 comments
Assignees

Comments

@agustriutomo89
Copy link

agustriutomo89 commented Aug 25, 2021

Hi,

Based on this link

func EncryptFile(inFile, outFile string, conf *pdfcpu.Configuration) error {

We can encrypt file using function EncryptFile, but is there any capability for input and output accepting something like []byte or io.reader/writer? So doesn't have to write file to local disk first or am I missing something?

Thanks

@hhrutter
Copy link
Collaborator

We can definitely provide that!
Thank you for using pdfcpu 💚

@hhrutter hhrutter self-assigned this Aug 25, 2021
@hhrutter hhrutter changed the title Using Encrypt function from []byte instead of filepath io.Reader based encryption Aug 25, 2021
@agustriutomo89
Copy link
Author

We can definitely provide that!
Thank you for using pdfcpu

Cool! Thanks also for the fast response

hhrutter added a commit that referenced this issue Aug 25, 2021
@hhrutter
Copy link
Collaborator

This is fixed with the latest commit.

@agustriutomo89
Copy link
Author

Awesome @hhrutter , I tested this in my local and it's working perfectly so far, thanks again for very fast enhancement

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

No branches or pull requests

2 participants