-
Notifications
You must be signed in to change notification settings - Fork 17
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
Password based file encryption #39
Comments
@nkprince007 I would like to up this issue. |
Sure, go ahead. |
@nkprince007 can you elaborate this issue? |
Sure, multer provides an event However, make sure that encryption is only optional and not enforced. |
@nkprince007 I found that event callbacks don't work. Ref: https://stackoverflow.com/questions/32045027/multer-callbacks-not-working. What to do in this case? |
Well, in that case we could ditch Reference: https://gist.github.com/paambaati/db2df71d80f20c10857d#file-upload_demo_nodejs-js |
@nkprince007 can you tell me how will a user download an uploaded file from the server?, btw I have implemented formidable and have encrypted the file successfully. Also is it necessary to store encrypted file in uploads directory and delete the original file after encryption? |
Yes, you'd need to delete the original once encryption is done. Actually, for now, I'm serving the entire directory statically instead of a standard download procedure. I'd rather want to proceed with the same thing than writing a download procedure. So, if possible, try to compress the files once uploaded and then use encryption on the zipped file rather than encrypting the file. And it should be possible to manually decrypt the file (offline too) with a password. |
@nkprince007 any references on how to manually decrypt(offline too) with a password. I compressed the files using fs.exec() and then encrypted it as a .dat file, is it ok? |
Adds encryption to uploaded files Fixes issue NITDgpOS#39
Adds encryption to uploaded files Fixes issue NITDgpOS#39
Reference: https://stackoverflow.com/questions/35449630/how-to-encrypt-file-using-express-multer
The text was updated successfully, but these errors were encountered: