Node.js Secure File Uploader / Sync with cloud storage
Budget: $10 – $30 USD
I’m looking for a compact Node.js script that syncs file between local-storage and cloud storage with encryption. The encryption PHP source file I’ll hand you. when the file is uploaded and sent to cloud-storage the file is encrypted and if the file is in local-storage it is not encrypted and in plain text.
Make sure key material and IVs are handled the right way and kept outside the repo through environment variables or a .env file.
Because the files can be of “other” types and sizes, keep the logic generic: no hard-wired MIME checks, no assumptions about destination. I may push the output to disk today or tomorrow, so expose the storage path or adapter through a simple config.
When you’re done I want:
• a single, readable Node.js module (Node 18 LTS) exposing upload, encrypt, decrypt, and download functions
• a brief README that shows setup, key management, and two CLI examples proving you can round-trip my sample PHP file without data loss
Rely only on maintained packages—built-in crypto, fs, or something like you need it—keep the code clean and commented.
Make sure key material and IVs are handled the right way and kept outside the repo through environment variables or a .env file.
Because the files can be of “other” types and sizes, keep the logic generic: no hard-wired MIME checks, no assumptions about destination. I may push the output to disk today or tomorrow, so expose the storage path or adapter through a simple config.
When you’re done I want:
• a single, readable Node.js module (Node 18 LTS) exposing upload, encrypt, decrypt, and download functions
• a brief README that shows setup, key management, and two CLI examples proving you can round-trip my sample PHP file without data loss
Rely only on maintained packages—built-in crypto, fs, or something like you need it—keep the code clean and commented.