A method and system for storing recorded audio and video

By diverting, generating hash values, and randomly sorting the recorded audio and video streams, the problems of slow speed and high cost of recording and broadcasting audio and video encryption are solved, efficient, low-cost, high-confidentiality encryption is achieved, and the risk of data leakage is reduced.

CN116545990BActive Publication Date: 2025-09-12SHENZHEN HONGHUI ZHITONG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310341030.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2025-09-12
Estimated Expiration
2043-03-28

AI Technical Summary

Technical Problem

Existing technologies for encrypting recorded audio and video suffer from slow processing speeds, high costs, and low security levels. Especially with the widespread use of high-definition video, it is difficult to provide high-confidentiality encryption without increasing computing resources.

Method used

The audio and video stream is divided into video stream and audio stream, hash value is generated and randomly sorted and encrypted using random number sequence, code book is generated and stored separately in confidentiality server and local code storage, and dynamic encryption is used to synchronize with data stream generation.

Benefits of technology

The data processing volume of the encryption process is reduced, the encryption speed and confidentiality are improved, the encryption cost is reduced, and the probability of the code book and the encrypted file being obtained at the same time is reduced by separate storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116545990B_ABST
    Figure CN116545990B_ABST
Patent Text Reader

Abstract

The present application relates to a method and system for storing recorded audio and video. The method includes cutting a video stream and an audio stream to obtain video sub-files and audio sub-files; selecting all video sub-files and audio sub-files within a time period as an encryption group; generating a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file; using the first hash value to generate a first random number sequence, and using the second hash value to generate a second random number sequence; encrypting the audio sub-file using the first random number sequence, and encrypting the video sub-file at the paired position using the second random number sequence. The method and system for storing recorded audio and video disclosed in the present application reduces the amount of data processing during the encryption process by random grouping, using random numbers, and using random selection encryption, and can encrypt files with high confidentiality at a lower encryption cost and faster encryption speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and system for storing recorded audio and video. Background Art

[0002] With the development of network technology, the use of various application scenarios, such as video conferencing, video surveillance and remote video, has become increasingly widespread, but the resulting information security issues have also become increasingly serious, such as the video leaks that have occurred many times.

[0003] Taking video surveillance as an example, this scenario generates a large amount of data. Encrypting this data as a whole, such as using full encryption algorithms such as RSA, DES, and AES, will bring about a massive amount of data, slowing down the system's processing speed. In particular, the widespread use of high-definition video has made this problem increasingly prominent.

[0004] The timeliness and security level of the video also need to be considered. Some videos have limited timeliness, making the use of high-level full encryption algorithms uneconomical. This disadvantage is exacerbated by the impact of low security levels. For example, encryption of a typical surveillance video with a one-hour recording time might take more than an hour, which is clearly inappropriate. Shortening this time requires high-performance computers, which also incurs significant additional costs. Further research is needed to determine how to achieve high-security encryption while maintaining processing speed. Summary of the Invention

[0005] The present application provides a method and system for storing recorded audio and video, which reduces the amount of data processing during the encryption process by random grouping, using random numbers, and using random selection encryption. Files can be encrypted with high confidentiality at a lower encryption cost and faster encryption speed.

[0006] The above-mentioned purpose of this application is achieved through the following technical solutions:

[0007] In a first aspect, the present application provides a method for storing recorded audio and video, comprising:

[0008] In response to the acquired data stream, the data stream is divided into a video stream and an audio stream;

[0009] The video stream and audio stream are cut respectively to obtain video sub-files and audio sub-files. In the time sequence, the video sub-files and audio sub-files are arranged in the order of generation time;

[0010] Select all video sub-files and audio sub-files within a time period as an encryption group;

[0011] generating a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file;

[0012] generating a first random number sequence using the first hash value and generating a second random number sequence using the second hash value;

[0013] Randomly sort the video sub-files and audio sub-files within the encryption group;

[0014] Encrypting the audio sub-file using the first random number sequence at the paired position and encrypting the video sub-file at the paired position using the second random number sequence; and

[0015] Generate a password book and encrypted files and send the password book to the security server for storage;

[0016] The number of participating audio sub-files and video sub-files is less than or equal to the total number of encryption groups.

[0017] In a possible implementation manner of the first aspect, the code book includes random sorting information and a first random number sequence and a second random number sequence involved in encryption.

[0018] In a possible implementation of the first aspect, randomly sorting the video sub-files and the audio sub-files in the encryption group includes:

[0019] Randomly sort the video sub-files within the encryption group;

