meltedkeyboard/ZEROVAULT — reverse-engineered prompt
Reverse engineered prompt
Build me a Rust command line tool called ZEROVAULT that works like a secure folder vault.
I want to point it at a folder, run init to create a vault, put normal files inside a work folder, then run close with a password to lock everything away. When it’s locked, the plain files should not be sitting around. Later I should be able to run open with the password and get the work folder back exactly as it was.
Please add commands for init, close, open, list, and stats. List should show what’s inside without fully unlocking the vault. Stats should show useful storage info like file count, total size, chunks, stored blobs, and how much space was saved when identical chunks are reused.
Use strong password based encryption, an encrypted manifest, a wrapped root key, and encrypted file chunks. Break files into chunks and only store duplicate chunks once. Make it safe, clear, and runnable with cargo, with helpful errors and a README showing example usage.
Want more depth? Deep Reverse