CN105791243A - Encryption transmission method and device and decryption playing method and device of multimedia file - Google Patents

Encryption transmission method and device and decryption playing method and device of multimedia file Download PDF

Info

Publication number
CN105791243A
CN105791243A CN201410823052.9A CN201410823052A CN105791243A CN 105791243 A CN105791243 A CN 105791243A CN 201410823052 A CN201410823052 A CN 201410823052A CN 105791243 A CN105791243 A CN 105791243A
Authority
CN
China
Prior art keywords
encryption
file
multimedia file
key
data
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
CN201410823052.9A
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.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410823052.9A priority Critical patent/CN105791243A/en
Publication of CN105791243A publication Critical patent/CN105791243A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an encryption transmission method and device and decryption playing method and device of a multimedia file, and relates to the field of information security. The main purpose is to solve the problems that the encryption is relatively complex and the decryption playing speed of the multimedia file is low. The technical scheme provided by the invention comprises following steps of firstly, obtaining the encryption mode of the multimedia file corresponding to a multimedia file identifier, the length information of an encryption secret key and the encryption secret key; through taking the length of the encryption secret key as a unit, carrying out preset logic operations to the data in the multimedia file and the encryption secret key, thus obtaining an encrypted multimedia file; through taking the encryption mode and the length information of the encryption secret key as an encryption file header, according to a front to back sequence of the encryption file header, the encryption secret key and the encrypted multimedia file, generating an encrypted data file; and finally, sending the encrypted data file to a client. The methods and the devices are mainly used for carrying out encryption transmission and decryption playing to the multimedia file.

Description

Multimedia file encryption transmission, deciphering playing method and device
Technical field
The present invention relates to information security field, particularly relate to a kind of multimedia file encryption transmission, deciphering playing method and device.
Background technology
Nowadays, the world has been enter into the information age, and computer network obtains development at full speed, and it is related to the various aspects of social life.But bring easily simultaneously for us enjoying network, also it is faced with many problems, wherein one of most distinct issues, it is simply that the problem of network information transfer safety.In order to solve network information transfer safety problem, the process of network information transfer is protected by people frequently with the form of file encryption.Data encryption refers to and expressly will be changed into ciphertext by AES and encryption key, it is achieved information hiding, thus playing the effect of protection information security.
Online broadcast while the demand deciphered in order to what meet multimedia file requirement.Common multimedia file encryption often adopts fragmentation technique, splits into several little audio frequency and video sections by a big multimedia paper document.Then the audio frequency and video section after fractionation is encrypted respectively.Time multimedia file is carried out segmentation, if the section after splitting is relatively big, then need for a long time to have downloaded one section of encrypted section that can decipher so that the time of download is longer, thus have impact on deciphering speed;If the section after splitting is more, the download of certain content can be completed at short notice, however, to ensure that the safety of data, more complicated AES can be used, this AES can make the length more than original file of the file after encryption, segmentation is more many, and the file after encryption is more big, also can reduce deciphering speed to a certain extent.
Summary of the invention
In view of this, the present invention provides a kind of multimedia file encryption transmission, deciphering playing method and device, and main purpose is in that to solve the problem that deciphering speed is low.
The technical scheme that the embodiment of the present invention adopts is:
According to one aspect of the invention, it is provided that a kind of multimedia file encryption transmission method, including:
Receive the multimedia file download solicited message that client sends, described solicited message carries the multimedia file identification that described client needs to download;
Obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
In units of the length of described encryption key, the data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;
Using the length information of described encryption mode and encryption key as encryption file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Described data file encryption is sent to described client.
According to another aspect of the present invention, it is provided that a kind of multimedia file decryption player method, including:
Obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
The encryption file header of described data file encryption is read according to file encryption rule;
Described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Length information according to described encryption key reads described data file encryption, obtains decruption key, and described decruption key is the array of variable length;
In units of the length of described decruption key, ciphertext data will be added and carry out predetermined logic operations with described decruption key respectively, while the multimedia file after being deciphered, play the multimedia file after deciphering.
According to another aspect of the present invention, it is provided that a kind of multimedia file encryption transmitting device, including:
Receiving unit, the multimedia file sent for receiving client downloads solicited message, carries the multimedia file identification that described client needs to download in described solicited message;
Acquiring unit, for obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
Logical operations unit, for, in units of the length of described encryption key, carrying out predetermined logic operations with described encryption key respectively by the data in described multimedia file, the multimedia file after being encrypted;
Generate unit, be used for the length information of described encryption mode and encryption key as encryption file header, be sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Transmitting element, for sending described data file encryption to described client.
According to another aspect of the present invention, it is provided that a kind of multimedia file decryption playing device, including:
Acquiring unit, for obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
First reads unit, for reading the encryption file header of data file encryption according to file encryption rule;
Resolution unit, for described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Second reads unit, for reading data file encryption according to the length information of encryption key, obtains decruption key, and described decruption key is the array of variable length;
Logical operations unit, for, in units of the length of described decruption key, ciphertext data will be added and will carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered;
Broadcast unit, is used for the multimedia file after playing deciphering.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has the advantage that
The multimedia file encryption that the embodiment of the present invention provides transmits, deciphering playing method and device, when receiving the multimedia file download solicited message that client sends, first the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained, in units of the length of described encryption key, data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;Again using the length information of described encryption mode and encryption key as encrypting file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical, after, sends described data file encryption to described client.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention be encrypted after multimedia file in merely add encryption head and encryption key message, therefore the multimedia file after encryption is compared with original multimedia file, do not increase extra data volume, it is thus possible to improve deciphering speed to a certain extent;And encryption key comprises in multimedia file after encryption, after therefore can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file after encryption is decrypted, improves deciphering speed.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding.Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention.And in whole accompanying drawing, it is denoted by the same reference numerals identical parts.In the accompanying drawings:
A kind of multimedia file encryption transmission method flow chart that Fig. 1 provides for the embodiment of the present invention;
The another kind of multimedia file encryption transmission method flow chart that Fig. 2 provides for the embodiment of the present invention;
A kind of multimedia file decryption player method flow chart that Fig. 3 provides for the embodiment of the present invention;
The another kind of multimedia file decryption player method flow chart that Fig. 4 provides for the embodiment of the present invention;
A kind of multimedia file encryption transmitting device structural representation that Fig. 5 provides for the embodiment of the present invention;
The another kind of multimedia file encryption transmitting device structural representation that Fig. 6 provides for the embodiment of the present invention;
A kind of multimedia file decryption playing device structural representation that Fig. 7 provides for the embodiment of the present invention;
The another kind of multimedia file decryption playing device structural representation that Fig. 8 provides for the embodiment of the present invention.
Detailed description of the invention
It is more fully described the exemplary embodiment of the disclosure below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the disclosure, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For making the advantage of technical solution of the present invention clearly, below in conjunction with drawings and Examples, the present invention is elaborated.
Embodiments provide a kind of multimedia file encryption transmission method, as it is shown in figure 1, described method includes:
101, the multimedia file download solicited message that client sends is received.
Wherein, described solicited message carries the multimedia file identification that described client needs to download, described client can be the application software with multi-media player function of all categories, such as, music player, video player etc., described multimedia file is specifically as follows audio file, video file, picture file etc..
102, the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained.
Wherein, the encryption algorithm type that described encryption mode adopts for the data after representing encryption, encryption mode can be a constant value.The length information of described encryption key can be a variable constant, for representing the length information of encryption key.Encryption key can be then the variable length array generated according to encryption key length information.Difference owing to encrypting the length information of key will cause the length difference of array, and therefore encryption key is the array of variable length.
For the embodiment of the present invention, obtain the encryption mode of data, the length information encrypting key and encryption key and may include that
First, configuring preset data before be-encrypted data file, these preset data can be the character information such as numeral and letter, these preset data is converted to the form of byte performance.The prefab data such as added is character " (0Hr ", then convert to the form of byte performance for 0x28304872.
Then, become signless integer divided by prime number remainder the byte conversion of the front predetermined length of the preset data with the byte form of expression, obtain the encryption mode of data, such as, before 0x28304872, predetermined length byte is 0x2830, it is 10288 that 0x2830 is converted to signless integer, and then with 10288 divided by prime number 127 remainder, the result 1 of remainder is as data encryption pattern.
The byte conversion of the rear predetermined length of the preset data with the byte form of expression becomes signless integer divided by prime number remainder again, obtains the length information of encryption key, for instance.After 0x28304872, predetermined length byte is 0x4872, and it is 18546 that 0x4872 is converted to signless integer, and then with 18546 divided by prime number 127 remainder, the result 4 of remainder is as the length information of encryption key.Wherein, the length information of encryption key is except relevant with the byte of predetermined length after dividend, but also it is relevant with prime number, divisor can be arranged to an agreement constant, the setting of prime number agreement constant is related to the autgmentability of data ciphering method, agreement constant arranges more big, and data ciphering method extension kind is more many.Such as, divided by prime number be 127, then the result of remainder has 127 kinds, so the length information of different encryption key can be obtained, therefore this kind of AES will support 127 kinds of encryption rules, thus ensureing that the randomness of data encryption is stronger, it is not easy to be cracked.Further, the prime number maximum that the embodiment of the present invention is arranged is 4073, arranges maximum 4073 and can ensure that the data using 4K can learn complete encryption rule, not too large to guarantee the data file after encryption.
Finally, a corresponding encryption key is generated according to the length information of the encryption key obtained.Such as, the encryption key that length information is 4 generations encrypting key is [0x0F, 0x1E, 0x2D, 0x3C, 0x4B, 0x5A, 0x69,0x78,0x87,0x96,0xA5,0xB4,0xC3,0xD2,0xE1,0xF0].
103, in units of the length of described encryption key, the data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted.
Wherein, predetermined logic operations can configure according to the actual requirements, for instance, it is possible to for XOR or with or operation etc..Such as, the length of encryption key is 4 bytes, then in units of 4 bytes, with described encryption key, the data in multimedia file are carried out predetermined logic operations respectively, obtains the multimedia file of encryption.
104, using the length information of described encryption mode and encryption key as encryption file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical.
For the embodiment of the present invention, multimedia file after encryption, compared with original multimedia file, only increases the information of encryption file header and encryption key, it does not have increase extra data, therefore the multimedia file after encryption is less, and then can improve deciphering speed to a certain extent.
105, described data file encryption is sent to described client.
A kind of multimedia file encryption transmission method that the embodiment of the present invention provides, when receiving the multimedia file download solicited message that client sends, first the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained, in units of the length of described encryption key, data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;Again using the length information of described encryption mode and encryption key as encrypting file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical, after, sends described data file encryption to described client.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention be encrypted after multimedia file in merely add encryption head and encryption key message, therefore the multimedia file after encryption will compared with original multimedia file, do not increase extra data volume, it is thus possible to improve deciphering speed to a certain extent;And encryption key comprises in multimedia file after encryption, after therefore can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file after encryption is decrypted, improves deciphering speed.
Embodiments provide another kind of multimedia file encryption transmission method, as in figure 2 it is shown, described method includes:
201, the multimedia file download solicited message that client sends is received.
Wherein, carrying the multimedia file identification that described client needs to download in described solicited message, described multimedia file is specifically as follows audio file, video file, picture file etc..
202, the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained.
Wherein, the encryption algorithm type that described encryption mode adopts for the data after representing encryption, encryption mode can be a constant value.The length information of described encryption key can be a variable constant, for representing the length information of encryption key.Encryption key can be then the variable length array generated according to encryption key length information.Difference owing to encrypting the length information of key will cause the length difference of array, and therefore encryption key is the array of variable length.
For the embodiment of the present invention, obtain the encryption mode of data, the length information encrypting key and encryption key and be specifically referred to the corresponding description of method shown in Fig. 1, do not repeat them here.
Further, the expression content of the described encryption mode got in step 201 can also be carried out data conversion according to pre-defined rule, represent with the form of byte, for instance the encryption mode obtained is decimal data 1, then decimal scale 1 data are 0x01 after converting byte to;According to pre-defined rule, the length information of encryption key is carried out data conversion, represents with the form of byte, for instance the length information of the data encryption key obtained is decimal data 4, then decimal scale 4 data are 0x04 after converting byte to.
203, according to pre-defined rule, the encryption key in array is upset, obtain the encryption key of encryption, and the pre-defined rule that encryption key is encrypted is sent to described client.
Wherein, pre-defined rule can upset encryption key for arranging interval byte.Such as, as by 201 steps generate encryption key by upset rule upset for 4, interval byte, then obtain encrypt encryption key [0x0F, 0x4B, 0x87,0xC, 0x1E, 0x5A ... .].Then will upset rule and be sent to client.For the embodiment of the present invention, by the encryption key generated is encrypted further, namely according to pre-defined rule, encryption key is upset, such that it is able to DEA is safer, be not easily cracked.
204, in units of the length of described encryption key, the data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted.
Wherein, predetermined logic operations can configure according to the actual requirements, for instance, it is possible to for XOR or with or operation etc..Such as, the length of encryption key is 4 bytes, then in units of 4 bytes, with described encryption key, the data in multimedia file are carried out predetermined logic operations respectively, the multimedia file after being encrypted.
205, using the length information of described encryption mode and encryption key as encryption file header, vertical it is sequentially generated data file encryption according to the multimedia file after encryption file header, the encryption key of encryption and encryption.
For the embodiment of the present invention, multimedia file after encryption compared with original multimedia file, to only increase the information of the encryption key of encryption file header and encryption, it does not have increases extra data, therefore the data file after encryption is less, and then can improve deciphering speed to a certain extent.The encryption key wherein encrypted DEA can be made safer, be not easily cracked.
For the embodiment of the present invention, described encryption file header can be the file header of fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, and the byte of rear predetermined length is for representing the length information of encryption key.
Further, the encryption file header fixed byte length in the embodiment of the present invention can be 4 bytes, and the byte of described front predetermined length can be front 2 bytes;The byte of described rear predetermined length can be rear 2 bytes.
206, described data file encryption is sent to described client.
The another kind of multimedia file encryption transmission method that the embodiment of the present invention provides, when receiving the multimedia file download solicited message that client sends, first the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained, in units of the length of described encryption key, data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;Again using the length information of described encryption mode and encryption key as encrypting file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical, after, sends described data file encryption to described client.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention be encrypted after multimedia file in merely add encryption head and encryption key message, therefore the multimedia file after encryption will compared with original multimedia file, do not increase extra data volume, it is thus possible to improve deciphering speed to a certain extent;And encryption key comprises in multimedia file after encryption, after therefore can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file after encryption is decrypted, improves deciphering speed.
Embodiments provide a kind of multimedia file decryption player method, as it is shown on figure 3, described method includes:
301, data file encryption to be played is obtained from server.
Wherein, described data file encryption is the multimedia file after encryption, and described server can for providing the webserver of multimedia file downloaded resources, and described multimedia file is specifically as follows audio file, video file, picture file etc..
302, the encryption file header of data file encryption is read according to file encryption rule.
Wherein, file encryption rule for indicating in the byte of data file encryption, encryption byte length shared by file header.
303, described encryption file header is resolved, obtain the length information of encryption mode, encryption key.
Wherein, the encryption algorithm type that described encryption mode adopts for the data after representing encryption, encryption mode can be a constant value.The length information of described encryption key can be a variable constant, for obtaining the length that will read decruption key.
304, the length information according to encryption key reads data file encryption, obtains decruption key.
For the embodiment of the present invention, described decruption key is the array of variable length, step 304 specifically may include that the length information first obtaining encryption key, length information according to the encryption key obtained obtains the length of corresponding decruption key array, then from the next byte at encryption file header end, read the data of the length information that length is decruption key array, as decruption key.Such as, encryption file header length is 4 bytes, and the length of the decruption key array of acquisition is 8 bytes, then read the data message from the 5th of data file encryption the byte to the 12nd byte, and the data message of 5-12 byte of reading is decruption key.Therefore the length information of decruption key changes along with the length information change of encryption key.
305, in units of the length of described decruption key, ciphertext data will be added and carry out predetermined logic operations with described decruption key respectively, while the multimedia file after being deciphered, play the multimedia file after deciphering.
Wherein, predetermined logic operations can configure according to the actual requirements, it is possible to for XOR or with or operation etc..Such as, the length of decruption key is 8 bytes, then will add ciphertext data in units of 8 bytes and carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered.
A kind of multimedia file decryption player method that the embodiment of the present invention provides, when carrying out data deciphering and playing, first obtain data file encryption to be played from server and add the encryption file header of ciphertext data, and according to the length information that encryption file header parses the encryption mode adding ciphertext data, encrypts key, then the length information according to encryption key reads the decruption key adding in ciphertext data, finally will add ciphertext data and carry out predetermined logic operations with described decruption key respectively, while multimedia file after being deciphered, play the multimedia file after deciphering.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention just can get decruption key by simple step, and decruption key comprises in multimedia file after encryption, therefore after can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file of encryption is carried out the operation that deciphering limit, limit is play, improves multimedia file decryption broadcasting speed.
Embodiments providing another kind of multimedia file decryption player method, as shown in Figure 4, described method includes:
401, data file encryption to be played is obtained from server.
Wherein, described data file encryption is the multimedia file after encryption, and described server can for providing the webserver of multimedia file downloaded resources, and described multimedia file is specifically as follows audio file, video file, picture file etc..
402, the encryption file header of data file encryption is read according to file encryption rule.
Wherein, file encryption rule for indicating in the byte of data file encryption, encryption byte length shared by file header.For the embodiment of the present invention, when the file header that encryption file header is fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, the byte of rear predetermined length for represent encryption key length information time, step 302 is specifically as follows: read encryption file before fixed byte lengthy content its as encryption file header.
Such as, encryption file header is 4 bytes of regular length, and the content of front 4 bytes reading encryption file is encryption file header, then encrypt front 2 bytes of file header for representing encryption mode, and rear 2 bytes are for representing the length information of encryption key.
403, described encryption file header is resolved, obtain the length information of encryption mode, encryption key.
Wherein, the encryption algorithm type that described encryption mode adopts for the data after representing encryption, encryption mode can be a constant value.The length information of described encryption key can be a variable constant, for obtaining the length that will read decruption key.
Described encryption file header is carried out parsing include: the byte of predetermined length before reading from described encryption file header, described byte is carried out data conversion, and carries out data operation, obtain encryption mode;After reading from described encryption file header, the byte of predetermined length, carries out described byte data conversion, and carries out data operation, obtains the length information of encryption key.
Such as, the encryption file header of fixed byte length is 0x23392442, then before, the byte 0x2339 of predetermined length is used for representing encryption mode, and it is 9017 that 0x2339 is converted to signless integer, then with 9017 divided by prime number 127 remainder, the result 0 of remainder is as data encryption pattern;The byte 0x2442 of rear predetermined length is for representing the length information of encryption key, and it is 9282 that 0x2442 is converted to signless integer, and then with 9282 divided by prime number 127 remainder, the result 11 of remainder is as the length information of encryption key.
404, the length information according to encryption key reads data file encryption, obtains decruption key.
For the embodiment of the present invention, described decruption key is the array of variable length, step 404 specifically may include that the length information first obtaining encryption key, length information according to the encryption key obtained obtains the length of corresponding decruption key array, then from the next byte at encryption file header end, read the data of the length information that length is decruption key array, as decruption key.Such as, encryption file header length is 4 bytes, and the length of the decruption key array of acquisition is 8 bytes, then read the data message from the 5th of data file encryption the byte to the 12nd byte, and the data message of 5-12 byte of reading is decruption key.Therefore the length information of decruption key changes along with the length information change of encryption key.
405, according to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
Wherein, described pre-defined rule is the pre-defined rule that encryption key is encrypted.Owing to encryption key has been carried out further encryption, therefore, by decipher secret key pair add ciphertext data be decrypted time, it is necessary to first to deciphering key be decrypted.Such as, the decruption key obtained in step 404 is [0x0F, 0x1E, 0x2D, 0x3C, 0x4B, 0x5A, 0x69,0x78,0x87,0x96,0xA5,0xB4,0xC3,0xD2,0xE1,0xF0], the encryption pre-defined rule that the data encryption side received sends is that 4, interval byte upsets encryption key, then according to upsetting rule to described decryption key decryption, obtain decruption key [0x0F, 0x4B, the 0x87 of deciphering, 0xC, 0x1E, 0x5A ... .].
406, in units of the length of institute's decruption key, carry out predetermined logic operations with the decruption key of described deciphering respectively by adding ciphertext data, while the multimedia file after being deciphered, play the multimedia file after deciphering.
Wherein, predetermined logic operations can configure according to the actual requirements, for instance, it is possible to for XOR or with or operation etc..Such as, the length information of encryption key can be 8 bytes, then will add ciphertext data in units of 8 bytes and carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered.
The another kind of multimedia file decryption player method that the embodiment of the present invention provides, when carrying out data deciphering and playing, first obtain data file encryption to be played from server and add the encryption file header of ciphertext data, and according to the length information that encryption file header parses the encryption mode adding ciphertext data, encrypts key, then the length information according to encryption key reads the decruption key adding in ciphertext data, finally will add ciphertext data and carry out predetermined logic operations with described decruption key respectively, while multimedia file after being deciphered, play the multimedia file after deciphering.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention just can get decruption key by simple step, and decruption key comprises in multimedia file after encryption, therefore after can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file of encryption is carried out the operation that deciphering limit, limit is play, improves multimedia file decryption broadcasting speed.
The embodiment of the present invention provides a kind of multimedia file encryption transmitting device, as it is shown in figure 5, described multimedia file encryption transmitting device includes: receives unit 501, acquiring unit 502, logical operations unit 503, generate unit 504, transmitting element 505.
Receiving unit 501, the multimedia file sent for receiving client downloads solicited message, carries the multimedia file identification that described client needs to download in described solicited message.
Acquiring unit 502, for obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length.
Logical operations unit 503, for, in units of the length of described encryption key, carrying out predetermined logic operations with described encryption key respectively by the data in described multimedia file, the multimedia file after being encrypted.
Generate unit 504, be used for the length information of described encryption mode and encryption key as encryption file header, be sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical.
Transmitting element 505, for sending described data file encryption to described client.
It should be noted that other of each functional unit involved by the multimedia file encryption transmitting device of embodiment of the present invention offer describe accordingly, it is possible to reference to the corresponding description of method shown in Fig. 1, do not repeat them here.
A kind of multimedia file encryption transmitting device that the embodiment of the present invention provides, when receiving the multimedia file download solicited message that client sends, first the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained, in units of the length of described encryption key, data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;Again using the length information of described encryption mode and encryption key as encrypting file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical, after, sends described data file encryption to described client.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention be encrypted after multimedia file in merely add encryption head and encryption key message, therefore the multimedia file after encryption will compared with original multimedia file, do not increase extra data volume, it is thus possible to improve deciphering speed to a certain extent;And encryption key comprises in multimedia file after encryption, after therefore can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file after encryption is decrypted, improves deciphering speed.
Further, the embodiment of the present invention provides another kind of multimedia file encryption transmitting device, and as shown in Figure 6, described data encryption device includes: receives unit 601, acquiring unit 602, logical operations unit 603, generate unit 604, transmitting element 605.
Receiving unit 601, the multimedia file sent for receiving client downloads solicited message, carries the multimedia file identification that described client needs to download in described solicited message.
Acquiring unit 602, for obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length.
Logical operations unit 603, for, in units of the length of described encryption key, carrying out predetermined logic operations with described encryption key respectively by the data in described multimedia file, the multimedia file after being encrypted.
Generate unit 604, be used for the length information of described encryption mode and encryption key as encryption file header, be sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical.
Transmitting element 605, for sending described data file encryption to described client.
Further, described device also includes:
Ciphering unit 606, for according to pre-defined rule, being upset by the encryption key in array, obtains the encryption key of encryption.
Described transmitting element 605, is sent to described client for the pre-defined rule being encrypted by encryption key.
For the embodiment of the present invention, described generation unit 604, it is additionally operable to the multimedia file after according to encryption file header, the encryption key of encryption and encryption and vertical is sequentially generated data file encryption.
Further, described device also includes:
First Date Conversion Unit 607, for after described acquiring unit 602 obtains the encryption mode of data, the expression content represented by described encryption mode carries out data conversion according to pre-defined rule, represents with the form of byte.
Further, described device also includes:
Second Date Conversion Unit 608, is used at described acquiring unit 602 after obtaining the length information of encryption key, according to pre-defined rule, the length information of encryption key is carried out data conversion, represents with the form of byte.
Further, the file header that encryption file header is fixed byte length of described generation unit 604;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, and the byte of rear predetermined length is for representing the length information of encryption key.
For the embodiment of the present invention, the fixed byte length of described generation unit 604 is 4 bytes, and the byte of described front predetermined length is front 2 bytes;The byte of described rear predetermined length is rear 2 bytes.
For the embodiment of the present invention, described logical operation can be xor operation.
It should be noted that other of each functional unit involved by the multimedia file encryption transmitting device of embodiment of the present invention offer describe accordingly, it is possible to reference to the corresponding description in method shown in Fig. 2, do not repeat them here.
The another kind of multimedia file encryption transmitting device that the embodiment of the present invention provides, when receiving the multimedia file download solicited message that client sends, first the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key are obtained, in units of the length of described encryption key, data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;Again using the length information of described encryption mode and encryption key as encrypting file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical, after, sends described data file encryption to described client.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention be encrypted after multimedia file in merely add encryption head and encryption key message, therefore the multimedia file after encryption will compared with original multimedia file, do not increase extra data volume, it is thus possible to improve deciphering speed to a certain extent;And encryption key comprises in multimedia file after encryption, after therefore can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file after encryption is decrypted, improves deciphering speed.
The embodiment of the present invention provides a kind of multimedia file decryption playing device, as it is shown in fig. 7, described multimedia file decryption playing device includes: acquiring unit 701, first reads unit 702, resolution unit 703, second reads unit 704, logical operations unit 705, broadcast unit 706.
Acquiring unit 701, for obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption.
First reads unit 702, for reading the encryption file header of data file encryption according to file encryption rule.
Resolution unit 703, for described encryption file header is resolved, obtains the length information of encryption mode, encryption key.
Second reads unit 704, for reading data file encryption according to the length information of encryption key, obtains decruption key, and described decruption key is the array of variable length.
Logical operations unit 705, for, in units of the length of described decruption key, ciphertext data will be added and will carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered.
Broadcast unit 706, is used for the multimedia file after playing deciphering.
It should be noted that other of each functional unit involved by the multimedia file decryption playing device of embodiment of the present invention offer describe accordingly, it is possible to reference to the corresponding description of method shown in Fig. 3, do not repeat them here.
A kind of multimedia file decryption playing device that the embodiment of the present invention provides, when carrying out data deciphering and playing, first obtain data file encryption to be played from server and add the encryption file header of ciphertext data, and according to the length information that encryption file header parses the encryption mode adding ciphertext data, encrypts key, then the length information according to encryption key reads the decruption key adding in ciphertext data, finally will add ciphertext data and carry out predetermined logic operations with described decruption key respectively, while multimedia file after being deciphered, play the multimedia file after deciphering.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention just can get decruption key by simple step, and decruption key comprises in multimedia file after encryption, therefore after can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file of encryption is carried out the operation that deciphering limit, limit is play, improves multimedia file decryption broadcasting speed.
Further, the embodiment of the present invention provides another kind of multimedia file decryption playing device, as shown in Figure 8, described multimedia file decryption playing device includes: acquiring unit 801, first reads unit 802, resolution unit 803, second reads unit 804, logical operations unit 805, broadcast unit 806.
Acquiring unit 801, for obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption.
First reads unit 802, for reading the encryption file header of data file encryption according to file encryption rule.
Resolution unit 803, for described encryption file header is resolved, obtains the length information of encryption mode, encryption key.
Second reads unit 804, for reading data file encryption according to the length information of encryption key, obtains decruption key, and described decruption key is the array of variable length.
Logical operations unit 805, for, in units of the length of described decruption key, ciphertext data will be added and will carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered.
Broadcast unit 806, is used for the multimedia file after playing deciphering.
Further, described device also includes:
Decryption unit 807, for after receiving the pre-defined rule being encrypted for encryption key that data encryption side sends, after obtaining decruption key, according to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
For the embodiment of the present invention, described close file header is the file header of fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, when the byte of rear predetermined length is for representing the length information encrypting key, described first read unit 802 is additionally operable to, read encryption file before fixed byte lengthy content its as encryption file header.
Further, described resolution unit 803 includes:
First data operation module 8031, for the byte of predetermined length before reading from described encryption file header, carries out described byte data conversion, and carries out data operation, obtain encryption mode;
Second data operation module 8032, for the byte of predetermined length after reading from described encryption file header, carries out described byte data conversion, and carries out data operation, obtain the length information of encryption key.
For the embodiment of the present invention, described logical operation can be xor operation.
It should be noted that other of each functional unit involved by the another kind of multimedia file decryption playing device of embodiment of the present invention offer describe accordingly, it is possible to reference to the corresponding description in method shown in Fig. 4, do not repeat them here.
The another kind of multimedia file decryption playing device that the embodiment of the present invention provides, when carrying out data deciphering and playing, first obtain data file encryption to be played from server and add the encryption file header of ciphertext data, and according to the length information that encryption file header parses the encryption mode adding ciphertext data, encrypts key, then the length information according to encryption key reads the decruption key adding in ciphertext data, finally will add ciphertext data and carry out predetermined logic operations with described decruption key respectively, while multimedia file after being deciphered, play the multimedia file after deciphering.With adopt at present compared with multimedia file is encrypted by fragmentation technique, the embodiment of the present invention just can get decruption key by simple step, and decruption key comprises in multimedia file after encryption, therefore after can directly obtaining deciphering key from the multimedia file after encryption, the multimedia file of encryption is carried out the operation that deciphering limit, limit is play, improves multimedia file decryption broadcasting speed.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
It is understood that the correlated characteristic in said method and device can reference mutually.It addition, " first ", " second " in above-described embodiment etc. is for distinguishing each embodiment, and do not represent the quality of each embodiment.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, it is possible to reference to the corresponding process in preceding method embodiment, do not repeat them here.
1, not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant at the algorithm of this offer and display.Various general-purpose systems can also with use based on together with this teaching.As described above, the structure constructed required by this kind of system is apparent from.Additionally, the present invention is also not for any certain programmed language.It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail.It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details.In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes.But, the method for the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim.More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above.Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined.Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can mode use in any combination.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of the some or all parts that microprocessor or digital signal processor (DSP) can be used in practice to realize in multimedia file encryption transmission according to embodiments of the present invention, deciphering playing method and device.The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program).The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims.In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims.Word " comprises " and does not exclude the presence of the element or step not arranged in the claims.Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element.The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer.In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody.Word first, second and third use do not indicate that any order.Can be title by these word explanations.
The invention discloses A1, a kind of multimedia file encryption transmission method, including:
Receive the multimedia file download solicited message that client sends, described solicited message carries the multimedia file identification that described client needs to download;
Obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
In units of the length of described encryption key, the data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;
Using the length information of described encryption mode and encryption key as encryption file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Described data file encryption is sent to described client.
A2, method as described in A1, after obtaining encryption key, also include:
According to pre-defined rule, the encryption key in array is upset, obtain the encryption key of encryption, and the pre-defined rule that encryption key is encrypted is sent to described client;
Described it is sequentially generated data file encryption particularly as follows: be sequentially generated data file encryption according to the multimedia file after encryption file header, the encryption key of encryption and encryption is vertical according to the multimedia file after encryption file header, encryption key and encryption is vertical.
A3, method as described in A2, after obtaining the encryption mode of data, also include:
The expression content of described encryption mode is carried out data conversion according to pre-defined rule, represents with the form of byte.
A4, method as described in A3, after obtaining the length information of encryption key, also include:
The length information of encryption key is carried out data conversion according to pre-defined rule, represents with the form of byte.
A5, method as described in A4, described encryption file header is the file header of fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, and the byte of rear predetermined length is for representing the length information of encryption key.
A6, method as described in A5, described fixed byte length is 4 bytes, and the byte of described front predetermined length is front 2 bytes;The byte of described rear predetermined length is rear 2 bytes.
A7, method as according to any one of A1-A6, described predetermined logic operations is xor operation.
The invention discloses B8, a kind of multimedia file decryption player method, including:
Obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
The encryption file header of described data file encryption is read according to file encryption rule;
Described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Length information according to described encryption key reads described data file encryption, obtains decruption key, and described decruption key is the array of variable length;
In units of the length of described decruption key, ciphertext data will be added and carry out predetermined logic operations with described decruption key respectively, while the multimedia file after being deciphered, play the multimedia file after deciphering.
B9, method as described in B8, after receiving the pre-defined rule being encrypted for encryption key that described server sends, after obtaining decruption key, also include:
According to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
B10, method as described in B9, when the file header that encryption file header is fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, the byte of rear predetermined length for represent encryption key length information time, described according to file encryption rule read data file encryption encryption file header particularly as follows:
Read encryption file before fixed byte lengthy content its as encryption file header.
B11, method as described in B10, carry out parsing to described encryption file header and include:
Before reading from described encryption file header, the byte of predetermined length, carries out described byte data conversion, and carries out data operation, obtain encryption mode;
After reading from described encryption file header, the byte of predetermined length, carries out described byte data conversion, and carries out data operation, obtains the length information of encryption key.
B12, method as according to any one of B8-B11, described predetermined logic operations is xor operation.
The invention discloses C13, a kind of multimedia file encryption transmitting device, including:
Receiving unit, the multimedia file sent for receiving client downloads solicited message, carries the multimedia file identification that described client needs to download in described solicited message;
Acquiring unit, for obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
Logical operations unit, for, in units of the length of described encryption key, carrying out predetermined logic operations with described encryption key respectively by the data in described multimedia file, the multimedia file after being encrypted;
Generate unit, be used for the length information of described encryption mode and encryption key as encryption file header, be sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Transmitting element, for sending described data file encryption to described client.
C14, device as described in C13, also include:
Ciphering unit, for according to pre-defined rule, being upset by the encryption key in array, obtains the encryption key of encryption;
Transmitting element, for being sent to described client by the pre-defined rule that encryption key is encrypted;
Described generation unit, is additionally operable to the multimedia file after according to encryption file header, the encryption key of encryption and encryption and vertical is sequentially generated data file encryption.
C15, device as described in C14, also include:
First Date Conversion Unit, for after the encryption mode of described acquiring unit acquisition data, the expression content represented by described encryption mode carries out data conversion according to pre-defined rule, represents with the form of byte.
C16, device as described in C15, also include:
Second Date Conversion Unit, is used at described acquiring unit after obtaining the length information of encryption key, according to pre-defined rule, the length information of encryption key is carried out data conversion, represents with the form of byte.
C17, device as described in C16, the file header that encryption file header is fixed byte length of described generation unit;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, and the byte of rear predetermined length is for representing the length information of encryption key.
C18, device as described in C17, the fixed byte length of described generation unit is 4 bytes, and the byte of described front predetermined length is front 2 bytes;The byte of described rear predetermined length is rear 2 bytes.
C19, arbitrary in C13-C18 as described in device, the predetermined logic operations of described logical block is xor operation.
The invention discloses D20, a kind of multimedia file decryption playing device, including:
Acquiring unit, for obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
First reads unit, for reading the encryption file header of data file encryption according to file encryption rule;
Resolution unit, for described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Second reads unit, for reading data file encryption according to the length information of encryption key, obtains decruption key, and described decruption key is the array of variable length;
Logical operations unit, for, in units of the length of described decruption key, ciphertext data will be added and will carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered;
Broadcast unit, is used for the multimedia file after playing deciphering.
D21, device as described in D20, also include:
Decryption unit, for after receiving the pre-defined rule being encrypted for encryption key that data encryption side sends, after obtaining decruption key, according to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
D22, device as described in D21, when the file header that described encryption file header is fixed byte length;Before described fixed byte, the byte of predetermined length is used for representing encryption mode, the byte of rear predetermined length for represent encryption key length information time, described first read unit is additionally operable to, read encryption file before fixed byte lengthy content its as encryption file header.
D23, device as described in D22, described resolution unit includes:
First data operation module, for the byte of predetermined length before reading from described encryption file header, carries out described byte data conversion, and carries out data operation, obtain encryption mode;
Second data operation module, for the byte of predetermined length after reading from described encryption file header, carries out described byte data conversion, and carries out data operation, obtain the length information of encryption key.
D24, device as according to any one of D20-D23, the predetermined logic operations of described logical block is xor operation.

Claims (10)

1. a multimedia file encryption transmission method, it is characterised in that including:
Receive the multimedia file download solicited message that client sends, described solicited message carries the multimedia file identification that described client needs to download;
Obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
In units of the length of described encryption key, the data in described multimedia file are carried out predetermined logic operations with described encryption key respectively, the multimedia file after being encrypted;
Using the length information of described encryption mode and encryption key as encryption file header, it is sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Described data file encryption is sent to described client.
2. method according to claim 1, it is characterised in that after obtaining encryption key, also include:
According to pre-defined rule, the encryption key in array is upset, obtain the encryption key of encryption, and the pre-defined rule that encryption key is encrypted is sent to described client;
Described it is sequentially generated data file encryption particularly as follows: be sequentially generated data file encryption according to the multimedia file after encryption file header, the encryption key of encryption and encryption is vertical according to the multimedia file after encryption file header, encryption key and encryption is vertical.
3. method according to claim 2, it is characterised in that after obtaining the encryption mode of data, also include:
The expression content of described encryption mode is carried out data conversion according to pre-defined rule, represents with the form of byte.
4. a multimedia file decryption player method, it is characterised in that including:
Obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
The encryption file header of described data file encryption is read according to file encryption rule;
Described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Length information according to described encryption key reads described data file encryption, obtains decruption key, and described decruption key is the array of variable length;
In units of the length of described decruption key, ciphertext data will be added and carry out predetermined logic operations with described decruption key respectively, while the multimedia file after being deciphered, play the multimedia file after deciphering.
5. method according to claim 4, it is characterised in that after receiving the pre-defined rule being encrypted for encryption key that described server sends, after obtaining decruption key, also include:
According to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
6. a multimedia file encryption transmitting device, it is characterised in that including:
Receiving unit, the multimedia file sent for receiving client downloads solicited message, carries the multimedia file identification that described client needs to download in described solicited message;
Acquiring unit, for obtaining the encryption mode of the multimedia file corresponding with described multimedia file identification, the length information encrypting key and encryption key, described encryption key is the array of variable length;
Logical operations unit, for, in units of the length of described encryption key, carrying out predetermined logic operations with described encryption key respectively by the data in described multimedia file, the multimedia file after being encrypted;
Generate unit, be used for the length information of described encryption mode and encryption key as encryption file header, be sequentially generated data file encryption according to the multimedia file after encryption file header, encryption key and encryption is vertical;
Transmitting element, for sending described data file encryption to described client.
7. device according to claim 6, it is characterised in that also include:
Ciphering unit, for according to pre-defined rule, being upset by the encryption key in array, obtains the encryption key of encryption;
Transmitting element, for being sent to described client by the pre-defined rule that encryption key is encrypted;
Described generation unit, is additionally operable to the multimedia file after according to encryption file header, the encryption key of encryption and encryption and vertical is sequentially generated data file encryption.
8. device according to claim 7, it is characterised in that also include:
First Date Conversion Unit, for after the encryption mode of described acquiring unit acquisition data, the expression content represented by described encryption mode carries out data conversion according to pre-defined rule, represents with the form of byte.
9. a multimedia file decryption playing device, it is characterised in that including:
Acquiring unit, for obtaining data file encryption to be played from server, described data file encryption is the multimedia file after encryption;
First reads unit, for reading the encryption file header of data file encryption according to file encryption rule;
Resolution unit, for described encryption file header is resolved, obtains the length information of encryption mode, encryption key;
Second reads unit, for reading data file encryption according to the length information of encryption key, obtains decruption key, and described decruption key is the array of variable length;
Logical operations unit, for, in units of the length of described decruption key, ciphertext data will be added and will carry out predetermined logic operations with described decruption key respectively, the multimedia file after being deciphered;
Broadcast unit, is used for the multimedia file after playing deciphering.
10. device according to claim 9, it is characterised in that also include:
Decryption unit, for after receiving the pre-defined rule being encrypted for encryption key that data encryption side sends, after obtaining decruption key, according to described pre-defined rule, described decruption key being decrypted, obtaining can to adding the decruption key that ciphertext data is decrypted.
CN201410823052.9A 2014-12-24 2014-12-24 Encryption transmission method and device and decryption playing method and device of multimedia file Pending CN105791243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410823052.9A CN105791243A (en) 2014-12-24 2014-12-24 Encryption transmission method and device and decryption playing method and device of multimedia file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410823052.9A CN105791243A (en) 2014-12-24 2014-12-24 Encryption transmission method and device and decryption playing method and device of multimedia file

Publications (1)

Publication Number Publication Date
CN105791243A true CN105791243A (en) 2016-07-20

Family

ID=56388539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410823052.9A Pending CN105791243A (en) 2014-12-24 2014-12-24 Encryption transmission method and device and decryption playing method and device of multimedia file

Country Status (1)

Country Link
CN (1) CN105791243A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657162A (en) * 2017-03-01 2017-05-10 北京东大正保科技有限公司 Online stream media playing method and stream media downloading and offline playing method
CN107222759A (en) * 2017-06-28 2017-09-29 网易(杭州)网络有限公司 Method, system, equipment and the medium of media file encryption and decryption
CN109040087A (en) * 2018-08-15 2018-12-18 咪咕视讯科技有限公司 A kind of file Encrypt and Decrypt method and device
CN111093097A (en) * 2019-12-20 2020-05-01 北京云享智胜科技有限公司 Stream media data encryption and decryption method and device, electronic equipment and storage medium
CN111159740A (en) * 2019-12-29 2020-05-15 浪潮电子信息产业股份有限公司 Data encryption access method, device, equipment and readable storage medium
WO2020044087A3 (en) * 2018-08-27 2020-08-13 阿里巴巴集团控股有限公司 Method, device, and equipment/terminal/server for conversational file transmission
CN113868682A (en) * 2021-09-28 2021-12-31 山东云缦智能科技有限公司 Multimedia file encryption and decryption method based on RSA

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209231A1 (en) * 2004-10-12 2008-08-28 Information And Communications University Research And Industrial Cooperation Group Contents Encryption Method, System and Method for Providing Contents Through Network Using the Encryption Method
CN101488860A (en) * 2009-02-20 2009-07-22 四川长虹电器股份有限公司 File ciphering, deciphering method
CN101707521A (en) * 2009-12-01 2010-05-12 福州星网视易信息系统有限公司 Encryption method based on DES
CN102063598A (en) * 2009-11-17 2011-05-18 北大方正集团有限公司 Data encryption and decryption methods and devices
CN103345609A (en) * 2013-06-06 2013-10-09 深圳市大成天下信息技术有限公司 Method and device for text encryption and decryption

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080209231A1 (en) * 2004-10-12 2008-08-28 Information And Communications University Research And Industrial Cooperation Group Contents Encryption Method, System and Method for Providing Contents Through Network Using the Encryption Method
CN101488860A (en) * 2009-02-20 2009-07-22 四川长虹电器股份有限公司 File ciphering, deciphering method
CN102063598A (en) * 2009-11-17 2011-05-18 北大方正集团有限公司 Data encryption and decryption methods and devices
CN101707521A (en) * 2009-12-01 2010-05-12 福州星网视易信息系统有限公司 Encryption method based on DES
CN103345609A (en) * 2013-06-06 2013-10-09 深圳市大成天下信息技术有限公司 Method and device for text encryption and decryption

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657162A (en) * 2017-03-01 2017-05-10 北京东大正保科技有限公司 Online stream media playing method and stream media downloading and offline playing method
CN106657162B (en) * 2017-03-01 2020-01-10 北京东大正保科技有限公司 Online streaming media playing method, streaming media downloading method and offline playing method
CN107222759A (en) * 2017-06-28 2017-09-29 网易(杭州)网络有限公司 Method, system, equipment and the medium of media file encryption and decryption
CN107222759B (en) * 2017-06-28 2021-02-02 网易(杭州)网络有限公司 Method, system, device and medium for encrypting and decrypting media file
CN109040087A (en) * 2018-08-15 2018-12-18 咪咕视讯科技有限公司 A kind of file Encrypt and Decrypt method and device
CN109040087B (en) * 2018-08-15 2021-12-07 咪咕视讯科技有限公司 File encryption and decryption method and device
WO2020044087A3 (en) * 2018-08-27 2020-08-13 阿里巴巴集团控股有限公司 Method, device, and equipment/terminal/server for conversational file transmission
CN111093097A (en) * 2019-12-20 2020-05-01 北京云享智胜科技有限公司 Stream media data encryption and decryption method and device, electronic equipment and storage medium
CN111159740A (en) * 2019-12-29 2020-05-15 浪潮电子信息产业股份有限公司 Data encryption access method, device, equipment and readable storage medium
CN113868682A (en) * 2021-09-28 2021-12-31 山东云缦智能科技有限公司 Multimedia file encryption and decryption method based on RSA

Similar Documents

Publication Publication Date Title
CN105790925A (en) Data encryption method, data decryption method, data encryption device and data decryption device
CN105791243A (en) Encryption transmission method and device and decryption playing method and device of multimedia file
US9461817B2 (en) Method and system for encrypting JavaScript object notation (JSON) messages
US8321690B2 (en) Protecting digital media of various content types
US8712041B2 (en) Content protection apparatus and content encryption and decryption apparatus using white-box encryption table
CN103684760B (en) The encryption of communication and the method, apparatus of decryption and system
US20150074393A1 (en) Method, Apparatus, and System for Implementing Media Data Processing
CN105245505A (en) Data transmitting method and device, data receiving method and device, and receiving-transmitting system
CN103716330A (en) Method and device for encryption and decryption of digital content
JP6346942B2 (en) Blocking password attacks
CN109120998B (en) Media data transmission method, device and storage medium
CN106452759A (en) System and method for efficient support for short cryptoperiods in template mode
CN106165353A (en) Point-to-point authentication protocol is used to carry out high usage route to encryption stream
CN113132394B (en) Request processing system, method and device, storage medium and electronic equipment
US20220021529A1 (en) Key protection processing method, apparatus, device and storage medium
CN110401536B (en) General encryption algorithm based on deep learning
CN103414727A (en) Encryption protection system for input password input box and using method thereof
CN104539714A (en) Dynamic picture service URL generating method and device
CN114785524B (en) Electronic seal generation method, device, equipment and medium
CN110662089A (en) Bullet screen receiving and processing method, storage medium, electronic equipment and system
CN115801315A (en) Data transmission method and device, electronic equipment and storage medium
JP2016075765A (en) Authentication encryption device, authentication decryption device, and program therefor
JP7193184B2 (en) A device that transmits key data to subscribers in a multicast group
JPWO2019053778A1 (en) Registration terminal, key server, search system, registration program
KR20220170773A (en) Dynamic merkle tree-based message stream generation apparatus, message streaming method and message streaming network system

Legal Events

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

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication