CN111432287A - Slicing encryption method and system and decryption method and system for audio and video files - Google Patents

Slicing encryption method and system and decryption method and system for audio and video files Download PDF

Info

Publication number
CN111432287A
CN111432287A CN202010288753.2A CN202010288753A CN111432287A CN 111432287 A CN111432287 A CN 111432287A CN 202010288753 A CN202010288753 A CN 202010288753A CN 111432287 A CN111432287 A CN 111432287A
Authority
CN
China
Prior art keywords
audio
video file
encryption
fragments
encrypted
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
CN202010288753.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.)
Nanjing Jusha Display Technology Co Ltd
Nanjing Jusha Medical Technology Co Ltd
Original Assignee
Nanjing Jusha Display Technology Co Ltd
Nanjing Jusha Medical Technology 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 Nanjing Jusha Display Technology Co Ltd, Nanjing Jusha Medical Technology Co Ltd filed Critical Nanjing Jusha Display Technology Co Ltd
Priority to CN202010288753.2A priority Critical patent/CN111432287A/en
Publication of CN111432287A publication Critical patent/CN111432287A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a slicing encryption method and system and a decryption method and system for an audio and video file.

Description

Slicing encryption method and system and decryption method and system for audio and video files
Technical Field
The invention relates to a slicing encryption method and system and a decryption method and system for audio and video files, and belongs to the technical field of audio and video.
Background
With the wide application of the audio and video technology in commerce, various requirements and service scenes are also endless, such as teaching videos in the teaching process of an operating room; at present, in order to prevent unauthorized direct copy and play, audio and video files are often encrypted integrally, but the encryption mode is difficult to crack.
Disclosure of Invention
The invention provides a slicing encryption method and system and a decryption method and system for an audio and video file, and solves the problems disclosed in the background technology.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
the slicing encryption method for the audio and video file comprises the following steps,
analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments;
selecting a plurality of fragments from all the fragments to encrypt according to a preset requirement;
and updating the encrypted segments in the audio and video file, and storing the encryption key in the audio and video file.
And analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments by taking the time stamp of the key frame as a dividing point.
The process of encrypting the segment is that,
and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
The process of the function encryption operation is that,
generating an array with a certain length according to the secret key;
the elements in the data are inserted into the fragments.
The slicing decryption method for the audio and video file comprises the following steps,
analyzing the encrypted audio and video file structure to obtain encrypted fragments and a corresponding encryption key; wherein, the audio and video file is encrypted by adopting the audio and video file slicing encryption method;
decrypting the encrypted segment using the key;
and updating the decrypted segment in the audio and video file.
An audio and video file slicing encryption system comprises,
a segmentation module: analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments;
an encryption module: selecting a plurality of fragments from all the fragments to encrypt according to a preset requirement;
and an encrypted updating module: and updating the encrypted segments in the audio and video file, and storing the encryption key in the audio and video file.
A segmentation module: and analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments by taking the time stamp of the key frame as a dividing point.
The encryption module comprises a fragment encryption module; a fragment encryption module: and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
The fragment encryption module comprises an array module and an insertion module;
an array module: generating an array with a certain length according to the secret key;
inserting a module: the elements in the data are inserted into the fragments.
An audio and video file slicing decryption system comprises,
an analysis module: analyzing the encrypted audio and video file structure to obtain encrypted fragments and a corresponding encryption key; wherein, the audio and video file is encrypted by adopting the audio and video file slicing encryption method;
a decryption module: decrypting the encrypted segment using the key;
and a decrypted update module: and updating the decrypted segment in the audio and video file.
The invention achieves the following beneficial effects: the invention slices the audio and video file, selects a plurality of segments to encrypt, has high cracking difficulty, and meets the application scene of the sectional control of the audio and video file of a user while ensuring the safety.
Drawings
FIG. 1 is a flow chart of encryption of the present invention;
FIG. 2 is a structural diagram of EncryptBox;
fig. 3 is a flowchart of decryption according to the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
As shown in fig. 1, the audio/video file slicing encryption method includes the following steps:
s11) parsing the audio-video file structure.
Analyzing the structure of an audio/video file (such as an MP4 audio/video file) to acquire the structural information of the audio/video file; all data in the audio and video file are loaded in a Box, and the audio and video file is composed of a plurality of boxes, wherein the boxes are structured data tables containing specific information.
S12) carrying out encryption verification on the audio and video file.
And judging whether the Box (namely Encryptbox) containing the encryption information exists or not through encryption verification of a plurality of boxes containing the audio and video file information obtained through structure analysis, and if not, indicating that the audio and video file is not encrypted.
S13) dividing the audio-video file into a plurality of segments with the time stamp of the key frame as a dividing point.
The audio and video file has a plurality of key frames (hereinafter, the number is represented by N), the key frames have different timestamp information, and the audio and video file is divided into 1-N +1 segments by taking the timestamps as dividing points.
S14) selecting a plurality of fragments from all the fragments to encrypt according to the preset requirement; that is, a specific number of segments from the N +1 segments are selected for encryption according to the user requirement (hereinafter, M represents this number, where M is less than or equal to N + 1).
The process of fragment encryption is as follows:
and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
Encryption operation: the key is in a format of X1-X2-X3-X4-X5, wherein X1, X2, X3, X4 and X5 are respectively a string of random 16-ary digits, so that an array with a certain length can be generated according to the key, the elements are X1, X2, X3, X4 and X5, and the elements in the data are inserted into the fragments to complete the encryption operation.
The specific insertion method comprises the following steps: dividing the fragment into P-1 parts, and sequentially inserting array elements in the sequence of each part, wherein P is the number of the array elements. The method specifically comprises the following steps: insert X1 at the beginning of the fragment, X5 at the end of the fragment, X2 at 1/4 for the fragment, X3 at 2/4 for the fragment, and X4 at 3/4 for the fragment.
S15) updating the encrypted fragments in the audio/video file, storing the encryption key in the audio/video file, and updating the size information of the audio/video file; namely, updating in the original Box, and placing the key in an encrypt Box separately, as shown in fig. 2.
As shown in fig. 3, the audio/video file slicing decryption method includes the following steps:
s21) analyzing the encrypted audio/video file structure to obtain encrypted fragments and corresponding encryption key; the audio and video file is encrypted by the audio and video file slicing encryption method.
S22) decrypts the encrypted fragment using the key.
Decryption is the reverse process of encryption, namely, key array elements inserted in each fragment are deleted, namely, X1 is inserted at the beginning of the deleted fragment, X5 is inserted at the end of the deleted fragment, X2 is inserted at the 1/4 of the deleted fragment, X3 is inserted at the 2/4 of the deleted fragment, and X4 is inserted at 3/4 of the deleted fragment.
S23) deleting the Encryptbox, updating the decrypted segment in the audio/video file, and updating the size information of the audio/video file.
The method slices the audio and video file, selects a plurality of slices to encrypt, has high cracking difficulty, and meets the application scene of the user audio and video file segmentation control while ensuring the security.
An audio and video file slicing encryption system comprises,
a segmentation module: and analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments by taking the time stamp of the key frame as a dividing point.
An encryption module: and selecting a plurality of fragments from all the fragments to encrypt according to preset requirements.
The encryption module comprises a fragment encryption module; a fragment encryption module: and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
The fragment encryption module comprises an array module and an insertion module;
an array module: generating an array with a certain length according to the secret key;
inserting a module: the elements in the data are inserted into the fragments.
And an encrypted updating module: and updating the encrypted segments in the audio and video file, and storing the encryption key in the audio and video file.
An audio and video file slicing decryption system comprises,
an analysis module: analyzing the encrypted audio and video file structure to obtain encrypted fragments and a corresponding encryption key; the audio and video file is encrypted by adopting an audio and video file slicing encryption method.
A decryption module: the encrypted segment is decrypted using the key.
And a decrypted update module: and updating the decrypted segment in the audio and video file.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform an audio video file slicing encryption method or an audio video file slicing decryption method.
A computing device comprising one or more processors, memory, and one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing an audio video file slicing encryption method or an audio video file slicing decryption method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above embodiments, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included in the scope of the claims of the present invention which are filed as the application.

Claims (10)

1. The slicing encryption method of the audio and video file is characterized by comprising the following steps: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments;
selecting a plurality of fragments from all the fragments to encrypt according to a preset requirement;
and updating the encrypted segments in the audio and video file, and storing the encryption key in the audio and video file.
2. The audio-video file slicing encryption method according to claim 1, characterized in that: and analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments by taking the time stamp of the key frame as a dividing point.
3. The audio-video file slicing encryption method according to claim 1, characterized in that: the process of encrypting the segment is that,
and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
4. The audio-video file slicing encryption method according to claim 3, characterized in that: the process of the function encryption operation is that,
generating an array with a certain length according to the secret key;
the elements in the data are inserted into the fragments.
5. The slicing decryption method of the audio and video file is characterized by comprising the following steps: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
analyzing the encrypted audio and video file structure to obtain encrypted fragments and a corresponding encryption key; the audio and video file is encrypted by the audio and video file slicing encryption method according to any one of claims 1 to 4;
decrypting the encrypted segment using the key;
and updating the decrypted segment in the audio and video file.
6. An audio and video file slicing encryption system is characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
a segmentation module: analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments;
an encryption module: selecting a plurality of fragments from all the fragments to encrypt according to a preset requirement;
and an encrypted updating module: and updating the encrypted segments in the audio and video file, and storing the encryption key in the audio and video file.
7. The audio-video file slicing encryption system according to claim 6, wherein: a segmentation module: and analyzing the structure of the audio/video file, and dividing the audio/video file into a plurality of segments by taking the time stamp of the key frame as a dividing point.
8. The audio-video file slicing encryption system according to claim 6, wherein: the encryption module comprises a fragment encryption module; a fragment encryption module: and traversing the selected fragments, using the globally unique identifier consisting of 128-bit binary numbers randomly generated by the fragments as a secret key, and performing function encryption operation on the fragments and the corresponding secret key to obtain the encrypted fragments.
9. The audio-video file slicing encryption system of claim 8, wherein: the fragment encryption module comprises an array module and an insertion module;
an array module: generating an array with a certain length according to the secret key;
inserting a module: the elements in the data are inserted into the fragments.
10. Audio and video file slicing decryption system, its characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
an analysis module: analyzing the encrypted audio and video file structure to obtain encrypted fragments and a corresponding encryption key; the audio and video file is encrypted by the audio and video file slicing encryption method according to any one of claims 1 to 4;
a decryption module: decrypting the encrypted segment using the key;
and a decrypted update module: and updating the decrypted segment in the audio and video file.
CN202010288753.2A 2020-04-14 2020-04-14 Slicing encryption method and system and decryption method and system for audio and video files Pending CN111432287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010288753.2A CN111432287A (en) 2020-04-14 2020-04-14 Slicing encryption method and system and decryption method and system for audio and video files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010288753.2A CN111432287A (en) 2020-04-14 2020-04-14 Slicing encryption method and system and decryption method and system for audio and video files

Publications (1)

Publication Number Publication Date
CN111432287A true CN111432287A (en) 2020-07-17

Family

ID=71558235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010288753.2A Pending CN111432287A (en) 2020-04-14 2020-04-14 Slicing encryption method and system and decryption method and system for audio and video files

Country Status (1)

Country Link
CN (1) CN111432287A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114640866A (en) * 2022-05-18 2022-06-17 电子科技大学成都学院 Multichannel encryption method, device and system based on random dynamics
CN114697025A (en) * 2022-04-12 2022-07-01 京东方科技集团股份有限公司 Data encryption and decryption method and related equipment
CN114928445A (en) * 2022-05-31 2022-08-19 中天科技(清远)有限公司 Network security intelligent monitoring early warning management system based on cloud computing
CN115119016A (en) * 2022-06-29 2022-09-27 王雨佳 Information data encryption algorithm

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN105704515A (en) * 2015-06-03 2016-06-22 深圳Tcl数字技术有限公司 Fast playback starting method and device of media file
CN108462566A (en) * 2017-02-20 2018-08-28 沪江教育科技(上海)股份有限公司 A kind of multimedia file encryption method and system
CN109271800A (en) * 2018-09-19 2019-01-25 中国银联股份有限公司 A kind of document handling method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704515A (en) * 2015-06-03 2016-06-22 深圳Tcl数字技术有限公司 Fast playback starting method and device of media file
CN105208404A (en) * 2015-08-26 2015-12-30 北京新东方迅程网络科技有限公司 Video encryption and decryption method and device
CN108462566A (en) * 2017-02-20 2018-08-28 沪江教育科技(上海)股份有限公司 A kind of multimedia file encryption method and system
CN109271800A (en) * 2018-09-19 2019-01-25 中国银联股份有限公司 A kind of document handling method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697025A (en) * 2022-04-12 2022-07-01 京东方科技集团股份有限公司 Data encryption and decryption method and related equipment
CN114640866A (en) * 2022-05-18 2022-06-17 电子科技大学成都学院 Multichannel encryption method, device and system based on random dynamics
CN114640866B (en) * 2022-05-18 2022-08-16 电子科技大学成都学院 Multichannel encryption method, device and system based on random dynamics
CN114928445A (en) * 2022-05-31 2022-08-19 中天科技(清远)有限公司 Network security intelligent monitoring early warning management system based on cloud computing
CN115119016A (en) * 2022-06-29 2022-09-27 王雨佳 Information data encryption algorithm

