CipherLib for T2D
by Michael Woerister · 03/17/2006 (6:58 pm) · 31 comments
Download Code File
Everything you want to know can be found here on TDN.
Suggestions are welcome! This is fully functional but still work in progress.
EDIT 02/12/06:
- added support for other image file formats.
EDIT 03/09/07:
- fixed a bug in getCipherName() console function
- set default encryption mode from ECB to CBC in console functions
-Michael
Everything you want to know can be found here on TDN.
Suggestions are welcome! This is fully functional but still work in progress.
EDIT 02/12/06:
- added support for other image file formats.
EDIT 03/09/07:
- fixed a bug in getCipherName() console function
- set default encryption mode from ECB to CBC in console functions
-Michael
About the author
#22
Michael: I'd love to see your implementation of the DTS support!
I'd also love to be able to encrypt dso files in a usable fashion but I've been so far unable to decrypt a regular stream (not used as a ResourceInstance) and have the console function "exec" work as expected.
12/17/2007 (3:08 am)
I can certify that this resource works just fine in AFX 1.5.2 / TGE 1.5.2, how I got this to work; I'm not exactly sure. Just took a bit of effort and reading of the code.Michael: I'd love to see your implementation of the DTS support!
I'd also love to be able to encrypt dso files in a usable fashion but I've been so far unable to decrypt a regular stream (not used as a ResourceInstance) and have the console function "exec" work as expected.
#23
The only thing that I needed to change was a small bug in the code: it defaults to a different encryption type of AES in script than it does in code which causes problems with any TGEA resource instance. after making them all "identically" behaving, it works.
12/17/2007 (4:19 am)
Can certify as well that it works with TGEAThe only thing that I needed to change was a small bug in the code: it defaults to a different encryption type of AES in script than it does in code which causes problems with any TGEA resource instance. after making them all "identically" behaving, it works.
#24
@Marc: Do you know by chance if this bug is still present in the current version of the resource? If so could fix it.
12/17/2007 (6:02 am)
@OneST8: DTS support was done by Joe Rossi. I once got encrypted dso files to work but I don't think I've got the code anymore. I remember that it was quite a pain. A lot of little changes were needed in some core source files.@Marc: Do you know by chance if this bug is still present in the current version of the resource? If so could fix it.
#25
One of it was the raise of the block size and a few other ...
I basically "tinkered" the solution together by fixing issue after issue starting with the TER, then the DIF and then the DTS handling.
the encryption automatically takes the original extension and puts an e in front of the file type to clearly mark it for us what it means.
12/17/2007 (6:47 am)
I don't know if it still exists and I actually am not fully sure that this was the only thing that made it work in the end as it took several dozen hours until it worked fully with all TGEA resource instances.One of it was the raise of the block size and a few other ...
I basically "tinkered" the solution together by fixing issue after issue starting with the TER, then the DIF and then the DTS handling.
the encryption automatically takes the original extension and puts an e in front of the file type to clearly mark it for us what it means.
#26
@Joe Rossi: care to share the DTS work you've done?
12/17/2007 (7:16 am)
@Michael: hah, oops, sorry 'bout that :)@Joe Rossi: care to share the DTS work you've done?
#27
The only parts I can't figure out yet are the .DSQ and .IFL files. Because I can't seem to find where in the source they are being loaded. But I have encrypted shapes with encrypted textures working over here.
12/17/2007 (1:50 pm)
Sure I'll post it up here when I get some free time. For the curious it works almost exactly like the image functions.The only parts I can't figure out yet are the .DSQ and .IFL files. Because I can't seem to find where in the source they are being loaded. But I have encrypted shapes with encrypted textures working over here.
#28
Henry
01/22/2008 (5:30 pm)
Looks like ill need to look through TNL And that resource and see if i cant apply some kind of encryption to the packets. I cant belive there there is no encryption build in for even the normal data for TGE/TGEA.Henry
#29
I wish you the best of luck with TNL but speaking from experience... it's a non-trivial task to use it within any form of TGE. I have high hopes that Torque2 will enable the use of "out of the box" TNL though.
If you should figure out a way of encrypting packets/streams over the network using CipherLib (or anything non-TNL), I'd be more than interested in seeing your work.
01/22/2008 (9:39 pm)
@Henry Garle:I wish you the best of luck with TNL but speaking from experience... it's a non-trivial task to use it within any form of TGE. I have high hopes that Torque2 will enable the use of "out of the box" TNL though.
If you should figure out a way of encrypting packets/streams over the network using CipherLib (or anything non-TNL), I'd be more than interested in seeing your work.
#30
Looks like a cool resource, good work.
05/13/2009 (1:51 pm)
Anybody ever get DSOs working with this resource?Looks like a cool resource, good work.
#31
At least I didn't do, as I don't see any reason to cypher DSOs as they aren't of any use for others.
05/13/2009 (3:14 pm)
I don't think anyone even ever considered wasting time on it ...At least I didn't do, as I don't see any reason to cypher DSOs as they aren't of any use for others.
Torque Owner Michael Woerister