CN106657009A - Resource packet encryption method, resource packet decryption method and devices - Google Patents

Resource packet encryption method, resource packet decryption method and devices Download PDF

Info

Publication number
CN106657009A
CN106657009A CN201611024416.2A CN201611024416A CN106657009A CN 106657009 A CN106657009 A CN 106657009A CN 201611024416 A CN201611024416 A CN 201611024416A CN 106657009 A CN106657009 A CN 106657009A
Authority
CN
China
Prior art keywords
resource bag
multimedia file
resource
bag
default
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.)
Pending
Application number
CN201611024416.2A
Other languages
Chinese (zh)
Inventor
徐仁杰
高开明
李颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611024416.2A priority Critical patent/CN106657009A/en
Publication of CN106657009A publication Critical patent/CN106657009A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets

Abstract

The invention discloses a resource packet encryption method, a resource packet decryption method, a resource packet encryption device and a resource packet decryption device. The resource packet encryption method includes the following steps that: a resource packet to be encrypted is obtained; multimedia files in the resource packet are traversed, the multimedia files in the resource packet are encrypted according to a preset encryption method, so that an encrypted resource packet can be obtained; and the encrypted resource packet is stored. With the resource packet encryption method provided by the technical schemes of the invention adopted, the encryption security of the resource packet can be improved.

Description

