computer-wilco/wilcocrypt ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple Node.js tool that can encrypt and decrypt files and data safely.
I want it to use a password to lock things with modern encryption, and it should also support compressing files first if that helps. It needs a command line version too, so I can run something like encrypting a file, decrypting it back, or sending decrypted output to a new file. When I use the CLI, it should ask me for the password instead of putting it on the command line.
Please make it work well for both small and large files, so there should be a normal API for buffers and files, plus a streaming way to handle big files without loading everything into memory. I also want clear errors when something goes wrong, like a bad password or an invalid file. If it makes sense, add TypeScript types and good inline docs so it is easy to use from code. Look up current Node docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit