A blockchain-based multimedia file management method and terminal

By using blockchain technology to generate user data combination codes and cache blocks for the encryption and decryption of multimedia files, the problem of controlling the spread of multimedia files is solved, and effective management and risk reduction of file dissemination are achieved.

CN118984210BActive Publication Date: 2025-11-28福建天晴在线互动科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410928612.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2025-11-28
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing technologies are insufficient to effectively control the dissemination and use of multimedia files, making it difficult to manage the risk of files being leaked.

Method used

By using blockchain technology to generate user data combination codes and cache blocks, multimedia files are encrypted and decrypted, user access information is recorded, and playback codes are generated to control file distribution.

Benefits of technology

Effectively restricts the dissemination of multimedia files, reduces the risk of external distribution, and ensures that file authors can understand the file status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984210B_ABST
    Figure CN118984210B_ABST
Patent Text Reader

Abstract

The application discloses a kind of multimedia file management method and terminal based on block chain, in response to the multimedia file publishing request of first user, multimedia block is generated for the multimedia file published by first user with user data combination code;In response to the multimedia file access request of second user, generate cache block for second user, and when cache block calls data, need real-time call data block, obtain multimedia encryption information encrypted by user data combination code from data block;Further, the multimedia encryption information obtained is downloaded to cache block by synchronization block, and the information of second user is attached to multimedia encryption information by cache block, so as to obtain the play code of second user.In this way, when second user accesses multimedia file, data acquisition and access record are needed through data block, and through block encryption and decryption, the spread of multimedia file can be effectively limited, and the risk of external dispersion is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of blockchain audio processing, and particularly relates to a multimedia file management method and terminal based on a blockchain. BACKGROUND

[0002] At present, when listening to music online, a multimedia file can usually be downloaded to local storage for playing, and in the propagation process of the multimedia file, it is difficult for the author of the multimedia file to know the use and file status of the multimedia file, and it is difficult to limit the rebroadcasting of the multimedia file. For example, after a user buys an audio copyright and performs audio secondary creation modification and other operations, the source multimedia file is propagated and becomes uncontrollable.

[0003] Therefore, a method capable of controlling the risk of file information dissemination after the multimedia file is published is urgently needed. SUMMARY

[0004] The technical problem to be solved by the present application is to provide a multimedia file management method and terminal based on a blockchain, which can reduce the risk of multimedia file dissemination.

[0005] To solve the above technical problems, the technical scheme adopted by the present application is:

[0006] A multimedia file management method based on a blockchain, comprising the steps of:

[0007] In response to a multimedia file publishing request of a first user, generating a user data combination code for the multimedia file published by the first user through a multimedia block;

[0008] In response to a multimedia file access request of a second user, generating a cache block for the second user, delivering the multimedia file access request to a synchronization block through the cache block, obtaining multimedia encrypted information encrypted by the user data combination code from the data block through the synchronization block, and recording access information of the second user in the data block;

[0009] Downloading the obtained multimedia encrypted information to the cache block by the synchronization block, attaching the information of the second user to the multimedia encrypted information through the cache block to obtain a play code of the second user, so that the second user plays the multimedia file according to the play code.

[0010] To solve the above technical problems, another technical scheme adopted by the present application is:

[0011] A multimedia file management terminal based on a block chain comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor implements each step of the above multimedia file management method based on a block chain when executing the computer program.

[0012] The present application has the beneficial effect that, in response to a multimedia file publishing request of a first user, a user data combination code is generated for the multimedia file published by the first user through a multimedia block; in response to a multimedia file access request of a second user, a cache block is generated for the second user, and when the cache block calls data, the data block is called in real time to obtain multimedia encryption information encrypted by the user data combination code from the data block, and the data block can record access information of the second user; then the multimedia encryption information obtained is downloaded to the cache block by the synchronization block, and the second user's information is attached to the multimedia encryption information through the cache block, so as to obtain the second user's playback code, so that the second user can play the multimedia file according to the playback code. In this way, when the second user accesses the multimedia file, data acquisition and access recording need to be performed through the data block, and at the same time, through the encryption of the data block, the decryption and re-encryption of the cache block, the spread of the multimedia file can be effectively limited, and the risk of external dissemination of the multimedia file can be reduced. BRIEF DESCRIPTION OF DRAWINGS

[0013] Figure 1 A flowchart of a multimedia file management method based on a block chain according to an embodiment of the present application;

[0014] Figure 2 A schematic diagram of a multimedia file management terminal based on a block chain according to an embodiment of the present application;

[0015] Figure 3 A block relationship diagram in a multimedia file management method based on a block chain according to an embodiment of the present application.

[0016] REFERENCE NUMERALS:

[0017] 1. A multimedia file management terminal based on a block chain; 2. a memory; 3. a processor. DETAILED DESCRIPTION

[0018] To explain the technical content, purposes and effects of the present application in detail, the following will be described in conjunction with the embodiments and the accompanying drawings.

[0019] Please refer to Figure 1 The embodiment of the present application provides a multimedia file management method based on a block chain, which comprises the following steps:

[0020] In response to a multimedia file publishing request of a first user, a user data combination code is generated for a multimedia file published by the first user through a multimedia block;

[0021] In response to a multimedia file publishing request of a first user, a user data combination code is generated for a multimedia file published by the first user through a multimedia block;

[0022] In response to a multimedia file publishing request of a first user, a user data combination code is generated for a multimedia file published by the first user through a multimedia block;

[0023] In response to a multimedia file publishing request of a first user, a user data combination code is generated for a multimedia file published by the first user through a multimedia block;

[0024] Further, the multimedia block generates the user data combination code for the multimedia file published by the first user, comprising:

[0025] The multimedia block generates the user data combination code in combination with the information of the first user, a random key and a publishing time stamp of the multimedia file.

[0026] As can be seen from the above description, the corresponding user data combination code is generated for the multimedia file published by the first user, so as to facilitate the encrypted transmission of the multimedia file based on the combination code subsequently.

[0027] Further, the multimedia block generates the user data combination code for the multimedia file published by the first user, comprising:

[0028] sending the multimedia file access request to a data block through the synchronization block;

[0029] accessing the multimedia block according to the multimedia file access request by the data block, matching a user data combination code corresponding to the accessed multimedia file in an encryption module of the multimedia block, generating first encryption data according to a random key in the user data combination code and the multimedia file, and generating second encryption data according to an exclusive or result of the first encryption data and information of a first user in the user data combination code and a publication time stamp of the multimedia file;

[0030] generating multimedia encryption information in combination of the second encryption data, the random key and a name of the multimedia file.

[0031] As described above, the secondary encryption can further limit the spread of the multimedia file and reduce the risk of external dissemination of the multimedia file.

[0032] Further, the access information of the second user is recorded in the data block, including:

[0033] the access type of the second user is recorded according to the multimedia encryption information, and the access type includes access, reference or modification.

[0034] As described above, the access of the second user is recorded in the data block, so that the first user can quickly know the status of the multimedia file published by himself.

[0035] Further, the information of the second user is attached to the multimedia encryption information by the cache block, including:

[0036] The multimedia encryption information is decrypted by the cache block, and the information of the second user and the decrypted data are re-encrypted.

[0037] As described above, the information of the second user can be attached to the multimedia information by decryption and re-encryption, and the play code can be provided to the second user in the future to limit the spread of the multimedia file.

[0038] Please refer to Figure 2 Another embodiment of the present application provides a multimedia file management terminal based on a block chain, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements each step of the above multimedia file management method based on a block chain when executing the computer program.

[0039] The multimedia file management method and terminal based on the blockchain are particularly suitable for running and playing audio and video files during propagation in blocks, so as to reduce the risk of external diffusion of such audio and video files. The following is described through specific embodiments.

[0040] Embodiment one

[0041] Please refer to Figure 1 and Figure 3 A multimedia file management method based on a blockchain, comprising the steps of:

[0042] S1, in response to a multimedia file publishing request of a first user, generating a user data combination code for the multimedia file published by the first user through a multimedia block.

[0043] Specifically, the user data combination code ADT is generated in the multimedia block in combination with the information A of the first user, the random key D of DES (symmetric key encryption) and the publishing timestamp T of the multimedia file.

[0044] S2, in response to a multimedia file access request of a second user, generating a cache block for the second user, delivering the multimedia file access request to a synchronization block through the cache block, obtaining multimedia encryption information encrypted by the user data combination code from the data block through the synchronization block, and recording the access information of the second user in the data block.