Resource packet encryption method, resource bag decryption method and device
Technical field
The present invention relates to communication technical field, and in particular to a kind of resource packet encryption method, resource bag decryption method and dress Put.
Background technology
(WWW) is one of information service popular on internet for WWW, and HTML5 is standard generalized markup language Under the 5th material alteration using HTML, belong to the kernel language of WWW.The design mesh of HTML5 Be to support multimedia on the mobile apparatus so that user can be on the mobile apparatus based on HTML5 from positioned at long-range meter Multimedia resource (such as text, audio frequency, video, figure, animation, rest image are downloaded and played on calculation machine or content server Deng).
It is using the password for increasing resource bag password currently for the encipherment scheme of the resource bag downloaded based on Html5 Mechanism, i.e., when user uses resource bag, needing first to be input into the password for pre-setting can use the resource bag.However, due to The form relatively single (typically letter, numeral or letter and number combinatorics on words) of password, this allows other people to pass through violence The mode for cracking obtains the password of resource bag so that the encryption of the resource bag is performed practically no function.It can be seen that, it is above-mentioned that mouth is increased to resource bag The cipher mechanism security of order is relatively low.
The content of the invention
The present invention provides a kind of resource packet encryption method, resource bag decryption method and device, for improving the peace of resource bag Quan Xing.
One aspect of the present invention provides a kind of resource packet encryption method, including:
Obtain resource bag to be encrypted;
The multimedia file in above-mentioned resource bag to be encrypted is traveled through, according to default AES in above-mentioned resource bag Multimedia file be encrypted, the resource bag after being encrypted;
Store the resource bag after above-mentioned encryption.
Based on above-mentioned in a first aspect, in the first possible implementation, above-mentioned default AES is specially private There is byte AES;
It is above-mentioned the multimedia file in above-mentioned resource bag is encrypted according to default AES, including:
Call the internal memory mapping of the multimedia file that mmap functions are set up in above-mentioned resource bag;
The byte data of above-mentioned multimedia file is modified according to default privately owned byte AES;
Release the internal memory mapping of above-mentioned multimedia file.
It is above-mentioned in second possible implementation based on the first possible implementation of above-mentioned first aspect The byte data of above-mentioned multimedia file is modified according to default privately owned byte AES, including:To above-mentioned many matchmakers The byte data of body file carries out height bit flipping.
Second aspect present invention provides a kind of resource bag decryption method, including:
Resource bag to be decrypted is obtained, wherein, the multimedia file in above-mentioned resource bag to be decrypted is added using default Close algorithm for encryption is formed;
The multimedia file in above-mentioned resource bag to be decrypted is traveled through, according to default decipherment algorithm in above-mentioned resource bag Multimedia file be decrypted, the resource bag after being decrypted;
Export the resource bag after above-mentioned decryption.
Resource based on second aspect present invention, in the first possible implementation, after the above-mentioned decryption of above-mentioned output Bag, includes afterwards:
After resource coating end after above-mentioned decryption is called, the multimedia text in the resource bag after above-mentioned decryption is traveled through Part, is encrypted according to above-mentioned AES to the multimedia file in the resource bag after above-mentioned decryption.
Third aspect present invention provides a kind of resource packet encryption device, including:
Acquiring unit, for obtaining resource bag to be encrypted;
Ciphering unit, for traveling through the resource bag to be encrypted that above-mentioned acquiring unit gets in multimedia file, root The multimedia file in above-mentioned resource bag is encrypted according to default AES, the resource bag after being encrypted;
Memory cell, for storing the resource bag Jing after the encryption of above-mentioned ciphering unit.
Based on third aspect present invention, in the first possible implementation, above-mentioned default AES is specially Privately owned byte AES;
Above-mentioned ciphering unit includes:
Internal memory map unit, the internal memory mapping of the multimedia file for calling mmap functions to set up in above-mentioned resource bag;
Data convert unit, for the byte data according to default privately owned byte AES to above-mentioned multimedia file Modify;
Internal memory maps lifting unit, and the internal memory for releasing above-mentioned multimedia file maps.
Based on the first possible implementation of third aspect present invention, in second possible implementation, on State data convert unit specifically for:Height bit flipping is carried out to the byte data of above-mentioned multimedia file.
Fourth aspect present invention provides a kind of resource bag and decrypts device, including:Acquiring unit, for obtaining money to be decrypted Source is wrapped, wherein, the multimedia file in above-mentioned resource bag to be decrypted is formed using the encryption of default AES;
Decryption unit, for traveling through above-mentioned resource bag to be decrypted in multimedia file, according to default decipherment algorithm Multimedia file in above-mentioned resource bag is decrypted, the resource bag after being decrypted;
Output unit, for exporting the resource bag Jing after the decryption of above-mentioned decryption unit.
Based on fourth aspect present invention, in the first possible implementation, above-mentioned default AES is specially private There is byte AES, above-mentioned default decipherment algorithm is specially privately owned byte decipherment algorithm;
Above-mentioned decryption unit includes:
Internal memory map unit, the internal memory mapping of the multimedia file for calling mmap functions to set up in above-mentioned resource bag;
Data convert unit, for the byte data according to default privately owned byte decipherment algorithm to above-mentioned multimedia file Reduced;
Internal memory maps lifting unit, and the internal memory for releasing above-mentioned multimedia file maps.
Therefore, by the multimedia file in traversal resource bag and to the multimedia text in the resource bag in the present invention Part carries out encryption and decryption.On the one hand, because the multimedia file in resource bag is encrypted according to specific AES, therefore, not In the case of knowing the AES that the multimedia file is used, it may be difficult to the resource is viewed by way of Brute Force Multimedia file in bag, improves the security of resource bag;On the other hand, due to only entering to the multimedia file in resource bag Row encryption and decryption, therefore, it is possible to effectively improve the encryption and decryption efficiency to resource bag.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
A kind of resource packet encryption method one embodiment schematic flow sheet that Fig. 1 is provided for the present invention;
A kind of resource bag decryption method one embodiment schematic flow sheet that Fig. 2 is provided for the present invention;
A kind of resource packet encryption device one embodiment structural representation that Fig. 3 is provided for the present invention;
A kind of resource bag decryption device one embodiment structural representation that Fig. 4 is provided for the present invention.
Specific embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described reality It is only a part of embodiment of the invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area The every other embodiment that art personnel are obtained under the premise of creative work is not made, belongs to the model of present invention protection Enclose.
Embodiment one
The embodiment of the present invention provides a kind of resource packet encryption method, refers to Fig. 1, and the resource bag in the embodiment of the present invention adds Decryption method, including:
101st, resource bag to be encrypted is obtained;
In the embodiment of the present invention, the selection that can be based on user obtains resource bag to be encrypted, and for example, user downloads from And select the resource bag for needing encryption, in a step 101, obtain to be encrypted according to the selection of user in unencrypted resource bag Resource bag.Or, it is also possible to after the download of resource bag is completed (such as the download of resource bag is completed based on Html5), obtain automatically The resource bag is taken as above-mentioned resource bag (triggering the execution of step 101) to be encrypted.Certainly, the embodiment of the present invention can also Resource bag to be encrypted is obtained using alternate manner, is not construed as limiting herein.
102nd, the multimedia file in above-mentioned resource bag to be encrypted is traveled through, according to default AES to above-mentioned resource Multimedia file in bag is encrypted, the resource bag after being encrypted;
In the embodiment of the present invention, the multimedia file in the resource bag to be encrypted that traversal step 101 is obtained, and according to pre- If AES the multimedia file in above-mentioned resource bag is encrypted, the resource bag after being encrypted.Specifically, can be with According to the conventional suffix name area of various multimedia files (such as the file such as text, audio frequency, video, figure, animation, rest image) The multimedia file and non-multimedia file in resource bag is separated, and then according to default AES in above-mentioned resource bag Multimedia file is encrypted, the resource bag after being encrypted.
Optionally, above-mentioned default AES is specially privately owned byte AES.It is above-mentioned to be calculated according to default encryption Method is encrypted to the multimedia file in above-mentioned resource bag, including:Mmap functions are called to set up above-mentioned resource bag to be encrypted In multimedia file internal memory mapping;According to byte data of the default privately owned byte AES to above-mentioned multimedia file Modify;Release the internal memory mapping of above-mentioned multimedia file.Specifically, it is above-mentioned according to default privately owned byte AES pair The byte data of above-mentioned multimedia file is modified can be included:High-low-position is carried out to the byte data of above-mentioned multimedia file Upset.Certainly, it is above-mentioned the byte data of above-mentioned multimedia file is modified according to default privately owned byte AES Can be alternate manner, for example:The byte data of the high-order preset length of above-mentioned multimedia file is revised as into default byte Data, and/or, the byte data of the preset length of above-mentioned multimedia file low level is revised as into default byte data.It is above-mentioned The internal memory mapping for releasing above-mentioned multimedia file is specifically as follows:By munmap Function Solutions except the internal memory of above-mentioned multimedia file Mapping.
103rd, the resource bag after above-mentioned encryption is stored;
Resource bag after the encryption of storing step 102, so that subsequent user can use the money by specific application program Wrap in source.
It should be noted that the resource packet encryption method in the embodiment of the present invention can be realized by resource packet encryption device, The resource packet encryption device can be integrated in the way of software or hardware or software and hardware combining terminal (such as personal computer, Mobile phone, panel computer, learning machine etc.) in.
Therefore, by the multimedia file in traversal resource bag and to the multimedia text in the resource bag in the present invention Part is encrypted.On the one hand, because the multimedia file in resource bag is encrypted according to specific AES, therefore, do not knowing In the case of knowing the AES that the multimedia file is used, it may be difficult to the resource bag is viewed by way of Brute Force In multimedia file, improve the security of resource bag;On the other hand, due to only carrying out to the multimedia file in resource bag Encryption, therefore, it is possible to effectively improve the encryption efficiency to resource bag.
Embodiment two
The embodiment of the present invention provides a kind of resource bag decryption method, refers to Fig. 2, the resource bag solution in the embodiment of the present invention Decryption method, including:
201st, resource bag to be decrypted is obtained;
Wherein, the multimedia file in above-mentioned resource bag to be decrypted is formed using the encryption of default AES.Specifically , the resource packet encryption mode that the cipher mode of above-mentioned resource bag is referred in embodiment illustrated in fig. 1 is realized, is no longer gone to live in the household of one's in-laws on getting married herein State.
In the embodiment of the present invention, the selection that can be based on user obtains resource bag to be encrypted, and for example, user downloads from And select the resource bag for needing encryption, in a step 101, obtain to be encrypted according to the selection of user in unencrypted resource bag Resource bag.Or, it is also possible to when user opens the resource bag by specific application program, obtain automatically currently by above-mentioned The resource bag that application program is opened is used as above-mentioned resource bag (triggering the execution of step 201) to be encrypted.Certainly, the present invention is real Applying example can also adopt alternate manner to obtain resource bag to be decrypted, be not construed as limiting herein.
202nd, the multimedia file in above-mentioned resource bag to be decrypted is traveled through, according to default decipherment algorithm to above-mentioned resource Multimedia file in bag is decrypted, the resource bag after being decrypted;
In the embodiment of the present invention, above-mentioned decipherment algorithm is the algorithm corresponding with the AES that step 201 is referred to.In step In rapid 202, can be according to various multimedia files (such as the file such as text, audio frequency, video, figure, animation, rest image) Conventional suffix name distinguishes the multimedia file in resource bag and non-multimedia file, and then according to default decipherment algorithm to upper The multimedia file stated in resource bag is decrypted, the resource bag after being decrypted.
Optionally, above-mentioned default AES is specially privately owned byte AES, above-mentioned default decipherment algorithm tool Body is privately owned byte decipherment algorithm.It is above-mentioned the multimedia file in above-mentioned resource bag is solved according to default decipherment algorithm It is close, including:Call the internal memory mapping of the multimedia file that mmap functions are set up in above-mentioned resource bag to be decrypted;According to default Privately owned byte decipherment algorithm is reduced to the byte data of above-mentioned multimedia file;The internal memory for releasing above-mentioned multimedia file reflects Penetrate.Illustrate, the multimedia file in above-mentioned resource bag to be decrypted is by the byte data to above-mentioned multimedia file The mode for carrying out height bit flipping is encrypted and formed, then it is above-mentioned according to default privately owned byte decipherment algorithm to above-mentioned multimedia file Byte data reduced and mutually should be:Height bit flipping is carried out to the byte data of above-mentioned multimedia file.Certainly, it is above-mentioned to treat Multimedia file in the resource bag of decryption can also be formed using alternate manner encryption, for example:Above-mentioned resource bag to be decrypted In multimedia file be revised as default byte also by by the byte data of the high-order preset length of above-mentioned multimedia file Data and/or the mode that the byte data of the preset length of above-mentioned multimedia file low level is revised as default byte data is added It is close to form, then in step 202., by the byte data using corresponding privately owned byte decipherment algorithm to above-mentioned multimedia file Reduced.The internal memory mapping of the above-mentioned multimedia file of above-mentioned releasing is specifically as follows:By munmap Function Solutions except above-mentioned many The internal memory mapping of media file.
203rd, the resource bag after above-mentioned decryption is exported;
In step 203, the resource bag after step 202 decryption is exported, to call the resource bag (such as to check/play Multimedia file in the resource bag).
In order to further improve the security of resource bag, after step 203, resource coating after step 202 is decrypted After end is called, the multimedia file in the resource bag after above-mentioned decryption can also be traveled through, according to above-mentioned AES to above-mentioned The multimedia file in resource bag after decryption is encrypted.Wherein, according to above-mentioned AES to the resource after above-mentioned decryption Multimedia file in bag is encrypted the description for being referred to step 102 in embodiment illustrated in fig. 1, and here is omitted.
It should be noted that the resource bag decryption method in the embodiment of the present invention can be realized by resource bag decryption device, Resource bag decryption device can be integrated in the way of software or hardware or software and hardware combining terminal (such as personal computer, Mobile phone, panel computer, learning machine etc.) in.
Therefore, by the multimedia file in traversal resource bag and to the multimedia text in the resource bag in the present invention Part is decrypted.On the one hand, because the multimedia file in resource bag is encrypted according to specific AES, therefore, do not knowing In the case of knowing the AES that the multimedia file is used, it may be difficult to the resource bag is viewed by way of Brute Force In multimedia file, improve the security of resource bag;On the other hand, due to only carrying out to the multimedia file in resource bag Decryption, therefore, it is possible to effectively improve the decryption efficiency to resource bag.
Embodiment three
The embodiment of the present invention provides a kind of resource packet encryption device.Fig. 3 is referred to, the resource bag in the embodiment of the present invention adds Close device 300, including:
Acquiring unit 301, for obtaining resource bag to be encrypted;
Ciphering unit 302, for traveling through the resource bag to be encrypted that acquiring unit 301 gets in multimedia file, The multimedia file in above-mentioned resource bag is encrypted according to default AES, the resource bag after being encrypted;
Memory cell 303, for storing the resource bag after encrypted unit 302 is encrypted.
Optionally, above-mentioned default AES is specially privately owned byte AES.Ciphering unit 302 includes:Internal memory Map unit, the internal memory mapping of the multimedia file for calling mmap functions to set up in above-mentioned resource bag;Data convert unit, For being modified to the byte data of above-mentioned multimedia file according to default privately owned byte AES;Internal memory mapping is released Unit, the internal memory for releasing above-mentioned multimedia file maps.
Optionally, above-mentioned data convert unit specifically for:High-low-position is carried out to the byte data of above-mentioned multimedia file Upset.
It should be noted that the resource packet encryption device in the embodiment of the present invention can be with software or hardware or software and hardware knot The mode of conjunction is integrated in terminal (such as personal computer, mobile phone, panel computer, learning machine etc.).
It should be understood that the function of each functional module of the resource packet encryption device in the embodiment of the present invention can be according to above-mentioned Resource packet encryption method in embodiment one is implemented, and it implements the resource bag that process can refer in above-described embodiment one Associated description in encryption method, here is omitted.
Therefore, the resource packet encryption device in the present invention is by the multimedia file in traversal resource bag and to the money Multimedia file in the bag of source is encrypted.On the one hand, because the multimedia file in resource bag is according to specific AES Encryption, therefore, in the case where the AES that the multimedia file is used is unaware of, it may be difficult to by the side of Brute Force Formula views the multimedia file in the resource bag, improves the security of resource bag;On the other hand, due to only in resource bag Multimedia file be encrypted, therefore, it is possible to effectively improve the encryption efficiency to resource bag.
Example IV
The embodiment of the present invention provides a kind of resource bag and decrypts device.Fig. 4 is referred to, the resource bag solution in the embodiment of the present invention Close device 400, including:
Acquiring unit 401, for obtaining resource bag to be decrypted, wherein, the multimedia in above-mentioned resource bag to be decrypted File is formed using the encryption of default AES;
Decryption unit 402, for traveling through above-mentioned resource bag to be decrypted in multimedia file, according to it is default decryption calculate Method is decrypted to the multimedia file in above-mentioned resource bag, the resource bag after being decrypted;
Output unit 403, for exporting the resource bag after decrypted unit 402 is decrypted.
Optionally, above-mentioned default AES is specially privately owned byte AES, above-mentioned default decipherment algorithm tool Body is privately owned byte decipherment algorithm.Decryption unit 402 includes:Internal memory map unit, for calling mmap functions to set up above-mentioned money The internal memory mapping of the multimedia file in the bag of source;Data convert unit, for according to default privately owned byte decipherment algorithm to The byte data for stating multimedia file is reduced;Internal memory maps lifting unit, for releasing the internal memory of above-mentioned multimedia file Mapping.
It should be noted that the resource bag decryption device in the embodiment of the present invention can be with software or hardware or software and hardware knot The mode of conjunction is integrated in terminal (such as personal computer, mobile phone, panel computer, learning machine etc.).
It should be understood that the function of each functional module of the resource bag decryption device in the embodiment of the present invention can be according to above-mentioned Resource bag decryption method in embodiment two is implemented, and it implements the resource bag that process can refer in above-described embodiment two Associated description in decryption method, here is omitted.
Therefore, the resource bag decryption device in the present invention is by the multimedia file in traversal resource bag and to the money Multimedia file in the bag of source is decrypted.On the one hand, because the multimedia file in resource bag is according to specific AES Encryption, therefore, in the case where the AES that the multimedia file is used is unaware of, it may be difficult to by the side of Brute Force Formula views the multimedia file in the resource bag, improves the security of resource bag;On the other hand, due to only in resource bag Multimedia file be decrypted, therefore, it is possible to effectively improve the decryption efficiency to resource bag.
It should be noted that in several embodiments provided herein, it should be understood that disclosed device and side Method, can realize by another way.For example, device embodiment described above is only schematic, for example, above-mentioned The division of unit, only a kind of division of logic function can have other dividing mode, such as multiple units when actually realizing Or component can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
For aforesaid each method embodiment, for easy description, therefore it is all expressed as a series of combination of actions, but It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain A little steps can adopt other orders or while carry out.Secondly, those skilled in the art also should know, be retouched in specification The embodiment stated belongs to preferred embodiment, and involved action and module might not all be necessary to the present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without the portion described in detail in certain embodiment Point, may refer to the associated description of other embodiments.
It is more than the description to a kind of resource packet encryption method provided by the present invention, resource bag decryption method and device, For one of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications Will change, to sum up, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of resource packet encryption method, it is characterised in that include:
Obtain resource bag to be encrypted;
Travel through the multimedia file in the resource bag to be encrypted, according to default AES to the resource bag in it is many Media file is encrypted, the resource bag after being encrypted;
Store the resource bag after the encryption.
2. method according to claim 1, it is characterised in that the default AES is specially privately owned byte encryption Algorithm;
It is described the multimedia file in the resource bag is encrypted according to default AES, including:
Call the internal memory mapping of the multimedia file that mmap functions are set up in the resource bag;
The byte data of the multimedia file is modified according to default privately owned byte AES;
Release the internal memory mapping of the multimedia file.
3. method according to claim 2, it is characterised in that it is described according to default privately owned byte AES to described The byte data of multimedia file is modified, including:
Height bit flipping is carried out to the byte data of the multimedia file.
4. a kind of resource bag decryption method, it is characterised in that include:
Resource bag to be decrypted is obtained, wherein, the multimedia file in the resource bag to be decrypted is calculated using default encryption Method encryption is formed;
Travel through the multimedia file in the resource bag to be decrypted, according to default decipherment algorithm to the resource bag in it is many Media file is decrypted, the resource bag after being decrypted;
Export the resource bag after the decryption.
5. the resource bag decryption method according to right will go 4, it is characterised in that the resource after the output decryption Bag, includes afterwards:
After resource coating end after the decryption is called, the multimedia file in the resource bag after the decryption, root are traveled through The multimedia file in the resource bag after the decryption is encrypted according to the AES.
6. a kind of resource packet encryption device, it is characterised in that include:
Acquiring unit, for obtaining resource bag to be encrypted;
Ciphering unit, for traveling through the resource bag to be encrypted that the acquiring unit gets in multimedia file, according to pre- If AES the multimedia file in the resource bag is encrypted, the resource bag after being encrypted;
Memory cell, for storing the encryption of described in ciphering unit after resource bag.
7. resource packet encryption device according to claim 6, it is characterised in that the default AES is specially private There is byte AES;
The ciphering unit includes:
Internal memory map unit, the internal memory mapping of the multimedia file for calling mmap functions to set up in the resource bag;
Data convert unit, for being carried out to the byte data of the multimedia file according to default privately owned byte AES Modification;
Internal memory maps lifting unit, and the internal memory for releasing the multimedia file maps.
8. resource packet encryption device according to claim 7, it is characterised in that the data convert unit specifically for: Height bit flipping is carried out to the byte data of the multimedia file.
9. a kind of resource bag decrypts device, it is characterised in that include:
Acquiring unit, for obtaining resource bag to be decrypted, wherein, the multimedia file in the resource bag to be decrypted is adopted Default AES encryption is formed;
Decryption unit, for traveling through the resource bag to be decrypted in multimedia file, according to default decipherment algorithm to institute The multimedia file stated in resource bag is decrypted, the resource bag after being decrypted;
Output unit, for exporting the decryption of described in decryption unit after resource bag.
10. resource bag according to claim 9 decrypts device, it is characterised in that the default AES is specially Privately owned byte AES, the default decipherment algorithm is specially privately owned byte decipherment algorithm;
The decryption unit includes:
Internal memory map unit, the internal memory mapping of the multimedia file for calling mmap functions to set up in the resource bag;
Data convert unit, for being carried out to the byte data of the multimedia file according to default privately owned byte decipherment algorithm Reduction;
Internal memory maps lifting unit, and the internal memory for releasing the multimedia file maps.
CN201611024416.2A 2016-11-14 2016-11-14 Resource packet encryption method, resource packet decryption method and devices Pending CN106657009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611024416.2A CN106657009A (en) 2016-11-14 2016-11-14 Resource packet encryption method, resource packet decryption method and devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611024416.2A CN106657009A (en) 2016-11-14 2016-11-14 Resource packet encryption method, resource packet decryption method and devices

