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

Use with Node streams #21

Open
jemc opened this issue Nov 20, 2020 · 1 comment
Open

Use with Node streams #21

jemc opened this issue Nov 20, 2020 · 1 comment

Comments

@jemc
Copy link

jemc commented Nov 20, 2020

I have a project where I want to encrypt a streaming input to a streaming output, without having to hold the entire large buffer in memory at any given time. I noticed that this fernet library does not seem to support this currently (though please correct me if I am wrong on this).

I plan to hack together a solution that uses this library as much as possible, but does support streaming encryption. If I do so, are you interested in considering such a feature for merging back into the main library?

If so, I can try to put together a pull request for it. If not, I'll save my time and just get my own application working.

@mraleson
Copy link

For anyone looking for something similar. I just hacked together a decrypt function in Node. It could easily changed Node crypto's streams. Here is the untested node decrypt code..

Here is the documentation for Node cryptos streams. I used their non streams update/finalize functions but it would be easy to change that.

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

2 participants