[flexcoders] Re: checksums (md5, sha1)

2009-11-24 Thread invertedspear
I'm not questioning your need, but as a newbie to Flex I am curious why you 
would do this, and if it's something I should be doing. Is it some sort of 
stability check?
Thanks

--- In flexcoders@yahoogroups.com, sean.drexler se...@... wrote:

 I am trying to compile my code 2 times and get 2 swf files with matching 
 checksums. Does anyone know how to do this? I have managed to get this to 
 work on small chunks of code but nothing large scale, i.e. libraries (my own 
 or 3rd party) included, additional custom classes. I turned off the optimizer 
 but still do not get anything valid. I also have compared the swf files in a 
 Hex viewer and both are vastly different. Is there a compiler flag or certain 
 coding conventions that would help me achieve this?
 Thanks,
 Sean





[flexcoders] Re: checksums (md5, sha1)

2009-11-24 Thread sean.drexler
I also questioned this when I first received the request, however I learned 
that the product I am working must pass a regulatory committee which requires 
that all binary files meet this requirement before being approved.
Sean

--- In flexcoders@yahoogroups.com, invertedspear invertedsp...@... wrote:

 I'm not questioning your need, but as a newbie to Flex I am curious why you 
 would do this, and if it's something I should be doing. Is it some sort of 
 stability check?
 Thanks
 
 --- In flexcoders@yahoogroups.com, sean.drexler seand@ wrote:
 
  I am trying to compile my code 2 times and get 2 swf files with matching 
  checksums. Does anyone know how to do this? I have managed to get this to 
  work on small chunks of code but nothing large scale, i.e. libraries (my 
  own or 3rd party) included, additional custom classes. I turned off the 
  optimizer but still do not get anything valid. I also have compared the swf 
  files in a Hex viewer and both are vastly different. Is there a compiler 
  flag or certain coding conventions that would help me achieve this?
  Thanks,
  Sean
 





RE: [flexcoders] Re: checksums (md5, sha1)

2009-11-24 Thread Alex Harui
Probably impossible to do.  The SWF is zipped and has a time-stamp in it so 
you'd have to get the compiler to commit the time stamp to the SWF at exactly 
the same time on every build, and the bytes of the time stamp change the 
compression table and thus the bits.  You could add a step where you decompress 
the SWF and remove the timestamp and checksum the results.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of sean.drexler
Sent: Tuesday, November 24, 2009 1:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: checksums (md5, sha1)



I also questioned this when I first received the request, however I learned 
that the product I am working must pass a regulatory committee which requires 
that all binary files meet this requirement before being approved.
Sean

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
invertedspear invertedsp...@... wrote:

 I'm not questioning your need, but as a newbie to Flex I am curious why you 
 would do this, and if it's something I should be doing. Is it some sort of 
 stability check?
 Thanks

 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 sean.drexler seand@ wrote:
 
  I am trying to compile my code 2 times and get 2 swf files with matching 
  checksums. Does anyone know how to do this? I have managed to get this to 
  work on small chunks of code but nothing large scale, i.e. libraries (my 
  own or 3rd party) included, additional custom classes. I turned off the 
  optimizer but still do not get anything valid. I also have compared the swf 
  files in a Hex viewer and both are vastly different. Is there a compiler 
  flag or certain coding conventions that would help me achieve this?
  Thanks,
  Sean