[0045] Specifically, a temporary cache block is generated for the second user through a storage block, the information of the second user is generated in the cache block, and according to the multimedia file access request of the second user, the cache block delivers information to the synchronization block;

[0046] Wherein, the multimedia file access request needs to be sent to the data block through the synchronization block;

[0047] According to the multimedia file access request, the data block accesses the multimedia block, matches the user data combination code corresponding to the accessed multimedia file in the encryption module of the multimedia block, generates first encryption data according to the random key in the user data combination code and the multimedia file, generates second encryption data according to the exclusive or result of the first encryption data and the information of the first user and the publishing timestamp of the multimedia file in the user data combination code; and generates multimedia encryption information in combination with the second encryption data, the random key and the name of the multimedia file.

[0048] In the embodiment, in the DES encryption module of the multimedia block, the user data combination code ADT corresponding to the accessed multimedia file is matched first, and the AT data and the random key D of the multimedia file are obtained by splitting; then, the multimedia file is encrypted according to the random key D, to generate first encrypted data, and the first encrypted data and the AT data are XORed, to generate second encrypted data, and the second encrypted data is returned to the data block;

[0049] In the data block, the List storage structure of the XOR result of the AT data format, the file name and the random key is generated according to the second encrypted data, the random key and the name of the multimedia file. In the data block, the data access type of the List storage structure is configured, to record the access type of the second user, and the access type can include access, reference or modification. In the data block, the access log of the second user is recorded by the record block, including the number of accesses, references or modifications of the second user in the block. At the same time, the data block is set to allow only the first user to access, so that the first user can quickly understand the status of the multimedia file published by himself.

[0050] S3, downloading the obtained multimedia encryption information to the cache block by the synchronization block, and attaching the information of the second user to the multimedia encryption information by the cache block, to obtain the play code of the second user, so that the second user can play the multimedia file according to the play code.

[0051] Specifically, the multimedia encryption information (List storage structure data) obtained by the synchronization block is downloaded to the cache block and returned to the storage block. In this way, the cache block can cache the List data of multiple data blocks.

[0052] Further, the multimedia encryption information is decrypted: the second encrypted data and the random key in the List data are obtained by the cache block, the second encrypted data is first decrypted by XOR, and then the XOR decryption result is decrypted according to the random key;

[0053] The information AT of the second user (including user information and access timestamp) and the information of the first user are XORed to realize the re-encryption of the data.

[0054] And the XOR result of the information AT of the second user and the information AT of the first user is taken as the play code.

[0055] In this embodiment, the cache block is established for the second user in this way to build temporary data storage, and data leakage is prevented by decryption and re-encryption in the cache block, while the cache block needs to call the data block in real time when calling the data, so that the data block can know the access type and access times of the data, and the first user corresponding to the published file can know the use mode of the multimedia file.

[0056] Embodiment two

[0057] Please refer to Figure 2 A multimedia file management terminal 1 based on a block chain, comprising a memory 2, a processor 3 and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements each step of the multimedia file management method based on the block chain of embodiment one when executing the computer program.

[0058] In summary, the multimedia file management method and terminal based on the block chain provided by the present application respond to the multimedia file publishing request of the first user, generate a user data combination code ADT for the multimedia file published by the first user through a multimedia block; in response to the multimedia file access request of the second user, generate a cache block for the second user, and when the cache block calls data, real-time call data block is required, obtain multimedia encryption information encrypted twice by the user data combination code from the data block, and the data block can record the block information where the second user is located and the access information of the second user; further, the obtained multimedia encryption information is downloaded to the cache block by the synchronization block, the multimedia encryption information is decrypted and re-encrypted by the cache block to attach the information of the second user, and then the second user's play code is obtained according to the exclusive or result of the second user information and the first user information, so that the second user can play the multimedia file according to the play code. In this way, the second user needs to pass through the data block for data acquisition and access record when accessing the multimedia file, and the encryption of the data block, the decryption and re-encryption of the cache block can effectively limit the spread of the multimedia file and reduce the risk of external scattering of the multimedia file.

[0059] The above is only an embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent transformation or direct or indirect application in related technical fields based on the content of the present application specification and drawings is also included in the patent protection scope of the present application.

