Password For Zip files

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
AssiDragon
Posts: 158
Joined: Wed Apr 28, 2004 11:03 am
Location: Hungary
Contact:

Post by AssiDragon »

Weeeell there is a way afterall :lol:

Create your own 3D, sound, music and bitmap format which only your program uses, so whatever they do they can't ripp it out simply :lol: LOL
Staring through eyes of hate we kill
Are we controlled, or is our own will...?
(Edguy)
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

Dataleap wrote:Just to let you know, if the guy is smart enough to change file extension and unzip, he is probably smart enough to get a Zip password cracker. But again, who know :roll:
even easier than that.. most likely you were planning on saving the password as a string of text in your code, perhaps as a define, or in a function.. ie: #define ZIP_PASS "yourmamma"

All anyone has to do is open up your .exe file and look thru it with a common text editor. Because it was an ASCII string, it will be stored the same way within your EXE binary. Sure, they wont see that its been defined as ZIP_PASS, so they'd have to put two and two together.. but if they already recognize that the ZIP is pwd protected, they will.

Instead you'd either have to split up the password, and assemble it when the time comes.. or better yet, find the ASCII value for each letter and bit shift it to the right by 5, then define ZIP_PASS as that _number_.

#define ZIP_PASS 2349128 >> 5; //some number that equals your string, bit shifted to the right

when that time comes, simply shift the number left again and run it thru sprintf() to get the text value.

sprintf(pass, "%s", (char*)( ZIP_PASS << 5 ) );

that example code wont compile, but you get the idea.
a screen cap is worth 0x100000 DWORDS
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Post by keless »

Tequilla wrote:Once, I had the same problem. The way i solved it:
After making the zip-file I xored it by any byte. When the programs starts, it xores the file again by the same byte and safes the result in the temp-dir. This file can now be handled as a zip-file. On terminating the program it deletes the tmp-file.
This is an easy to implement and quick solution. I just want to point out that a decent hacker/cracker worth his salt will notice such a file easily. Then they have a the full file.
a screen cap is worth 0x100000 DWORDS
Post Reply