I have a 'Shell' swf as the main swf to protect other things in the project.
Shell swf's procedure is:
- check stage property, so it can't be loaded as a child.
- check Capabilities.isDebugger, so it can't be run in a debugger.
- load a decoder lib. the decoder lib is built by flascc, quite difficult to decompile.
- use decoder to validate self. if failed or skipped, decoder won't do any decoding job.
- load encoded main entry of the project, decode it & add it to stage.
The problem is step 4, I want to do binary checksum of Shell swf.
Questiones are:
- How can i get the original binary content of the Shell swf file on startup ?
- if not, is Shell swf's LoaderInfo.bytes consistent in different versions of flash player ?
- if not, is there any good way to do the validation job in step 4 ?