Torque and passworded zips?
by Very Interactive Person · in Torque Game Engine · 04/30/2005 (3:33 am) · 30 replies
I want our game to use passworded zips instead of regular zips. You know, much like in Director for example you can pack all the assets in .dcr or .cct files, I would like to make packages that "can't" be opened, containing all the assets and scripts.
Currently only regular zip files are supported, so I would like to entend that to support passworded zips and compile a password in the engine.
The programmer helping me out has been trying to add this functionality for the past week, but no succes yet. So.... anyone has any ideas? Usefull links? Anyone coded this before?
Currently only regular zip files are supported, so I would like to entend that to support passworded zips and compile a password in the engine.
The programmer helping me out has been trying to add this functionality for the past week, but no succes yet. So.... anyone has any ideas? Usefull links? Anyone coded this before?
#22
05/07/2005 (5:31 am)
Oh, and if the challenge is a brute force crack, I don't mind spending 20$. Without the engine i don't think anyone will be able to decrypt it.
#23
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7276
If your objective is to make the scripts inaccessible, perhaps some kind of Perl-based obfuscator would be best. TGE script is very Perl-like so an obfuscator designed to strip Perl of comments and indentation and convert all symbols to meaningless short tokens would make it difficult to know what the script was intended to do.
OTOH, anyone remember the obfuscated C++ contest in the back of each issue of the now-defunct C++ Report? That was one of my favorite columns every month.
05/07/2005 (11:02 am)
Fixed URL for Cryptainer:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7276
If your objective is to make the scripts inaccessible, perhaps some kind of Perl-based obfuscator would be best. TGE script is very Perl-like so an obfuscator designed to strip Perl of comments and indentation and convert all symbols to meaningless short tokens would make it difficult to know what the script was intended to do.
OTOH, anyone remember the obfuscated C++ contest in the back of each issue of the now-defunct C++ Report? That was one of my favorite columns every month.
#24
05/07/2005 (4:15 pm)
That resource, is a bit confusing to get working... Altho i got it compiled, it didn't seem to do what i wanted. I could be wrong though
#25
05/08/2005 (3:50 am)
Quote:If your objective is to make the scripts inaccessible, perhaps some kind of Perl-based obfuscator would be best. TGE script is very Perl-like so an obfuscator designed to strip Perl of comments and indentation and convert all symbols to meaningless short tokens would make it difficult to know what the script was intended to do.Scripts are compiled into .dso files, so they can't be accessed anyway.
#26
05/08/2005 (3:16 pm)
Note that .dso's aren't currently endian-portable (ie. x86 won't work on Mac). A recent thread has a patch to address this, adding an endian-fixer for floats.
#27
05/08/2005 (6:15 pm)
They should be endian portable for 1.4.
#28
Tell me what you guys think!!!!
05/08/2005 (8:18 pm)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7787Tell me what you guys think!!!!
#30
08/10/2005 (3:47 pm)
Any version that implements an endian safe read/write for F64's. RC2 for sure, not sure that it made it into RC1. The change is trivial if you need it for your own projects; see Ritter's thread on the topic.
Torque Owner Very Interactive Person
I do think this is better then a passworded zip. It requires 2 passwords, and like Xoclutch said, there are no wizard-style tools out there to try a brute force crack.
btw, we also changed the file extension from .zip to .erp (encrypted resource package), while something like this doesn't stop the avarage computer user its already enough to keep the kiddo's out heheh.