Similar Documents

Publication Publication Date Title
CN111432287A (en) Slicing encryption method and system and decryption method and system for audio and video files
US11238165B2 (en) File encryption method, file decryption method, electronic device, and storage medium
CN102157171B (en) Method and apparatus for processing information, method and apparatus for manufacturing information recording medium and information recording medium
US10177912B2 (en) Content individualization
CN1581010A (en) Access control for digital content
JP2010176691A5 (en)
CN1723501A (en) Public key media key block
CN1581774A (en) Access control for digital content
JP2002244929A5 (en) Digital content generation method and related apparatus
CN102571333A (en) Information processing apparatus, information processing method, and program
CN107222759B (en) Method, system, device and medium for encrypting and decrypting media file
RU2667780C2 (en) Method of content format conversion verification
CN111698576B (en) Information encryption method, decryption method, server, client, and medium
CN103366132A (en) Device and method for encrypting data
CN114285562B (en) Data encryption method and device
CN1479484A (en) Equipment and method for hierarchical enciphering
CN106096334B (en) Method and device for encrypting hypermedia data, method and device for decrypting hypermedia data
CN115801315A (en) Data transmission method and device, electronic equipment and storage medium
CN110620950B (en) Method, device and equipment for storing audio and video files
KR101330959B1 (en) Method for encrypting and decrypting a conditional access content
KR101022465B1 (en) Method of copying and decrypting encrypted digital data and apparatus therefor
CN101036193A (en) Apparatus and method for securely storing data
CN102142072A (en) Encryption processing and decryption processing method and device of electronic files
EP4084484B1 (en) Method and device for encryption of video stream, communication equipment, and storage medium
CN103491384B (en) Encrypting method and device of video and decrypting method and device of video

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: 20200717

RJ01 Rejection of invention patent application after publication