Think of the following methods:
1.split the game into three packages: load.swf,main.swf,res.swf.
2.load.swf, used to load the masterProgramAnd resources, used to encrypt websites such as Ma Qiu. Change main.swfand res.swfto the suffix main.jpg or another flash saver-protected format.
3. the Config File in main stores the variable value encrypted by the key; Res. the key can be stored in the class or textfield. The key is a combination of the Chinese class and res and main volume (the volume of SwF after cracking is different ).
4. decrypt the variable in config using the key.
With the SWF encrypted by this method, the attacker will think that he has cracked it, but there is no parameter balance in the game, such as the amount of blood required for a single knife, so on the surface, you can play, but there is no gameplay.
If not, you can do some minor actions that are not noticed by the scammers. For example, you can determine by volume + time. If the time is greater than one day, a game for websites that are afraid of cracking will pop up. You can also enter some characters to pop up the method to scold the website.
Methods found on the Internet
Among the two anti-cracking software I used, the flashincrypt encryption as function is sufficient to prevent the hacker, and the encrypted file size almost keeps the original file size, however, ASV cannot be prevented. Even though ASV is powerless after another swfencrypt encryption, the size of the files it encrypts increases greatly, and it cannot encrypt all the files. In many cases, encryption fails, especially when files are complex.
Recently I came up with a new method:
1. Make a flash, and write the following at the first frame:Code: Loadmovienum ("xxx.jpg", 0). Export it to SwF. For example, export the file named upload_mc.swf, and use swfencrypt to encrypt the upload_mc.swf file ".
2. Use flashincrypt to encrypt the SWF you want to load, and change the suffix to the. jpg format (or another format. We recommend that you use the. jpg?##.gif format. Some special formats do not have good compatibility with different servers, and some may not be accessible ), in this way, no one else knows the path of your SWF. It can also effectively prevent flash downloads.
However, after doing so, you can still get it from the IE cache. Although the difficulty increases, it is not perfect after all.