[0020] Randomly sorting the audio sub-files within the encryption group; and

[0021] The randomly sorted video sub-files and audio sub-files are randomly sorted again.

[0022] In a possible implementation manner of the first aspect, at least two random number sequence generators are used in the process of generating the first random number sequence using the first hash value.

[0023] In a possible implementation manner of the first aspect, at least two random number sequence generators are used in the process of generating the second random number sequence using the second hash value.

[0024] In a possible implementation of the first aspect, sending the code book to the security server for storage includes:

[0025] Send the code book to the local code storage for storage;

[0026] Establishing a data communication relationship with the local password storage on the security server; and

[0027] After obtaining authorization, the password book stored in the local password storage is transferred to the security server and the password book stored in the local password storage is deleted.

[0028] In a possible implementation manner of the first aspect, the authorization includes fingerprint authorization, facial recognition authorization, and password authorization.

[0029] In a second aspect, the present application provides a device for storing recorded audio and video, comprising:

[0030] a data processing unit, configured to, in response to the acquired data stream, divide the data stream into a video stream and an audio stream;

[0031] The data segmentation unit is used to segment the video stream and the audio stream respectively to obtain video sub-files and audio sub-files. In terms of time sequence, the video sub-files and the audio sub-files are arranged in the order of generation time;

[0032] A selection unit, used for selecting all video sub-files and audio sub-files within a time period as an encryption group;

[0033] a first processing unit, configured to generate a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file;

[0034] a second processing unit, configured to generate a first random number sequence using the first hash value and generate a second random number sequence using the second hash value;

[0035] A random sorting unit, used for randomly sorting the video sub-files and audio sub-files in the encryption group;

[0036] an encryption unit, configured to encrypt the audio subfile at the paired position using a first random number sequence, and encrypt the video subfile at the paired position using a second random number sequence, wherein the number of participating audio subfiles and video subfiles is less than or equal to the total number of encryption groups; and

[0037] The generation and storage unit is used to generate a code book and an encrypted file and send the code book to a security server for storage.

[0038] In a third aspect, the present application provides a system for storing recorded audio and video, the system comprising:

[0039] one or more memories for storing instructions; and

[0040] One or more processors, configured to call and execute the instructions from the memory to perform the method as described in the first aspect and any possible implementation of the first aspect.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising:

[0042] The program, when the program is executed by a processor, the method described in the first aspect and any possible implementation of the first aspect is executed.

[0043] In a fifth aspect, the present application provides a computer program product, comprising program instructions. When the program instructions are executed by a computing device, the method described in the first aspect and any possible implementation of the first aspect is executed.

[0044] In a sixth aspect, the present application provides a chip system comprising a processor for implementing the functions involved in the above aspects, such as generating, receiving, sending, or processing the data and / or information involved in the above methods.

[0045] The chip system may be composed of chips, or may include chips and other discrete devices.

[0046] In one possible design, the chip system also includes a memory for storing necessary program instructions and data. The processor and the memory can be decoupled and provided on different devices, connected via wired or wireless means, or the processor and the memory can be coupled on the same device. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a schematic block diagram of the steps of a method for storing recorded audio and video provided by this application.

[0048] Figure 2 This is a schematic diagram of cutting video streams and audio streams provided by this application.

[0049] Figure 3 This is another schematic diagram of cutting video streams and audio streams provided by this application.

[0050] Figure 4 This is a schematic diagram of the generation process of a random number sequence provided by this application.

[0051] Figure 5 This is a schematic flowchart of the random sorting steps provided by this application.

[0052] Figure 6 This is a schematic block diagram of the steps for storing a code book provided by the present application.

[0053] Figure 7 This is a schematic diagram of a process for storing a code book provided by this application. DETAILED DESCRIPTION

[0054] The technical solution in this application is further described in detail below with reference to the accompanying drawings.

[0055] See also Figure 1 , a method for storing recorded audio and video disclosed in this application, comprising the following steps:

[0056] S101, in response to the acquired data stream, dividing the data stream into a video stream and an audio stream;

[0057] S102, cutting the video stream and the audio stream into video sub-files and audio sub-files respectively, wherein the video sub-files and the audio sub-files are arranged in the order of their generation time in time sequence;

[0058] S103, selecting all video sub-files and audio sub-files within a time period as an encryption group;

[0059] S104, generating a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file;

[0060] S105, using the first hash value to generate a first random number sequence, and using the second hash value to generate a second random number sequence;

[0061] S106, randomly sorting the video sub-files and audio sub-files in the encryption group;

[0062] S107, encrypting the audio sub-file at the paired position using the first random number sequence, and encrypting the video sub-file at the paired position using the second random number sequence; and

[0063] S108, generating a code book and an encrypted file and sending the code book to a security server for storage;

[0064] The number of participating audio sub-files and video sub-files is less than or equal to the total number of encryption groups.

[0065] Specifically, in step S101, data streams generated by video conferencing, video surveillance, and remote video are received. The received data streams are first divided into video streams and audio streams. It should be noted that the data streams received in step S101 are continuously generated and are continuously sent to a server or processing terminal. The method for storing recorded audio and video disclosed in this application is applied to the server or processing terminal.

[0066] Of course, there are also situations where there are only images but no sound, such as video conferencing, video surveillance, and remote video. Here, it is necessary to call on environmental sounds to generate audio streams.

[0067] contrast Figure 2 and Figure 3 In step S102, the video and audio streams are segmented into sub-files, which are arranged in the order of their generation. The purpose of segmentation is to perform block encryption on the video and audio streams. Block encryption allows for synchronous encryption of continuously generated data streams, rather than starting encryption only after receiving the complete data stream.

[0068] The block cipher method means that the encryption process can be carried out synchronously with the data stream generation process, which can make more effective use of the computing power of the server or processing terminal. Compared with the processing method of uniform encryption after receiving the complete data stream, the block cipher method has the potential to end the encryption process synchronously when the data stream generation is completed, and this encryption method does not require additional computing power.

[0069] In step S103, all video sub-files and audio sub-files within a period of time are selected as an encryption group. That is, the video sub-files and audio sub-files are grouped according to their generation time. For example, video sub-files and audio sub-files generated every thirty seconds or every minute are regarded as an encryption group.

[0070] See also Figure 4 In step S104, a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file are generated. The first hash value can be regarded as a feature value of the corresponding video sub-file, and the second hash value can also be regarded as a feature value of the corresponding video sub-file.

[0071] Here we take the MD5 algorithm as an example. The MD5 code processes the input information in 512-bit groups, and each group is divided into 16 32-bit sub-groups. After a series of processing, the output of the algorithm consists of four 32-bit groups. After cascading these four 32-bit groups, a 128-bit hash value will be generated.

[0072] Each video sub-file and each audio sub-file are different, so different first hash values ​​and second hash values ​​can be obtained. The first hash values ​​and second hash values ​​obtained in this way are not regular because the generation of video sub-files and audio sub-files themselves is not regular.

[0073] It is also necessary to consider that the video sub-file and audio sub-file are encrypted in subsequent steps. Encryption means that the video sub-files and audio sub-files involved in the encryption process are changed. Even if the MD5 algorithm is used for processing, the same first hash value and second hash value cannot be obtained.

[0074] In step S105, a first random number sequence is generated using the first hash value, and a second random number sequence is generated using the second hash value. The first and second random number sequences are generated using a random number generator. This means that even if the video sub-file and audio sub-file do not participate in the subsequent encryption process, their corresponding first and second hash values ​​are also encrypted.

[0075] As for the random number generator, a hardware-based random number generator may be provided.

[0076] In step S106, the video sub-files and audio sub-files in the encryption group are randomly sorted. The purpose of random sorting is to disrupt the correspondence between the video sub-files and the audio sub-files so that the randomly sorted video sub-files and audio sub-files have no reference in time sequence.

[0077] At the same time, in subsequent steps, the video sub-file and audio sub-file will also be partially involved in the encryption process. That is, for the final encrypted file, the arrangement and encryption order are not referenceable, resulting in the difficulty of recovery being much higher than the value of the data stream itself.

[0078] In step S107, the audio subfile is encrypted using the first random number sequence of the paired position, and the video subfile is encrypted using the second random number sequence. Meanwhile, the number of participating audio subfiles and video subfiles is less than or equal to the total number of encryption groups.

[0079] The first hash value, the second hash value, and the paired position can be used to avoid the problem of inconsistent volumes of the audio sub-file and the video sub-file during the segmentation process.

[0080] In other words, audio and video sub-files can participate in the encryption process based on specific usage scenarios. This processing method has the following advantages:

[0081] 1. It can reduce the amount of data processing on the server or processing terminal, shortening the encryption time, especially when computing power is limited.

[0082] 2. After being grouped and randomly arranged, the audio and video sub-files have achieved a preliminary level of confidentiality;

[0083] 3. The encryption level can be adjusted according to the specific usage scenario. For example, the participation ratio of audio sub-files and video sub-files can be adjusted between 30% and 100%. Users can adjust it based on factors such as computing power and encryption time.

[0084] Finally, step S108 is executed. In this step, the password pad and encrypted file are generated and sent to the security server for storage, while the encrypted file is stored directly on the local server. The security server and the local server are two different servers, storing the password pad and encrypted file respectively, to reduce the probability of the password pad and encrypted file being obtained simultaneously.

[0085] Overall, the method for storing recorded audio and video provided in this application uses dynamic encryption for processing. The encryption process is carried out synchronously with the generation of the data stream, which makes full use of the current computing power and also allows the encryption time to overlap with the generation time of the data stream.

[0086] Data streams (including video and audio) are processed using a hybrid encryption method that combines preliminary and deep encryption. The proportion of deep encryption is adjusted based on user needs to ensure that encryption is compatible with computing power and time. Finally, during storage, the codebook and encrypted files are stored separately to reduce the possibility of simultaneous access to both.

[0087] In some examples, the codebook includes random ordering information and a first random number sequence and a second random number sequence involved in encryption. The random ordering information represents the grouping information of the video sub-file and the audio sub-file, as well as the information after random ordering. The first random number sequence and the second random number sequence represent the generation of the first hash value and the second hash value, as well as the encryption process. The random ordering information, the first random number sequence, and the second random number sequence can be used to decrypt the encrypted file.

[0088] Regarding the correspondence between the random sorting information, the first random number sequence, the second random number sequence, and the encrypted file, a header comparison relationship sequence may be added to the random sorting information, the first random number sequence, and the second random number sequence in a manner similar to the TCP / IP protocol.

[0089] See also Figure 5 , randomly sorting the video sub-files and audio sub-files in the encryption group includes the following steps:

[0090] S201, randomly sorting the video sub-files in the encryption group;

[0091] S202, randomly sorting the audio sub-files in the encryption group; and

[0092] S203: Perform a second random sort on the randomly sorted video sub-files and audio sub-files.

[0093] The three-times random sorting method can further increase the difficulty of reverse cracking. Multiple mixed sorting means that the correspondence between the video sub-file and the audio sub-file is completely disrupted. Two random sorting means that the video sub-file is encrypted twice, the purpose of which is to increase the difficulty of cracking the encrypted file.

[0094] In some examples, at least two random number sequence generators are used in the process of generating the first random number sequence using the first hash value.

[0095] In other examples, at least two random number sequence generators are used in the process of generating the second random number sequence using the second hash value.

[0096] This means that when cracking the first random number sequence and the second random number sequence, it is necessary to first analyze which random number sequence generator is used and then crack them. Undoubtedly, this will increase the difficulty of cracking the encrypted file.

[0097] The technical measures described above are intended to increase the difficulty of cracking encrypted files. It should be understood that one dimension of confidentiality assessment is the economic viability of confidentiality. For example, a typical surveillance video (e.g., ten minutes in length) has very limited value. If the cracking time is one day, the probability of its cracking decreases significantly due to poor economic viability.

[0098] In addition, this application also adds a dynamic adjustment method for the confidentiality level. Users can adjust it according to actual usage needs and balance influencing factors such as encryption time, computing power and economy.

[0099] See also Figure 6 , the password book is sent to the confidentiality server for storage, and the following method is used:

[0100] S301, sending the code book to the local code storage for storage;

[0101] S302, establishing a data communication relationship with the local password storage on the security server; and

[0102] S303: After obtaining authorization, the password book stored in the local password storage is transferred to the security server and the password book stored in the local password storage is deleted.

[0103] See also Figure 7 , here needs to be described in conjunction with the hardware. The encrypted file is stored in the local memory. The function of the local password memory is to store the password book generated in step S108. The password book needs to be sent separately to the local password memory for storage. The local password memory needs to be sent to the confidentiality server by a dedicated person.

[0104] Then, step S302 is executed, in which a data communication relationship is established between the security server and the local password storage, and then after obtaining authorization, the password book stored in the local password storage is transferred to the security server and the password book stored in the local password storage is deleted, which is the content of step S303.

[0105] In other words, the password book needs to be transferred using a local password storage device and then stored separately on the security server. The local password storage device is managed by a dedicated person, and fingerprint authorization, facial recognition authorization, and password authorization are introduced in the local password storage device. In other words, the local password storage device needs to be authorized by a dedicated person before the security server can access the password book in the local password storage device.

[0106] Fingerprint authorization, facial recognition authorization, and password authorization require the corresponding hardware in the local password storage. For example, in places like hotels, the local password storage is managed by a dedicated person, and the password book is transferred to the security server for storage every day. The password book generated in step S108 above also needs to be sent to the local password storage for storage; local storage is not allowed.

[0107] The present application also provides a device for storing recorded audio and video, including:

[0108] a data processing unit, configured to, in response to the acquired data stream, divide the data stream into a video stream and an audio stream;

[0109] The data segmentation unit is used to segment the video stream and the audio stream respectively to obtain video sub-files and audio sub-files. In terms of time sequence, the video sub-files and the audio sub-files are arranged in the order of generation time;

[0110] A selection unit, used for selecting all video sub-files and audio sub-files within a time period as an encryption group;

[0111] a first processing unit, configured to generate a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file;

[0112] a second processing unit, configured to generate a first random number sequence using the first hash value and generate a second random number sequence using the second hash value;

[0113] A random sorting unit, used for randomly sorting the video sub-files and audio sub-files in the encryption group;

[0114] an encryption unit, configured to encrypt the audio subfile at the paired position using a first random number sequence, and encrypt the video subfile at the paired position using a second random number sequence, wherein the number of participating audio subfiles and video subfiles is less than or equal to the total number of encryption groups; and

[0115] The generation and storage unit is used to generate a code book and an encrypted file and send the code book to a security server for storage.

[0116] Furthermore, the code book includes random sorting information and a first random number sequence and a second random number sequence involved in encryption.

[0117] Furthermore, it also includes:

[0118] A first random sorting unit, configured to randomly sort the video sub-files within the encryption group;

[0119] A second random sorting unit, configured to randomly sort the audio sub-files in the encryption group; and

[0120] The third random sorting unit is used to perform a second random sorting on the randomly sorted video sub-files and audio sub-files.

[0121] Furthermore, at least two random number sequence generators are used in the process of generating the first random number sequence using the first hash value.

[0122] Furthermore, at least two random number sequence generators are used in the process of generating the second random number sequence using the second hash value.

[0123] Furthermore, it also includes:

[0124] a storage unit, configured to send the code book to a local code memory for storage;

[0125] a communication unit for establishing a data communication relationship with a local password storage on a security server; and

[0126] The deleting unit is used to transfer the password book stored in the local password storage to the security server and delete the password book stored in the local password storage after obtaining authorization.

[0127] Furthermore, authorization includes fingerprint authorization, facial recognition authorization and password authorization.

[0128] In one example, the unit in any of the above devices can be one or more integrated circuits configured to implement the above method, such as: one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms.

[0129] For another example, when the units in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call programs. For another example, these units can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0130] Various objects such as various messages / information / equipment / network elements / systems / devices / actions / operations / processes / concepts that may appear in this application are named. It can be understood that these specific names do not constitute a limitation on the relevant objects. The names assigned may change with factors such as scenarios, contexts or usage habits. The understanding of the technical meaning of the technical terms in this application should be mainly determined from the functions and technical effects embodied / executed in the technical solutions.

[0131] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0134] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0135] It should also be understood that in various embodiments of this application, the terms "first," "second," and so on are merely used to indicate that multiple objects are distinct. For example, the terms "first time window" and "second time window" are merely used to indicate different time windows. They should not have any impact on the time windows themselves. The terms "first," "second," and so on should not limit the embodiments of this application in any way.

[0136] It should also be understood that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.

[0137] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a computer-readable storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned computer-readable storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0138] The present application also provides a system for storing recorded audio and video, the system comprising:

[0139] one or more memories for storing instructions; and

[0140] One or more processors are configured to call and execute the instructions from the memory to perform the method described above.

[0141] The present application also provides a computer program product, which includes instructions. When the instructions are executed, the audio and video storage system performs operations of the audio and video storage system corresponding to the above method.

[0142] The present application also provides a chip system, which includes a processor for implementing the functions involved in the above content, such as generating, receiving, sending, or processing the data and / or information involved in the above method.

[0143] The chip system may be composed of chips, or may include chips and other discrete devices.

[0144] The processor mentioned in any of the above may be a CPU, a microprocessor, an ASIC, or one or more integrated circuits for executing a program for controlling the above-mentioned feedback information transmission method.

[0145] In one possible design, the chip system also includes a memory for storing necessary program instructions and data. The processor and the memory can be decoupled and provided on different devices, respectively, and connected via wired or wireless means to support the chip system in implementing the various functions of the above embodiments. Alternatively, the processor and the memory can be coupled on the same device.

[0146] Optionally, the computer instructions are stored in a memory.

[0147] Optionally, the memory is a storage unit within the chip, such as a register, cache, etc. The memory can also be a storage unit within the terminal located outside the chip, such as ROM or other types of static storage devices that can store static information and instructions, RAM, etc.

[0148] It can be understood that the memory in the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories.

[0149] The non-volatile memory may be ROM, programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory.

[0150] Volatile memory can be RAM, which is used as an external cache memory. There are many different types of RAM, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct memory bus RAM.

[0151] The embodiments of this specific implementation method are all preferred embodiments of the present application and are not intended to limit the scope of protection of the present application. Therefore, any equivalent changes made based on the structure, shape, and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A method for storing recorded audio and video, characterized in that: include: In response to the acquired data stream, the data stream is divided into a video stream and an audio stream; The video stream and audio stream are cut respectively to obtain video sub-files and audio sub-files. In the time sequence, the video sub-files and audio sub-files are arranged in the order of generation time; Select all video sub-files and audio sub-files within a time period as an encryption group; generating a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file; generating a first random number sequence using the first hash value and generating a second random number sequence using the second hash value; Randomly sort the video sub-files and audio sub-files within the encryption group; Encrypting the audio subfile using a first random number sequence and encrypting the video subfile using a second random number sequence, wherein the video subfile corresponding to the first random number sequence and the encrypted audio subfile are in the same time, and the audio subfile corresponding to the second random number sequence and the encrypted video subfile are in the same time; and Generate a password book and encrypted files and send the password book to the security server for storage; The number of participating audio sub-files and video sub-files is less than or equal to the total number of encryption groups.

2. The method for storing recorded audio and video according to claim 1, wherein: The code book includes random sorting information and a first random number sequence and a second random number sequence involved in encryption.

3. The method for storing recorded audio and video according to claim 1, wherein: Randomly sorting the video sub-files and audio sub-files within the encryption group includes: Randomly sort the video sub-files within the encryption group; Randomly sorting the audio sub-files within the encryption group; and The randomly sorted video sub-files and audio sub-files are randomly sorted again.

4. The method for storing recorded audio and video according to any one of claims 1 to 3, characterized in that: At least two random number sequence generators are used in the process of generating the first random number sequence using the first hash value.

5. The method for storing recorded audio and video according to claim 4, characterized in that: At least two random number sequence generators are used in the process of generating the second random number sequence using the second hash value.

6. The method for storing recorded audio and video according to claim 1, wherein: Sending the code book to the security server for storage includes: Send the code book to the local code storage for storage; Establishing a data communication relationship with the local password storage on the security server; and After obtaining authorization, the password book stored in the local password storage is transferred to the security server and the password book stored in the local password storage is deleted.

7. The method for storing recorded audio and video according to claim 6, wherein: Authorization includes fingerprint authorization, facial recognition authorization and password authorization.

8. A device for storing recorded audio and video, characterized in that: include: a data processing unit, configured to, in response to the acquired data stream, divide the data stream into a video stream and an audio stream; The data segmentation unit is used to segment the video stream and the audio stream respectively to obtain video sub-files and audio sub-files. In terms of time sequence, the video sub-files and the audio sub-files are arranged in the order of generation time; A selection unit, used for selecting all video sub-files and audio sub-files within a time period as an encryption group; a first processing unit, configured to generate a first hash value corresponding to each video sub-file and a second hash value corresponding to each audio sub-file; a second processing unit, configured to generate a first random number sequence using the first hash value and generate a second random number sequence using the second hash value; A random sorting unit, used for randomly sorting the video sub-files and audio sub-files in the encryption group; an encryption unit configured to encrypt an audio subfile using a first random number sequence and a video subfile using a second random number sequence, wherein the video subfile corresponding to the first random number sequence and the audio subfile being encrypted are present at the same time, and the audio subfile corresponding to the second random number sequence and the video subfile being encrypted are present at the same time, and the number of participating audio subfiles and video subfiles is less than or equal to the total number of encryption groups; as well as The generation and storage unit is used to generate a code book and an encrypted file and send the code book to a security server for storage.

9. A system for storing recorded audio and video, characterized in that: The system comprises: one or more memories for storing instructions; and One or more processors, configured to call and execute the instructions from the memory to perform the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium comprises: The program, when executed by a processor, executes the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Secure file sharing method and system

    CN103636160A

  • Audio and video file storage method, device and equipment

    CN110620950A