Hi, I need a simple routine in C# that takes in input a ZIP filename and it scrambles it. For "scramble" I mean that it overwrites a few bytes in the ZIP files so that Windows (and other programs) do not recognize it as a valid ZIP file. Here's the routine:
void ScrambleZipFile (string fileName, bool scramble)
{
//WRITE CODE
}
If the "scramble" parameter is true, then the file is scrambled (so that it cannot be recognized as ZIP file); if the "scramble" parameter is false, then the file is restored (so that it be recognized as ZIP file again).
I would call it this way:
ScrambleZipFile (@"c:\[login to view URL]", true)
Files can be very big, so do not read them in memory.
Thanks.
Ciao,
You can get it done in the next hour since the project acceptance.
---------------------------------------------------------------------------------------------------
Best Regards,
David
$13 USD σε 1 ημέρα
4,9 (60 αξιολογήσεις)
7,3
7,3
2 freelancers are bidding on average $14 USD for this job
My plan is to mess with the file header, so other program will not recognize it as a zip file. (do something to data of the file is also an option, but if the header is enough that should be the best solution)