Multimedia data storage methods, computer equipment and storage devices

By doubly encrypting multimedia data and storing it in a blockchain-based distributed storage device, and using storage devices with different access permissions for verification and backup, the security problem of multimedia data storage is solved, and the high security and disaster recovery capabilities are improved.

CN115834035BActive Publication Date: 2026-07-31ZHEJIANG DAHUA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Filing Date
2022-10-27
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies for storing multimedia data are at risk of being maliciously forged, deleted, or tampered with, resulting in a lack of security.

Method used

Multimedia data is double-encrypted using encryption keys and stored in a blockchain-based distributed storage device. Data verification and backup are performed using storage devices with different access permissions, and the consensus mechanism of the blockchain is used to prevent tampering.

Benefits of technology

It improves the security and privacy of multimedia data, enhances disaster recovery capabilities, prevents data tampering, and improves the reliability of data storage through multi-party backup.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834035B_ABST
    Figure CN115834035B_ABST
Patent Text Reader

Abstract

This application discloses a multimedia data storage method, computer device, and storage apparatus. The method includes: acquiring first encrypted data of multimedia data sent by an acquisition device, wherein the first encrypted data is obtained by the acquisition device performing a first encryption on the multimedia data using an encryption key; sending the first encrypted data to a first storage device for storage; and performing a second encryption on the first encrypted data to obtain second encrypted data, and sending the second encrypted data to a second storage device for storage; wherein the second encrypted data is used to verify the first encrypted data, the first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different. This solution can improve the security of multimedia data storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage technology, and in particular to a multimedia data storage method, computer equipment, and storage device. Background Technology

[0002] With the rapid development of computer technology, more and more application scenarios use large amounts of multimedia data, requiring the storage of large amounts of multimedia data.

[0003] In existing technologies, multimedia data is usually stored in the form of multimedia data files on storage media such as hard drives or mobile storage devices, or stored in databases. However, multimedia data stored on these devices or in databases is at risk of being maliciously forged, deleted, or tampered with, which makes it impossible to guarantee the security of multimedia data. Summary of the Invention

[0004] The main technical problem addressed by this application is to provide a multimedia data storage method, computer equipment, and storage device that can improve the security of multimedia data storage.

[0005] To address the aforementioned problems, a first aspect of this application provides a multimedia data storage method. The method includes: acquiring first encrypted data of multimedia data sent by an acquisition device, wherein the first encrypted data is obtained by the acquisition device performing a first encryption on the multimedia data using an encryption key; sending the first encrypted data to a first storage device for storage; and performing a second encryption on the first encrypted data to obtain second encrypted data, and sending the second encrypted data to a second storage device for storage; wherein the second encrypted data is used to verify the first encrypted data, the first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different.

[0006] To address the aforementioned issues, a second aspect of this application provides a multimedia data storage method. The method includes: a data acquisition device receiving an encryption key sent by a server, and using the encryption key to perform a first encryption on multimedia data to obtain first encrypted data, and sending the first encrypted data to the server; the server acquiring the first encrypted data of the multimedia data sent by the acquisition device, and sending the first encrypted data to a first storage device for storage; and performing a second encryption on the first encrypted data to obtain second encrypted data, and sending the second encrypted data to a second storage device for storage; wherein the second encrypted data is used to verify the first encrypted data, the first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different.

[0007] To address the aforementioned problems, a third aspect of this application provides a computer device comprising a memory and a processor coupled to each other, wherein the memory stores program data and the processor executes the program data to implement any step of the aforementioned multimedia data storage method.

[0008] To address the aforementioned problems, a fourth aspect of this application provides a storage device that stores program data executable by a processor, the program data being used to implement any step of the aforementioned multimedia data storage method.

[0009] The above scheme obtains first encrypted data by using an encryption key to encrypt multimedia data through a collection device. This first encrypted data is then sent to a first storage device for storage. The first encrypted data is then further encrypted to obtain second encrypted data, which is also sent to a second storage device for storage. Since the first and / or second storage devices are blockchain-based distributed storage devices, the distributed and tamper-proof characteristics of blockchain ensure the privacy and security of both the first and second encrypted data. Furthermore, storing the first and second encrypted data on devices with different access permissions, and using the second encrypted data to verify the first encrypted data to check for tampering, enhances the security of multimedia data from multiple perspectives. In addition, combining the storage and verification of multimedia data on the first and second storage devices allows for multi-party backup of the multimedia data, improving disaster recovery capabilities. Moreover, the consensus mechanism of blockchain prevents tampering of multimedia data, further enhancing the security of multimedia data storage. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in this application, the accompanying drawings required in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Among them:

[0011] Figure 1 This is a schematic diagram of the structure of the first embodiment of the multimedia data storage system of this application;

[0012] Figure 2 This is a schematic diagram of the structure of the second embodiment of the multimedia data storage system of this application;

[0013] Figure 3 This is a flowchart illustrating the first embodiment of the multimedia data storage method of this application;

[0014] Figure 4 This application Figure 3A flowchart illustrating an embodiment of step S11;

[0015] Figure 5 This is a flowchart illustrating the second embodiment of the multimedia data storage method of this application;

[0016] Figure 6 This is a flowchart illustrating the third embodiment of the multimedia data storage method of this application;

[0017] Figure 7 This is a timing flowchart of the third embodiment of the multimedia data storage method of this application;

[0018] Figure 8 This is a flowchart illustrating the fourth embodiment of the multimedia data storage method of this application;

[0019] Figure 9 This is a schematic diagram of the structure of the first embodiment of the multimedia data storage device of this application;

[0020] Figure 10 This is a schematic diagram of the structure of an embodiment of the computer device of this application;

[0021] Figure 11 This is a schematic diagram of the structure of an embodiment of the storage device of this application. Detailed Implementation

[0022] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0023] The terms "first" and "second" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to such processes, methods, products, or apparatus.

[0024] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0025] This application provides the following embodiments, and each embodiment is described in detail below.

[0026] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of the first embodiment of the multimedia data storage system of this application. The multimedia data storage system 100 may include a data acquisition device 101, a server 102, and a storage device 103. The data acquisition device 101 and the server 102 can be communicatively connected, and the server 102 and the storage device 103 can be communicatively connected. The communication connection can be a wired connection or a wireless connection, and this application does not limit the method of communication.

[0027] The acquisition device 101 can be used to acquire multimedia data, or it can be used to generate or acquire multimedia data. This application takes the acquisition device 101 as a device with a camera function as an example for illustration. For example, the acquisition device 101 can be a camera device, a monitoring device, an electronic device, etc. Multimedia data can include audio, video, image, and other data, such as video data and audio data acquired by a monitoring device. This application does not limit this.

[0028] Server 102 is used to manage the storage of multimedia data. When it receives a request to view multimedia data, it can also verify the viewing of multimedia data and forward related data.

[0029] Storage device 103 is used to store multimedia data. Storage device 103 can be a device with storage function or a network node device, such as a node device or storage device in a blockchain network.

[0030] In some embodiments, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of the second embodiment of the multimedia data storage system of this application. The multimedia data storage system 100 may include a data acquisition device 101, a server 102, a storage device 103, and a client 104. The data acquisition device 101, the server 102, the storage device 103, and the client 104 can communicate with each other, and the communication connection can be a wired connection or a wireless connection, which is not limited in this application.

[0031] Unlike the embodiments described above, the client 104 in this embodiment can be used to initiate a request to the server 102 to view multimedia data, and can view the multimedia data. The client 104 can be a device capable of viewing multimedia data, such as a device that can view multimedia data on platforms like PCs, apps, and web.

[0032] In some implementations, client 104 has management rights over multimedia data, and client 104 can generate keys for storing and managing multimedia data.

[0033] In some implementations, the client 104 and the acquisition device 101 can be the same device or different devices. When the client 104 and the acquisition device 101 are the same device, the acquisition device 101 (client 104) can also send a request to the server 102 to view the multimedia data. In this case, the acquisition device 101 (client 104) needs to have the function of acquiring multimedia data and the function of viewing multimedia data.

[0034] In some embodiments, the specific implementation of the multimedia data storage system of the above embodiments can be found in the specific implementation of the following embodiments.

[0035] Please see Figure 3 , Figure 3 This is a flowchart illustrating the first embodiment of the multimedia data storage method of this application. The method may include the following steps:

[0036] S11: Obtain the first encrypted data of the multimedia data sent by the acquisition device, wherein the first encrypted data is obtained by the acquisition device using an encryption key to perform a first encryption on the multimedia data.

[0037] In some implementations, the multimedia data storage method of this embodiment can be applied to the server, and the server can implement any step of this embodiment.

[0038] Multimedia data is acquired by an acquisition device, that is, an acquisition device can be used to acquire multimedia data. Multimedia data may include audio, video, images, audio and video data, etc. Acquisition devices may be, for example, camera devices, live streaming devices, etc. This application will use a camera device as an example for the following description, but this application is not limited to this.

[0039] In some implementations, the acquisition device may use an encryption key to perform a first encryption on the multimedia data, obtaining first encrypted data. The acquisition device then sends the first encrypted data to the server, enabling the server to receive the first encrypted data.

[0040] In some embodiments, please refer to Figure 4 This embodiment can further extend step S11 of the above embodiment. Acquiring the first encrypted data of the multimedia data sent by the acquisition device can include the following steps:

[0041] S121: Receive the encryption key generated by the client and send the encryption key to the acquisition device so that the acquisition device can use the encryption key to perform the first encryption on the multimedia data and obtain the first encrypted data.

[0042] In some implementations, the encryption key is generated by the client, which may have management authority over the multimedia data. The client can generate a key pair, which may include an encryption key and a decryption key. The encryption key and decryption key can be a set of asymmetric public and private keys. The encryption key can be a public key, used for initial encryption of the multimedia data to obtain first encrypted data; the decryption key can be a private key, used to decrypt the first encrypted data obtained by the initial encryption key to obtain the multimedia data.

[0043] The client sends the encryption key to the server. After receiving the encryption key, the server sends it to the acquisition device, which then uses the encryption key to perform the first encryption on the multimedia data to obtain the first encrypted data.

[0044] In some implementations, multimedia data may include media data and a sequence identifier. The sequence identifier can uniquely identify the media data, such as a sequence number of the media data, and can be generated by the acquisition device. Taking audio and video data as an example, the multimedia data may include audio and video and a unique sequence ID (Identity Document, unique code). The acquisition device can use an encryption key to perform a first encryption on the media data and the sequence identifier to obtain first encrypted data, which may also be referred to as the contract information of the multimedia data.

[0045] After the acquisition device completes the encryption of the multimedia data, it sends the first encrypted data to the server.

[0046] In some implementations, the client stores the decryption key corresponding to the encryption key, making the decryption key private and preventing other devices from obtaining it to access multimedia data. This also prevents other devices from obtaining the decryption key without the client's permission, thus improving the security of multimedia data storage.

[0047] In some implementations, the client can store the key pair offline, that is, store the encryption key and decryption key offline. When the decryption key is needed, such as when decrypting the first encrypted data, the offline-stored decryption key is used for decryption, which can further enhance the system's security.

[0048] S122: First encrypted data received from the multimedia data sent by the acquisition device.

[0049] The server receives the first encrypted data of the multimedia data sent by the acquisition device, and can manage or forward the storage of the first encrypted data.

[0050] In some implementations, after the server obtains the first encrypted data through this step, the following steps can be performed.

[0051] S12: Send the first encrypted data to the first storage device for storage.

[0052] The server sends the first encrypted data to the first storage device, so that the first storage device stores the first encrypted data.

[0053] In some implementations, the first storage device can be a blockchain-based distributed storage device. The first storage device has access permissions, which prevents the first encrypted data stored on the first storage device from being publicly disclosed. Only devices or users authorized to access the first encrypted data stored on the first storage device can access it, thereby improving the privacy of the first encrypted data of multimedia data.

[0054] In some implementations, the first storage device can be a node device on a private blockchain, where the node device can be a device with storage capabilities. The server sends the first encrypted data to the node device on the private blockchain for storage, meaning the first encrypted data can be distributed and stored within the private blockchain network. This ensures the privacy of the first encrypted data, as it is stored within the private blockchain and not publicly disclosed, thus improving data storage security and better protecting the privacy of multimedia data. Furthermore, storing the first encrypted multimedia data in the node device of the private blockchain network offers good storage and retrieval efficiency for the first encrypted data.

[0055] S13: Perform a second encryption on the first encrypted data to obtain second encrypted data, and send the second encrypted data to the second storage device for storage.

[0056] After the server sends the first encrypted data to the first storage device for storage, it can also perform a second encryption on the first encrypted data to obtain the second encrypted data. The second encryption can be asymmetric encryption.

[0057] In some implementations, a digest operation can be performed on the first encrypted data to obtain the second encrypted data. The second encrypted data can also be called a digital fingerprint. The second encryption algorithm is, for example, the SHA256 hash algorithm, the RSA algorithm, or the EDSA algorithm. This application does not limit the second encryption algorithm.

[0058] After the server performs a second encryption to obtain the second encrypted data, the server can send the second encrypted data to a second storage device for storage. The second storage device is a device with storage and / or communication functions.

[0059] In some implementations, the server may also broadcast the encryption key to other devices, such as other clients, the server itself, or node devices in the blockchain; this application does not impose any restrictions on this.

[0060] In some implementations, the second encrypted data can be used to verify the first encrypted data, so that when the first encrypted data is needed, it can be verified whether the first encrypted data has been tampered with, thereby improving the security of multimedia data and the corresponding first encrypted data.

[0061] In some implementations, the second storage device is a blockchain-based distributed storage device. The second storage device may have access permissions or no access permissions. For example, the second storage device may be a node device on a public blockchain or a node device on a private blockchain. This application does not impose any restrictions on this.

[0062] In some implementations, the access permissions of the second storage device and the first storage device are different. For example, the first storage device has more access permissions than the second storage device. The first storage device can be a node device on a private blockchain, and the second storage device can be a node device on a public blockchain.

[0063] In some implementations, the second storage device is a node device on a public blockchain, which can broadcast the second encrypted data to the node device on the public blockchain for storage. That is, the second encrypted data can be distributed and stored in the public blockchain network. The public blockchain network has stronger security, which makes the second encrypted data more tamper-proof.

[0064] In some implementations, the server can send the first encrypted data to the second storage device, so that the second storage device can perform a second encryption on the first encrypted data to obtain the second encrypted data, and store the second encrypted data in the second storage device.

[0065] In this embodiment, first encrypted data is obtained by acquiring multimedia data through a first encryption using an encryption key by the acquisition device. This first encrypted data is then sent to a first storage device for storage. Second encrypted data is obtained by a second encryption of the first encrypted data and sent to a second storage device for storage. Since the first and / or second storage devices are blockchain-based distributed storage devices, the distributed and tamper-proof characteristics of blockchain ensure the privacy and security of the storage of both the first and second encrypted data. Furthermore, storing the first and second encrypted data on devices with different access permissions, and using the second encrypted data to verify the first encrypted data, allows for verification of whether the first encrypted data has been tampered with, thus improving the security of multimedia data from multiple perspectives. In addition, combining the storage and verification of multimedia data using the first and second storage devices enables multi-party backup of the multimedia data, improving disaster recovery capabilities. Moreover, the consensus mechanism of blockchain prevents tampering of multimedia data, further enhancing the security of multimedia data storage.

[0066] In some embodiments, after storing multimedia data, it is also possible to view, retrieve, or verify the multimedia data, as detailed in the specific implementation process of the following embodiments.

[0067] Please see Figure 5 , Figure 5 This is a flowchart illustrating a second embodiment of the multimedia data storage method of this application. The method may include the following steps:

[0068] S21: Receive the client's request to view multimedia data.

[0069] In some implementations, after step S12 and / or step S13 of the above embodiments, any one of steps S21 to S23 of the embodiments may be performed.

[0070] In some implementations, the client generates an encryption key for first encryption of multimedia data and stores a decryption key corresponding to the encryption key.

[0071] In some implementations, when a client needs to view multimedia data, such as viewing multimedia data, playing the multimedia data in real time, or viewing the playback of the multimedia data, it can send a request to the server to view the multimedia data in order to obtain the multimedia data.

[0072] S22: Verify the integrity of the first encrypted data based on the first encrypted data stored in the first storage data and the second encrypted data stored in the second storage device.

[0073] Since the server stores the first encrypted data of the multimedia data in the first storage device and the second encrypted data corresponding to the multimedia data in the second storage device, it can verify the integrity or correctness of the multimedia data based on the first encrypted data stored in the first storage device and the second encrypted data stored in the second storage device. The second encrypted data can be used to verify the first encrypted data, such as verifying the integrity of the first encrypted data, in order to verify the integrity or correctness of the multimedia data.

[0074] In some implementations, the server can read or obtain first encrypted data of multimedia data from the first storage device, and perform third encryption on the first encrypted data to obtain verification data; wherein, the third encryption is the same as the second encryption. For example, the third encryption can be to perform a digest operation on the obtained first encrypted data to obtain verification data of the multimedia data (that is, the digital fingerprint to be verified).

[0075] The server can also obtain the second encrypted data from the second storage device, and then compare the second encrypted data with the verification data to determine whether the second encrypted data and the verification data are consistent. If the second encrypted data and the verification data are consistent, the verification passes, indicating that the first encrypted data of the multimedia data has not been tampered with and the multimedia data is complete and correct.

[0076] If the verification passes, proceed to step S23 below.

[0077] If the verification fails, it indicates that the first encrypted data and / or the second encrypted data of the multimedia data have been tampered with. The server will then send a prompt message to the client to indicate that the first encrypted data and / or the second encrypted data of the multimedia data have been tampered with.

[0078] S23: If the verification passes, the first encrypted data is sent to the client so that the client can use the decryption key to decrypt the first encrypted data to obtain the multimedia data.

[0079] If the verification passes, the server sends the first encrypted data to the client. Since the client stores the decryption key, the client can use the decryption key to decrypt the first encrypted data and obtain the multimedia data.

[0080] In this embodiment, by combining the first encrypted data stored in the private blockchain network and the second encrypted data stored in the public blockchain network, the integrity of the multimedia data is verified, thereby improving the privacy and security of the multimedia data. It can also enhance the anti-tampering capability and the ability to resist attacks of the multimedia data. In addition, even if the first encrypted data of the multimedia data stored in the first storage device is deleted or tampered with, the original multimedia data can be retrieved through the second encrypted data of the multimedia data stored in the second storage device, further improving the security of data storage.

[0081] Please see Figures 6 to 7 , Figure 6 This is a flowchart illustrating a third embodiment of the multimedia data storage method of this application. The method may include the following steps:

[0082] S31: The acquisition device receives the encryption key sent by the server, uses the encryption key to perform a first encryption on the multimedia data, obtains the first encrypted data, and sends the first encrypted data to the server.

[0083] In some implementations, prior to step S31, the acquisition device may acquire, collect, or generate multimedia data.

[0084] In some implementations, prior to step S31, the client generates a key pair, including an encryption key and a decryption key, and sends the encryption key to the server. The client stores the decryption key corresponding to the encryption key; alternatively, the client may also store the encryption key itself.

[0085] The acquisition device can receive the encryption key sent by the server, and use the encryption key to perform a first encryption on the multimedia data to obtain the first encrypted data, and then send the first encrypted data to the server for storage.

[0086] S32: The server obtains the first encrypted data of the multimedia data sent by the acquisition device, sends the first encrypted data to the first storage device for storage; and performs a second encryption on the first encrypted data to obtain the second encrypted data, and sends the second encrypted data to the second storage device for storage.

[0087] In some implementations, the second encrypted data can be used to verify the first encrypted data. The first storage device and / or the second storage device are blockchain-based distributed storage devices. The first storage device and the second storage device have different access permissions, so that the first encrypted data and the second encrypted data are stored in devices with different access permissions. Furthermore, the second encrypted data is used to verify the first encrypted data, which can improve the security of multimedia data storage in many ways.

[0088] In some implementations, the first storage device is a node device on a private blockchain, that is, the first encrypted data can be stored in a node of the private blockchain network, for example, it exists in the private blockchain in the form of a blockchain.

[0089] In some implementations, the second storage device is a node device on a public blockchain, that is, the second encrypted data can be stored in a node of the public blockchain network, for example, it exists in the public blockchain in the form of a blockchain.

[0090] In this embodiment, the first storage device is a node device on a private blockchain and the second storage device is a node device on a public blockchain, but this application is not limited thereto.

[0091] In some implementations, performing a second encryption on the first encrypted data to obtain the second encrypted data may include performing a digest operation on the first encrypted data, thereby broadcasting the obtained second encrypted data to node devices on the public blockchain for storage.

[0092] In some implementations, after the second encrypted data is sent to the second storage device for storage, the client sends a request to the server to view the multimedia data. This allows the server to verify the integrity of the first encrypted data based on the first encrypted data stored in the first storage data and the second encrypted data stored in the second storage device. For example, the server can read the first encrypted data of the multimedia data from the first storage device and perform a third encryption on the first encrypted data to obtain verification data; wherein the third encryption is performed in the same way as the second encryption. The server also retrieves the second encrypted data from the second storage device and determines whether the second encrypted data matches the verification data.

[0093] If the second encrypted data matches the verification data, the verification is considered successful, and the first encrypted data is sent to the client. The client then uses the decryption key to decrypt the first encrypted data to obtain the multimedia data.

[0094] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0095] Please see Figure 8 , Figure 8 This is a flowchart illustrating the fourth embodiment of the multimedia data storage method of this application.

[0096] In this embodiment, as an example, the acquisition device can be a camera device, the server can be a cloud server, the first storage device is multiple node devices on a private chain, such as blockchain nodes in a private chain network, and the second storage device is multiple node devices on a public chain, such as blockchain nodes on a public chain network.

[0097] The client can generate public and private keys, distribute the public key to the cloud server, and store the private key on the client. The cloud server can verify whether the client has logged in legitimately. If the login is legitimate, the cloud server forwards the public key to the camera device.

[0098] The camera device can generate multimedia data, which can be generated in real time or stored offline; this application does not impose any restrictions on this. For example, multimedia data may include a unique sequence identifier (ID) and audio / video data. The camera device uses a public key to encrypt the multimedia data and sends the encrypted first encrypted data to a cloud server.

[0099] The cloud server forwards the first encrypted data to the private chain for storage. The private chain is created by the system to which the client belongs. Based on the characteristics of blockchain, the private chain distributes and stores the first encrypted data of multimedia data. The key data of multimedia data (the first encrypted data) is stored in the private chain and not disclosed to the public, which can better protect user privacy and has good reading efficiency.

[0100] Furthermore, the cloud server can perform a digest operation on the first encrypted data (e.g., using the SHA256 hash algorithm) to obtain a digital fingerprint, which is the second encrypted data. The unique sequence identifier (ID) and digital fingerprint can then be forwarded or broadcast to blocks on the public blockchain. These blocks store the second encrypted data, which can be used to verify the first encrypted data. The public blockchain offers stronger security, ensuring the data fingerprint has enhanced tamper-resistance, allowing the cloud server to verify multimedia data or the first encrypted data.

[0101] When a client needs to view the multimedia data, this viewing can be live playback or replay. The cloud server reads the first encrypted data from the private blockchain and the second encrypted data (i.e., the digital fingerprint) from the public blockchain. The first encrypted data is then compared with the digital fingerprint from the public blockchain using the same hash algorithm (e.g., SHA256). If the comparison matches, the first encrypted data is sent to the client. If the comparison does not match, it indicates that the first encrypted data has been tampered with, and a notification message is sent to the client.

[0102] After receiving the first encrypted data sent by the server, the client can use its private key to decrypt the first encrypted data and obtain multimedia data for playback, that is, decryption to obtain the original audio and video for playback.

[0103] This embodiment stores the first encrypted data (digest information) of the multimedia data on a private blockchain that it creates, and broadcasts the second encrypted data (digital fingerprint) of the multimedia data to a public blockchain to verify the first encrypted data, which greatly ensures the privacy and security of the multimedia data.

[0104] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0105] Regarding the above embodiments, this application provides a multimedia data storage device; please refer to [link to relevant documentation]. Figure 9 , Figure 9 This is a schematic diagram of the structure of a first embodiment of the multimedia data storage device of this application. The multimedia data storage device 40 includes a processing module 41, a first storage module 42, and a second storage module 43.

[0106] The processing module 41 is used to acquire the first encrypted data of the multimedia data sent by the acquisition device, wherein the first encrypted data is obtained by the acquisition device using an encryption key to perform a first encryption on the multimedia data.

[0107] The first storage module 42 is used to send the first encrypted data to the first storage device for storage.

[0108] The second storage module 43 is used to perform a second encryption on the first encrypted data to obtain second encrypted data, and then send the second encrypted data to the second storage device for storage.

[0109] The second encrypted data can be used to verify the first encrypted data. The first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different.

[0110] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0111] Regarding the above embodiments, this application provides a computer device; please refer to [link / reference]. Figure 10 , Figure 10 This is a schematic diagram of the structure of a computer device according to an embodiment of the present application. The computer device 50 includes a memory 51 and a processor 52, wherein the memory 51 and the processor 52 are coupled to each other. The memory 51 stores program data, and the processor 52 is used to execute the program data to implement the steps in any of the above embodiments of the multimedia data storage method.

[0112] In this embodiment, processor 52 can also be referred to as CPU (Central Processing Unit). Processor 52 may be an integrated circuit chip with signal processing capabilities. Processor 52 can also be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The general-purpose processor can be a microprocessor, or processor 52 can be any conventional processor.

[0113] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0114] The methods described in the above embodiments can be implemented as computer programs; therefore, this application proposes a storage device. Please refer to [link to relevant documentation]. Figure 11 , Figure 11 This is a schematic diagram of the structure of a storage device according to an embodiment of the present application. The storage device 60 stores program data 61 that can be executed by a processor. The program data 61 can be executed by the processor to implement the steps of any embodiment of the multimedia data storage method described above.

[0115] In this embodiment, the storage device 60 can be a medium that can store program data 61, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Alternatively, it can be a server that stores the program data 61. The server can send the stored program data 61 to other devices for execution, or it can run the stored program data 61 itself.

[0116] The specific implementation of this embodiment can be referred to the implementation process of the above embodiments, and will not be repeated here.

[0117] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0118] The units described as separate components may or may not be physically separate. 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 the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0119] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0120] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage device, which is a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application.

