Batch encryption method and device for swf files developed by as2.0 script

An encryption method and file technology, which is applied in the field of video playback, can solve problems such as low efficiency and occupying hard disk space, and achieve the effect of improving encryption efficiency

CN103226672BActive Publication Date: 2015-09-164399 NETWORK
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2015-09-16

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a batch encryption method and a batch encryption device for SWF (Shockwave Flash) files developed by the AS2.0 scripts. The batch encryption method comprises the following steps: acquiring source SWF files uploaded by a user; analyzing the source SWF files to acquire file header information, and judging whether version types of the source SWF files are AVM1 (ActionScript Virtual Machine) types according to the file header information; if the version types are the AVM1 types, according to the file header information, positioning to a DOACTION tag and a DOINITACTION tag, and obfuscating and encrypting the DOACTION tag and the DOINITACTION tag; and recombining all the encrypted tags to generate encrypted SWF files. Through batch uploading of the SWF files to the batch encryption device for the SWF files developed by an AS2.0 scripting language, the user can encrypt a large number of SWF files developed by the AS2.0 scripting language in batches, so that the encryption efficiency is greatly improved and hard disk resources on the client side are not occupied.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to video playing technology, in particular to a batch encryption method and device for SWF files developed by AS2.0 scripting language. Background technique

[0002] SWF file is a special format for Flash. It is an animation file format that supports vector and dot matrix graphics. It is widely used in web design, animation production and other fields. SWF files are also commonly called Flash files. Generally, game developers usually encrypt the SWF files in order to protect the SWF files written by themselves from being embezzled and modified casually.

[0003] In the traditional technology, the means of encrypting the SWF file is to download software capable of encrypting from the Internet, and encrypt a single SWF file. However, the above method can only encrypt a single SWF file, which is inefficient, and requires the user to download the application file from the Internet, occupying hard disk space. Contents of the inventi...

Examples

Embodiment Construction

[0031] figure 1 The flow chart of the first embodiment of the batch encryption method for SWF files developed by the AS2.0 scripting language of the present invention, as figure 1 As shown, the batch encryption method of the SWF file developed by the AS2.0 scripting language provided by the present embodiment is executed by the batch encryption device of the SWF file developed by the AS2.0 scripting language, the device is arranged on the server on the network side, and the device Get the user to upload source SWF files in batches from the terminal side, encrypt each source SWF file separately, and compress and send the encrypted source SWF files to the local directory of the terminal. The device can be implemented in the form of software and / or hardware, and the method includes:

[0032] Step S100, obtaining the source SWF file uploaded by the user;

[0033] Step S102, analyzing the source SWF file to obtain file header information, judging whether the version type of the s...