Publications (1)

Publication Number Publication Date
CN106657009A true CN106657009A (en) 2017-05-10

Family

ID=58808500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611024416.2A Pending CN106657009A (en) 2016-11-14 2016-11-14 Resource packet encryption method, resource packet decryption method and devices

Country Status (1)

Country Link
CN (1) CN106657009A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704588A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 File reading method and system based on mapping technology

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932135A (en) * 2012-10-25 2013-02-13 福建升腾资讯有限公司 3DES (triple data encrypt standard) encryption method
CN103258167A (en) * 2013-05-10 2013-08-21 广州杰赛科技股份有限公司 Method for protecting png picture in handheld device
CN103294961A (en) * 2013-06-07 2013-09-11 北京奇虎科技有限公司 Method and device for file encrypting/decrypting
CN103377347A (en) * 2012-04-24 2013-10-30 腾讯科技(深圳)有限公司 File encryption and decryption method and device
CN105141637A (en) * 2015-09-25 2015-12-09 中铁工程装备集团有限公司 Transmission encryption method taking flows as granularity
CN106096334A (en) * 2016-06-02 2016-11-09 中国传媒大学 The encryption method of hypermedia data and encryption device, decryption method and deciphering device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377347A (en) * 2012-04-24 2013-10-30 腾讯科技(深圳)有限公司 File encryption and decryption method and device
CN102932135A (en) * 2012-10-25 2013-02-13 福建升腾资讯有限公司 3DES (triple data encrypt standard) encryption method
CN103258167A (en) * 2013-05-10 2013-08-21 广州杰赛科技股份有限公司 Method for protecting png picture in handheld device
CN103294961A (en) * 2013-06-07 2013-09-11 北京奇虎科技有限公司 Method and device for file encrypting/decrypting
CN105141637A (en) * 2015-09-25 2015-12-09 中铁工程装备集团有限公司 Transmission encryption method taking flows as granularity
CN106096334A (en) * 2016-06-02 2016-11-09 中国传媒大学 The encryption method of hypermedia data and encryption device, decryption method and deciphering device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704588A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 File reading method and system based on mapping technology