Claims

1.A blockchain-based multimedia file management method, characterized by, The method comprises the steps of: in response to a multimedia file publishing request of a first user, generating a user data combination code for a multimedia file published by the first user through a multimedia block; in response to a multimedia file access request of a second user, generating a cache block for the second user, delivering the multimedia file access request to a synchronization block through the cache block, obtaining multimedia encryption information encrypted by the user data combination code from a data block through the synchronization block, and recording access information of the second user in the data block; downloading the obtained multimedia encryption information to the cache block by the synchronization block, attaching the information of the second user to the multimedia encryption information through the cache block to obtain a playing code of the second user, so that the second user plays the multimedia file according to the playing code; attaching the information of the second user to the multimedia encryption information through the cache block comprises: decrypting the multimedia encryption information through the cache block, and re-encrypting the information of the second user and the decrypted data. 2.The blockchain-based multimedia file management method of claim 1, wherein, generating the user data combination code for the multimedia file published by the first user through the multimedia block comprises: generating the user data combination code in the multimedia block by combining the information of the first user, a random key and a publishing timestamp of the multimedia file. 3.The blockchain-based multimedia file management method of claim 2, wherein, obtaining the multimedia encryption information encrypted by the user data combination code from the data block through the synchronization block comprises: sending the multimedia file access request to the data block through the synchronization block; accessing the multimedia block according to the multimedia file access request by the data block, matching the user data combination code corresponding to the accessed multimedia file in an encryption module of the multimedia block, generating first encryption data according to the random key and the multimedia file in the user data combination code, and generating second encryption data according to the exclusive or result of the first user's information and the publishing timestamp of the multimedia file in the user data combination code and the first encryption data; generating the multimedia encryption information by combining the second encryption data, the random key and the name of the multimedia file. 4.The blockchain-based multimedia file management method of claim 3, wherein, recording the access information of the second user in the data block comprises: recording the access type of the second user according to the multimedia encryption information, wherein the access type comprises access, reference or modification. 5.A blockchain-based multimedia file management terminal, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the following steps when executing the computer program: in response to a multimedia file publishing request of a first user, generating a user data combination code for a multimedia file published by the first user through a multimedia block; in response to a multimedia file access request of a second user, generating a cache block for the second user, delivering the multimedia file access request to a synchronization block through the cache block, obtaining multimedia encryption information encrypted by the user data combination code from a data block through the synchronization block, and recording access information of the second user in the data block; downloading the obtained multimedia encryption information to the buffer block by the synchronization block, attaching the information of the second user to the multimedia encryption information by the buffer block to obtain a playing code of the second user, so that the second user plays the multimedia file according to the playing code; attaching the information of the second user to the multimedia encryption information by the buffer block, comprising: decrypting the multimedia encryption information by the buffer block, and re-encrypting the information of the second user and the decrypted data. 6.The blockchain-based multimedia file management terminal of claim 5, wherein, generating a user data combination code for the multimedia file published by the first user through the multimedia block, comprising: generating the user data combination code in the multimedia block by combining the information of the first user, the random key and the publishing time stamp of the multimedia file. 7.The blockchain-based multimedia file management terminal of claim 6, wherein, obtaining the multimedia encryption information encrypted by the user data combination code from the data block through the synchronization block, comprising: sending the multimedia file access request to the data block through the synchronization block; accessing the multimedia block according to the multimedia file access request by the data block, matching the user data combination code corresponding to the accessed multimedia file in the encryption module of the multimedia block, generating first encryption data according to the random key and the multimedia file in the user data combination code, and generating second encryption data according to the exclusive or result of the first user's information and the publishing time stamp of the multimedia file in the user data combination code and the first encryption data; generating the multimedia encryption information by combining the second encryption data, the random key and the name of the multimedia file. 8.The blockchain-based multimedia file management terminal of claim 7, wherein, recording the access information of the second user in the data block, comprising: recording the access type of the second user according to the multimedia encryption information, wherein the access type comprises access, reference or modification.

Citation Information

Patent Citations

  • Block chain-based copyright transaction circulation method and apparatus, and computer device

    CN116258494A

  • Multimedia data encryption method, multimedia data decryption method, device and equipment

    CN118018182A