[0121] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0122] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A multimedia data storage method, characterized by, The method includes: The method involves acquiring first encrypted data of multimedia data sent by a data acquisition device. The first encrypted data is obtained by the data acquisition device using an encryption key to perform a first encryption on the multimedia data. The encryption key and its corresponding decryption key are generated by a client, which stores the encryption key and decryption key offline. The client has management permissions for the multimedia data. The acquisition of the first encrypted data of the multimedia data sent by the data acquisition device includes: receiving the encryption key generated by the client; verifying whether the client is a legitimate login; if a legitimate login is found, forwarding the encryption key to the data acquisition device so that the data acquisition device uses the encryption key to perform a first encryption on the multimedia data to obtain the first encrypted data; wherein the multimedia data is acquired by the data acquisition device; and receiving the first encrypted data of the multimedia data sent by the data acquisition device. Send the first encrypted data to the first storage device for storage; and The first encrypted data is further encrypted to obtain second encrypted data, and the second encrypted data is sent to a second storage device for storage; wherein, the second encrypted data is used to verify the first encrypted data, the first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different; the first storage device is a node device on a private chain, and the second storage device is a node device on a public chain; Receive the client's request to view the multimedia data; Based on the first encrypted data stored in the first storage device and the second encrypted data stored in the second storage device, the integrity of the first encrypted data is verified, including: Read the first encrypted data of the multimedia data in the first storage device, and perform a third encryption on the first encrypted data to obtain verification data; wherein the third encryption is the same as the second encryption. Obtain the second encrypted data from the second storage device, and determine whether the second encrypted data is consistent with the verification data; wherein, if the second encrypted data is consistent with the verification data, the verification passes, indicating that the first encrypted data of the multimedia data has not been tampered with; If the verification passes, the first encrypted data is sent to the client so that the client can use the decryption key to decrypt the first encrypted data to obtain the multimedia data; if the verification fails, a prompt message is sent to the client to indicate that the first encrypted data and / or the second encrypted data of the multimedia data have been tampered with.

2. The method of claim 1, wherein, The step of performing a second encryption on the first encrypted data to obtain second encrypted data, and sending the second encrypted data to a second storage device for storage, includes: Perform a digest operation on the first encrypted data to obtain the second encrypted data; The second encrypted data is broadcast to the node devices on the public blockchain for storage.

3. The method according to claim 1, characterized in that, If the verification passes, the first encrypted data is sent to the client, including: If the second encrypted data matches the verification data, then the first encrypted data is sent to the client.

4. A multimedia data storage method, characterized by, The method includes: The server receives the encryption key generated by the client, verifies whether the client is a legitimate login, and if the login is legitimate, forwards the encryption key to the acquisition device. The encryption key and the corresponding decryption key are generated by the client, which stores the encryption key and decryption key offline. The client has management permissions for multimedia data. The acquisition device receives an encryption key sent by the server, and uses the encryption key to perform a first encryption on the multimedia data to obtain first encrypted data, and sends the first encrypted data to the server; wherein, the multimedia data is acquired by the acquisition device. The server acquires the first encrypted data of the multimedia data sent by the acquisition device, and sends the first encrypted data to the first storage device for storage; and performs a second encryption on the first encrypted data to obtain second encrypted data, and sends the second encrypted data to the second storage device for storage; wherein, the second encrypted data is used to verify the first encrypted data, the first storage device and / or the second storage device are blockchain-based distributed storage devices, and the access permissions of the first storage device and the second storage device are different; the first storage device is a node device on a private chain, and the second storage device is a node device on a public chain; The client sends a request to the server to view the multimedia data; The server verifies the integrity of the first encrypted data based on the first encrypted data stored in the first storage device and the second encrypted data stored in the second storage device, including: Read the first encrypted data of the multimedia data in the first storage device, and perform a third encryption on the first encrypted data to obtain verification data; wherein the third encryption is the same as the second encryption. Obtain the second encrypted data from the second storage device, and determine whether the second encrypted data is consistent with the verification data; wherein, if the second encrypted data is consistent with the verification data, the verification passes, indicating that the first encrypted data of the multimedia data has not been tampered with; If the verification passes, the first encrypted data is sent to the client; if the verification fails, a prompt message is sent to the client to indicate that the first encrypted data and / or the second encrypted data of the multimedia data have been tampered with. The client uses the decryption key to decrypt the first encrypted data to obtain the multimedia data.

5. The method of claim 4, wherein, Before the acquisition device receives the encryption key sent by the server, it includes: The client generates an encryption key and sends the encryption key to the server.

6. A computer device, comprising: The method includes a memory and a processor coupled to each other, the memory storing program data and the processor executing the program data to implement the steps of the method according to any one of claims 1 to 5.

7. A memory device, comprising: The system stores program data that can be executed by a processor, the program data being used to implement the steps of the method according to any one of claims 1 to 5.