Similar Documents

Publication Publication Date Title
CN101997834B (en) Device for supporting high-performance safety protocol
CN103107995B (en) A kind of cloud computing environment date safety storing system and method
CN107370730A (en) A kind of log-on message processing method and equipment
CN102769620B (en) A kind of safely outsourced encryption method based on attribute
CN103294958B (en) Kernel-level virtual polymerization and parallel encryption method for class-oriented Linux system
CN107204850A (en) A kind of lightweight car networking safety communicating method
CN103107889A (en) System and method for cloud computing environment data encryption storage and capable of searching
TW201445355A (en) Protecting data
CN104660551B (en) A kind of database access device and method based on webservice
CN107248984A (en) Data exchange system, method and apparatus
CN108848058A (en) Intelligent contract processing method and block catenary system
US20120278611A1 (en) Vpn-based method and system for mobile communication terminal to access data securely
WO2009036377A1 (en) Systems and methods for a template-based encryption management system
CN109491727A (en) Object serialization method, terminal device and computer readable storage medium
CN107612683A (en) A kind of encipher-decipher method, device, system, equipment and storage medium
CN103324671A (en) Information memorization and management method and device based on Webkit browser
CN107733904A (en) A kind of method, apparatus and platform of virtual-machine data encryption and decryption
CN109547198A (en) The method and system of network transmission video file
CN111274611A (en) Data desensitization method, device and computer readable storage medium
CN108718313A (en) Application of software data uses method, terminal device and server safely
CN108449315A (en) Ask calibration equipment, method and the computer readable storage medium of legitimacy
CN103577180B (en) Data processing method and device
CN107169364A (en) A kind of data security method and related system
CN107566113A (en) The symmetrical encipher-decipher methods of 3DES, system and computer-readable recording medium
CN102945356A (en) Access control method and system for search engine under cloud environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication