Many Flash game developpers encrypt their SWFs files in order to protect their actionscript code, and make it difficult (and hopefully impossible) to anyone to crack/hack the game (scoring, locks, site locking, etc..).
There are lots of flash obfuscators, and secureSWF is, as far as I know, the most advanced: it gives a lot of control and offers tons of options. However I generally use the default presets and it works fine.
What attracted my attention is that secureSWF (Standard version) has a command line operating mode that enabled me to implement easily a right-click "Encrypt with secureSWF" item in windows explorer.
What motivated me is that I don't like the process of launching a new program, browsing my directories to find the SWF, think about an export directory, and think about options (although all this can be saved in project files, ... for big projects).
Usually I prefer something fast and simple: before uploading a SWF, I want to right-click on it in windows file explorer, select some "encrypt with secure SWF" menu item! (see screenshot below)
(The language displayed in the following screeshots is French because my XP is installed in only one language, sorry to non-french readers for the inconvenience)
This can be achieved pretty easily (windows XP), in windows file explorer:
- click menu "Options",
- select "File Types" tab,
- select "SWF" file type,
- click "Advanced". Another dialog appears:
- click "New". The following dialog appears:
- type "Encrypt with secureSWF" (or any text you want) in 1st field,
- in the 2nd field, type:
On my computer I've put it in "C:\Program Files\secureSWF\".
If the path is not valid, you should get an error dialog box when clicking "ok".
- caution: don't forget the "." after %1. As explained in the secureSWF documentation, this must be the output directory. I usually prefer overwriting the SWF I have selected, therefore I choose the current directory ("."). But I've also added a "secureSWF in encrypted/" right-click menuitem which creates a sub-folder named "encrypted" and puts the protected SWF in it. The command line for this is:
- click "OK", and close Options.
Note for advanced secureSWF users: secureSWF apparently uses the Standard preset, but you can toggle on/off various options in the command line syntax (check the doc)