CN103218548A - Method and device of small web format (SWF) file encrypting protection - Google Patents
Method and device of small web format (SWF) file encrypting protection Download PDFInfo
- Publication number
- CN103218548A CN103218548A CN2013101407379A CN201310140737A CN103218548A CN 103218548 A CN103218548 A CN 103218548A CN 2013101407379 A CN2013101407379 A CN 2013101407379A CN 201310140737 A CN201310140737 A CN 201310140737A CN 103218548 A CN103218548 A CN 103218548A
- Authority
- CN
- China
- Prior art keywords
- file
- swf
- swf file
- encrypting
- encryption processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention relates to the field of video playing and particularly discloses a method and a device of small web format (SWF) file encrypting protection. A request for encrypting an SWF file and an encrypting mode are submitted by a client side and are uploaded to an encrypting processor through a file input interface; the SWF file is read and analyzed by the encrypting processer, a code portion and a material label portion which are analyzed from the SWF file are respectively encrypted, and the encrypted code portion or the encrypted material label portion is transmitted to a file generator; a new SWF file A is generated by the encrypted code portion through the file generator; a new SWF file B is generated by the encrypted code portion and the encrypted material label portion; and the new SWF file A or the new SWF file B is transmitted to a file memory for storing and transmitted to the client side by the file memory through a file output interface. Under the condition that normal operation of the SWF file is not damaged, codes and materials of the SWF file are encrypted and the purposes that the SWF file is effectively protected and difficult to be decrypted are achieved.
Description
Technical field
The present invention relates to the video playback technical field, especially relate to a kind of method and apparatus that the material and the code of swf file the inside are carried out encipherment protection.
Background technology
Swf (shock wave flash) is the professional format of animation software Flash, it is a kind of animation file form of supporting vector and dot pattern, be widely used in fields such as webpage design and cartoon making, the swf file is used to create the application program that comprises video, sound, figure and animation, in Flash, create original contents or from other Adobe application program (as Photoshop or Illustrator), import the swf file, the senior interactive project of the Adobe of the animation of simplicity of design, and use fast AcitonScript3.0 exploitation.Designer and developer use the swf file to create the content of PowerPoint, application program and other permission user interactions.
In order to allow the user can better appreciate the swf file, operate and control the swf file easily, to reach better audio visual effect, the number of site specialized designs video broadcasting method and the device of own website special use, in result of broadcast, sharpness, speed, special improvement has been carried out in aspects such as Play Control, and the video broadcasting method and the device of website special use can be stolen or distort to hacker who has and malicious user, and the appreciation that influences normal users is used.Also have number of site to make the exclusive swf file in own website, only allow the member to carry out the preview of video file, but the member who has can continue to upload and play on other website after reading described exclusive swf file, has influenced the exclusive broadcast rights and interests of original website.How effectively to protect the swf file, the cipher mode to the SWF file of available technology adopting is as follows:
The one, adopt the code of SWF file the inside is obscured encryption, reach the effect of obfuscated codes, but the method can reduce by certain manner of decryption, thereby can not reach the purpose of thorough encryption;
The 2nd, whole SWF file is changed into another formatted file to reach cipher round results; though can play the effect of protection code and material to a certain extent; but this technology has changed the file layout of original SWF file; and can it be reduced by certain manner of decryption, and can not reach the purpose that the SWF file is thoroughly encrypted.How effectively to protect the swf file, also do not have effective solution at present.
Summary of the invention
Technical matters solved by the invention provides a kind of method and apparatus of swf encrypting and protecting files, under the normal operation that does not destroy the swf file, the code and the material of swf file is encrypted, and reaches effective protection swf file, the purpose that is difficult for being cracked.
In order to solve the problems of the technologies described above, the invention provides a kind of method of swf encrypting and protecting files:
S1: client is submitted the request of encrypting the swf file to, and described client is submitted the cipher mode of described swf file simultaneously to;
S2: described swf file and described cipher mode are uploaded to encryption processor by the file input interface;
S3.1: described encryption processor reads described swf file;
S3.2: described encryption processor is resolved the file header of described swf file; Described encryption processor is judged according to the described file header of the described swf file of resolving, and judges that whether described swf file is the swf file of compression, handles respectively:
S3.2.a: when judging the swf file that described swf file is described compression, the swf file of the described compression of described encryption processor decompress(ion) carries out following step S3.3 with the described swf file behind the decompress(ion);
S3.2.b: when judging the swf file that described swf file is not described compression, directly carry out following step S3.3;
S3.3: described encryption processor is resolved other parts of removing described file header in the described swf file, and described encryption processor parses code section in the described swf file and material label segment;
S3.4: described encryption processor is encrypted respectively described code section in the described swf file and described material label segment respectively:
S3.4.a: described encryption processor carries out encryption with described code section by non-reversible algorithm, and the described code section after described encryption processor will be encrypted is transferred to file generator;
S3.4.b: described encryption processor compresses the encryption that transcoding is hidden with described material label segment, and the described material label segment after described encryption processor will be encrypted is transferred to described file generator;
S4.a: described file generator receives the described code section after encrypting, and the described code section after described file generator will be encrypted again generates new swf file A; Described file generator is transferred to file memory with described new swf file A;
S4.b: described file generator receives described code section and the described material label segment after encrypting, and described code section after described file generator will be encrypted again and described material label segment generate new swf file B; Described file generator is transferred to file memory with described new swf file B;
S5: described file memory receives described new swf file A or described new swf file B and stores, and described file memory is transferred to the file output interface with described new swf file A or described new swf file B;
S6: described file output interface receives described new swf file A or described new swf file B and is transferred to described client.
Preferably, described cipher mode is cipher mode A or cipher mode B.
More preferably, described cipher mode A is general the encryption, only code is obscured encryption, reaches the effect of obfuscated codes; Described cipher mode A carries out other steps except that described S3.4.b step and described S4.b step in S1~S6 step.
More preferably, described cipher mode B encrypts for strengthening, and simultaneously code and material label is carried out the strictness encryption, reaches the purpose that is difficult for being cracked; Described cipher mode B carries out other steps except that described S4.a step in S1~S6 step.
Simultaneously, the present invention also provide a kind of swf encrypting and protecting files device, comprising: client, file input interface, encryption processor, file generator, file memory and file output interface; Described client links to each other with described file output interface with described file input interface respectively, and described file input interface, described encryption processor, described file generator, described file memory and described file output interface are connected successively.
Preferably, described file input interface is one or more in VGA input interface, DVI input interface, RCA input interface or the S-Video input interface.
Preferably, described file output interface is one or more in VGA output interface, DVI output interface, S-Video output interface or the compound output interface.
The present invention compared with prior art has following beneficial effect:
The invention provides a kind of method and apparatus of swf encrypting and protecting files, under the normal operation that does not destroy the swf file, the code and the material of swf file are encrypted, reach effective protection swf file, the purpose that is difficult for being cracked.The present invention is easy and simple to handle understandable, has improved treatment effeciency, has reduced intractability; Intactly kept the operation of former SWF file, do not had destructive; And can be published on client, the convenient encryption.
Description of drawings
Fig. 1 shows the method flow synoptic diagram A of swf encrypting and protecting files;
Fig. 2 shows the method flow synoptic diagram B of swf encrypting and protecting files;
Fig. 3 shows the apparatus structure synoptic diagram of swf encrypting and protecting files.
Embodiment
For the technical scheme of understanding technical matters solved by the invention better, being provided,, the present invention is further elaborated below in conjunction with drawings and Examples.Specific embodiment described herein is only in order to explaining enforcement of the present invention, but and is not used in qualification the present invention.
Preferred embodiment 1:
As shown in Figure 1, the method flow diagram A of swf encrypting and protecting files: client is submitted the request of encrypting the swf file to, and described client is submitted the cipher mode A of described swf file simultaneously to; Described swf file and described cipher mode A are uploaded to encryption processor by the file input interface; Described encryption processor reads described swf file; Described encryption processor is resolved the file header of described swf file; Described encryption processor is judged according to the described file header of the described swf file of resolving, and judges that whether described swf file is the swf file of compression, handles respectively:
When judging the swf file that described swf file is described compression, the swf file of the described compression of described encryption processor decompress(ion) carries out following step with the described swf file behind the decompress(ion);
When judging the swf file that described swf file is not described compression, directly carry out following step;
Described encryption processor is resolved other parts of removing described file header in the described swf file, and described encryption processor parses code section in the described swf file and material label segment; Described encryption processor is encrypted the described code section in the described swf file respectively: described encryption processor carries out encryption with described code section by non-reversible algorithm, and the described code section after described encryption processor will be encrypted is transferred to file generator; Described file generator receives the described code section after encrypting, and the described code section after described file generator will be encrypted again generates new swf file A; Described file generator is transferred to file memory with described new swf file A; Described file memory receives described new swf file A and stores, and described file memory is transferred to the file output interface with described new swf file A; Described file output interface receives described new swf file A and is transferred to described client.
Preferred embodiment 2:
As shown in Figure 2, the method flow diagram B of swf encrypting and protecting files: client is submitted the request of encrypting the swf file to, and described client is submitted the cipher mode B of described swf file simultaneously to; Described swf file and described cipher mode B are uploaded to encryption processor by the file input interface; Described encryption processor reads described swf file; Described encryption processor is resolved the file header of described swf file; Described encryption processor is judged according to the described file header of the described swf file of resolving, and judges that whether described swf file is the swf file of compression, handles respectively:
When judging the swf file that described swf file is described compression, the swf file of the described compression of described encryption processor decompress(ion) carries out following step with the described swf file behind the decompress(ion);
When judging the swf file that described swf file is not described compression, directly carry out following step;
Described encryption processor is resolved other parts of removing described file header in the described swf file, and described encryption processor parses code section in the described swf file and material label segment; Described encryption processor is encrypted respectively described code section in the described swf file and described material label segment respectively: described encryption processor carries out encryption with described code section by non-reversible algorithm, and the described code section after described encryption processor will be encrypted is transferred to file generator; Described encryption processor compresses the encryption that transcoding is hidden with described material label segment, and the described material label segment after described encryption processor will be encrypted is transferred to described file generator; Described file generator receives described code section and the described material label segment after encrypting, and described code section after described file generator will be encrypted again and described material label segment generate new swf file B; Described file generator is transferred to file memory with described new swf file B; Described file memory receives described new swf file B and stores, and described file memory is transferred to the file output interface with described new swf file B; Described file output interface receives described new swf file B and is transferred to described client.
In a preferred embodiment, Fig. 3 exemplarily shows the apparatus structure synoptic diagram of swf encrypting and protecting files, comprising: client 1, file input interface 2, encryption processor 3, file generator 4, file memory 5 and file output interface 6; Described client 1 links to each other with described file output interface 6 with described file input interface 2 respectively, and described file input interface 2, described encryption processor 3, described file generator 4, described file memory 5 and described file output interface 6 are connected successively.
In the embodiment that is more preferably, described file input interface 2 is one or more in VGA input interface, DVI input interface, RCA input interface or the S-Video input interface.
In the embodiment that is more preferably, described file output interface 6 is one or more in VGA output interface, DVI output interface, S-Video output interface or the compound output interface.
Wherein, to be mobile phone, personal computer, panel computer or other with the website obtain described client 1 communicates by letter and (for example: processor) and software () device for example: FLASH software, windows operating system etc. dispose the hardware of playing the swf file.
Specific embodiment is:
The user opens the swf file that device of the present invention adds needs encryption, choose the mode that needs encryption again, select cipher mode A or cipher mode B, click and encrypt button, etc. finishing of progress bar to be encrypted, after encrypting progress bar demonstration 100%, encryption is finished, automatically eject and save as dialog box, the new swf file after encrypting is preserved.
More than by the detailed description of concrete and preferred embodiment the present invention; but those skilled in the art should be understood that; the present invention is not limited to the above embodiment; all within ultimate principle of the present invention; any modification of being done, make up and be equal to replacement etc., all be included within protection scope of the present invention.
Claims (7)
1. the method for a swf encrypting and protecting files is characterized in that, comprising:
S1: client is submitted the request of encrypting the swf file to, and described client is submitted the cipher mode of described swf file simultaneously to;
S2: described swf file and described cipher mode are uploaded to encryption processor by the file input interface;
S3.1: described encryption processor reads described swf file;
S3.2: described encryption processor is resolved the file header of described swf file; Described encryption processor is judged according to the described file header of the described swf file of resolving, and judges that whether described swf file is the swf file of compression, handles respectively:
S3.2.a: when judging the swf file that described swf file is described compression, the swf file of the described compression of described encryption processor decompress(ion) carries out following step S3.3 with the described swf file behind the decompress(ion);
S3.2.b: when judging the swf file that described swf file is not described compression, directly carry out following step S3.3;
S3.3: described encryption processor is resolved other parts of removing described file header in the described swf file, and described encryption processor parses code section in the described swf file and material label segment;
S3.4: described encryption processor is encrypted respectively described code section in the described swf file and described material label segment respectively:
S3.4.a: described encryption processor carries out encryption with described code section by non-reversible algorithm, and the described code section after described encryption processor will be encrypted is transferred to file generator;
S3.4.b: described encryption processor compresses the encryption that transcoding is hidden with described material label segment, and the described material label segment after described encryption processor will be encrypted is transferred to described file generator;
S4.a: described file generator receives the described code section after encrypting, and the described code section after described file generator will be encrypted again generates new swf file A; Described file generator is transferred to file memory with described new swf file A;
S4.b: described file generator receives described code section and the described material label segment after encrypting, and described code section after described file generator will be encrypted again and described material label segment generate new swf file B; Described file generator is transferred to file memory with described new swf file B;
S5: described file memory receives described new swf file A or described new swf file B and stores, and described file memory is transferred to the file output interface with described new swf file A or described new swf file B;
S6: described file output interface receives described new swf file A or described new swf file B and is transferred to described client.
2. the method for swf encrypting and protecting files according to claim 1 is characterized in that, described cipher mode is cipher mode A or cipher mode B.
3. the method for swf encrypting and protecting files according to claim 2 is characterized in that, described cipher mode A is general the encryption, and code is obscured encryption; Described cipher mode A carries out other steps except that described S3.4.b step and described S4.b step in S1~S6 step.
4. the method for swf encrypting and protecting files according to claim 2 is characterized in that, described cipher mode B encrypts for strengthening, and simultaneously code and material label is carried out the strictness encryption; Described cipher mode B carries out other steps except that described S4.a step in S1~S6 step.
5. the device of a swf encrypting and protecting files is characterized in that, comprising: client, file input interface, encryption processor, file generator, file memory and file output interface; Described client links to each other with described file output interface with described file input interface respectively, and described file input interface, described encryption processor, described file generator, described file memory and described file output interface are connected successively.
6. the device of swf encrypting and protecting files according to claim 5 is characterized in that, described file input interface is one or more in VGA input interface, DVI input interface, RCA input interface or the S-Video input interface.
7. the device of swf encrypting and protecting files according to claim 5 is characterized in that, described file output interface is one or more in VGA output interface, DVI output interface, S-Video output interface or the compound output interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310140737.9A CN103218548B (en) | 2013-04-22 | 2013-04-22 | A kind of method and apparatus of swf encrypting and protecting files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310140737.9A CN103218548B (en) | 2013-04-22 | 2013-04-22 | A kind of method and apparatus of swf encrypting and protecting files |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103218548A true CN103218548A (en) | 2013-07-24 |
CN103218548B CN103218548B (en) | 2016-05-11 |
Family
ID=48816325
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310140737.9A Active CN103218548B (en) | 2013-04-22 | 2013-04-22 | A kind of method and apparatus of swf encrypting and protecting files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103218548B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106203173A (en) * | 2016-07-25 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of SWF file crack means of defence and system |
CN106228082A (en) * | 2016-07-18 | 2016-12-14 | 武汉斗鱼网络科技有限公司 | The guard method of SWF file and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2650231Y (en) * | 2003-09-26 | 2004-10-20 | 北京华旗资讯数码科技有限公司 | Storage unit with optimized compression management mechanism |
CN102156842A (en) * | 2010-02-11 | 2011-08-17 | 腾讯科技(深圳)有限公司 | File encryption protection method and device |
US20120101623A1 (en) * | 2010-10-22 | 2012-04-26 | Best Wise International Computing Co., Ltd. | Encryption Method of Digital Data, Decryption Method of Encrypted Digital Data, Manufacturing System of Storage Apparatus and Manufacturing Method Thereof |
-
2013
- 2013-04-22 CN CN201310140737.9A patent/CN103218548B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2650231Y (en) * | 2003-09-26 | 2004-10-20 | 北京华旗资讯数码科技有限公司 | Storage unit with optimized compression management mechanism |
CN102156842A (en) * | 2010-02-11 | 2011-08-17 | 腾讯科技(深圳)有限公司 | File encryption protection method and device |
US20120101623A1 (en) * | 2010-10-22 | 2012-04-26 | Best Wise International Computing Co., Ltd. | Encryption Method of Digital Data, Decryption Method of Encrypted Digital Data, Manufacturing System of Storage Apparatus and Manufacturing Method Thereof |
Non-Patent Citations (4)
Title |
---|
倪应华等: "SWF矢量动画解析框架设计", 《计算机系统应用》 * |
李欣等: "一种基于标签排序的swf文件版权保护方法", 《第八届全国信息隐藏与多媒体安全学术大会湖南省计算机学会第十一届学术年会论文集》 * |
王明瑞等: "对SWF文件实现加密保护", 《福建电脑》 * |
王继州等: "一种swf文件版权保护简单实现方案", 《数字技术与应用》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106228082A (en) * | 2016-07-18 | 2016-12-14 | 武汉斗鱼网络科技有限公司 | The guard method of SWF file and system |
CN106228082B (en) * | 2016-07-18 | 2019-01-29 | 武汉斗鱼网络科技有限公司 | The guard method and system of SWF file |
CN106203173A (en) * | 2016-07-25 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of SWF file crack means of defence and system |
CN106203173B (en) * | 2016-07-25 | 2019-04-05 | 武汉斗鱼网络科技有限公司 | A kind of SWF file cracks means of defence and system |
Also Published As
Publication number | Publication date |
---|---|
CN103218548B (en) | 2016-05-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101194477B1 (en) | System and method for digital rights management of electronic content | |
EP2727041B1 (en) | Method and apparatus for dynamic, real-time ad insertion based on meta-data within a hardware based root of trust | |
JP5331920B2 (en) | Computer-readable storage medium | |
US10455286B2 (en) | Protected media decoding system supporting metadata | |
US20240022399A1 (en) | System and method for generating a cryptographic key | |
CN103294961A (en) | Method and device for file encrypting/decrypting | |
JP2016523391A (en) | Method and apparatus for encrypting plaintext data | |
CN107533613B (en) | Storage medium product, cloud printing system and PDF file access method | |
CN107005402A (en) | Access to content is provided | |
JP6698774B2 (en) | Security providing apparatus and method for common intermediate language, and security executing apparatus and method | |
KR20130093557A (en) | System, devices and methods for collaborative execution of a software application comprising at least one encrypted instruction | |
Wang et al. | CS-DRM: a cloud-based SIM DRM scheme for mobile internet | |
CN103853943A (en) | Program protection method and device | |
JP2007233426A (en) | Application execution device | |
Müller et al. | Practical decryption exfiltration: Breaking pdf encryption | |
CN109885985A (en) | A kind of method and its realization system of the anti-anti- screenshotss of downloading of online reading PDF | |
KR101267875B1 (en) | Apparatus for message encryption and decryption using virtual keyboard and recording medium storing program for executing method of the same in computer | |
CN104978539B (en) | Flash encryption and decryption methods and encryption, decryption device | |
CN101539979B (en) | Method for controlling and protecting electronic document and device thereof | |
CN103218548A (en) | Method and device of small web format (SWF) file encrypting protection | |
CN103605927A (en) | Encryption and decryption method based on embedded Linux system | |
KR20150018657A (en) | Method and apparatus for protecting of data | |
KR101480889B1 (en) | Virtual keyboard generating device and method for user authentication | |
KR20130097814A (en) | Information processing device in embedded device, method of processing information and information processing program | |
CN105760719A (en) | Method and system for decrypting ciphertext data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |