Block chain file distribution system and method based on anti-copying storage medium

By using the AES-128 encryption algorithm and the serial number and read rate monitoring of the anti-copy storage media module in the blockchain file distribution system, the problems of encryption and unauthorized copy propagation of the entire process of file distribution are solved, and the file security is achieved Sex and copyright protection.

CN118944852AActive Publication Date: 2024-11-12BEIJING INST OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410809224.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-12
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing technology cannot implement encryption protection in the entire process of file distribution, resulting in unauthorized copying and dissemination of files after receiving, infringing on the legitimate rights and interests of copyright owners.

Method used

Using a blockchain file distribution system based on anti-copy storage media, the files are encrypted through the AES-128 encryption algorithm and password block link mode, and the unauthorized use of serial number and read rate monitoring in the anti-copy storage media module is blocked. Copying behavior ensures the full process encryption and security of files.

Benefits of technology

It realizes the full process encryption of file distribution, prevents unauthorized copying and propagation, guarantees the security and copyright protection of files, and improves the encryption of file distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944852A_ABST
    Figure CN118944852A_ABST
Patent Text Reader

Abstract

The invention relates to a block chain file distribution system and method based on an anti-copy storage medium, and belongs to the technical field of block chains. The method comprises the following steps: 1, uploading an initial to-be-distributed file; 2, encrypting the initial file to be distributed to form an encrypted block storage file; 3, downloading by a file receiver; 4, converting into an available downloading quota through a recharging payment mode; 5, verifying the matching between the identity of the file receiver and the serial number; 6, the file is decrypted; 7, the downloaded encrypted block storage file is placed in an anti-copy storage medium module; and 8, the anti-copy storage medium module cyclically monitors the reading rate of the anti-copy storage medium module so as to block the copy operation of the file receiver. According to the invention, by utilizing the difference of the reading rates of the storage medium module in file reading and file copying execution, and through the cooperative work of the serial number storage area, the monitoring area, the blocking area, the decryption area and the file storage area, the file receiver is prevented from copying and spreading under an unauthorized condition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a blockchain file distribution system and method based on a copy-proof storage medium, and belongs to the technical field of blockchain. Background Art

[0002] With the continuous development of the Internet, file distribution has become a very important application. In the process of file distribution, in addition to sending and receiving, there are also various links such as storage and management. At any link, the file may face the risk of information leakage. At the same time, unauthorized copying and dissemination is another important issue. Once the file reaches the recipient, the recipient may make unauthorized copies and re-distribute the file, resulting in a large number of illegal distribution of the file content. The existing technology to ensure the smooth progress of file distribution can often only ensure the security of the file transmission process, but does not consider the unauthorized copying and dissemination of the recipient after receiving the file.

[0003] The following defects of the prior art are addressed: (1) File distribution is widely used, but there are problems such as information leakage and unauthorized copying and dissemination. (2) The inability to encrypt the entire file distribution process will lead to the illegal copying and dissemination of files with copyright protection requirements, resulting in infringement of the legitimate rights and interests of the copyright owner. (3) Traditional file distribution protection measures only focus on ensuring the encryption of the communication channel between the file distributor and the recipient or the authentication of the identity, ignoring the possible unauthorized copying and dissemination of the file after the file recipient receives the file, resulting in the leakage of private files.

[0004] Therefore, how to ensure the encryption of the entire process of blockchain file distribution and prevent unauthorized copying and dissemination of file recipients has become an urgent problem to be solved. Summary of the invention

[0005] The purpose of the present invention is to solve the technical problems of full-process encryption of blockchain file distribution and preventing unauthorized copying and dissemination of file recipients, and to propose a blockchain file distribution system and method based on anti-copy storage media.

[0006] The present invention discloses a blockchain file distribution system and method based on anti-copy storage medium. Its working principle is as follows: by designing and implementing the entire file distribution process from file upload, file storage, file encryption, file download, file decryption, and anti-copy mechanism, the encryption algorithm is used to ensure the privacy of the file, and an anti-copy storage medium module that allows reading but prohibits copying is provided, which realizes the full-process encryption protection of the file distribution operation, and provides a new method for data privacy protection and file distribution encryption implementation.

[0007] The objective of the present invention is achieved through the following technical solutions:

[0008] On the one hand, a blockchain file distribution method based on a copy-proof storage medium of the present invention is applied to a member node of a peer-to-peer network file distribution, wherein the member node of the file distribution includes a file distributor and a file receiver, and includes the following steps:

[0009] Step 1: The file distributor uploads the initial file to be distributed to the block of the blockchain.

[0010] Step 2: Encrypt the initial file to be distributed described in step 1 using the encryption method and encryption mode of the prior art to form an encrypted block storage file.

[0011] Step 2.1: The encryption method described in step 2 includes a symmetric encryption method and an asymmetric encryption method. Preferably, the present invention is implemented using the AES-128 encryption algorithm.

[0012] Step 2.2: The encryption mode described in step 2 is Cipher Block Chaining (CBC).

[0013] Step 2.3: Generate a 128-bit Initialization Vector (IV) using a random method based on the cipher block chaining mode of step 2.2.

[0014] Step 2.4: Divide the file to be encrypted into multiples of 128 bits of the file size to obtain the divided plaintext blocks and the number of plaintext blocks.

[0015] Step 2.4.1: If the file size is an integer multiple of 128 bits, add 16 0x10 bytes to the end of the file.

[0016] Step 2.4.2: If the file size is not an integer multiple of 128 bits, subtract the size of the last plaintext block from 16 to get the result t, and then add t 0xt bytes to the end of the file.

[0017] Step 2.5: Use the initialization vector generated in step 2.3 to perform an XOR operation with the first plaintext block obtained in step 2.4 to obtain the result temp, and then encrypt temp according to the encryption algorithm used in step 2.1 to obtain the first ciphertext block. Then perform an XOR operation on the previous ciphertext block and the plaintext block to be encrypted, and then encrypt the operation result with the encryption algorithm used in step 2.1 to obtain a ciphertext block.

[0018] Step 2.6: Repeat step 2.2 with the number of plaintext blocks described in step 2.4 as the number of cycles to obtain the ciphertext block.

[0019] Step 2.7: Concatenate the ciphertext blocks sequentially, head to tail.

[0020] Step 2.8: Place the initialization vector generated in step 2.3 before the sequentially concatenated ciphertext blocks to form a ciphertext file.

[0021] Step 3: The file recipient uses the download quota and serial number to download the file.

[0022] Step 3.1: The serial number described in step 3 is an inputtable serial number of the copy-protected storage medium module, which is an identification code assigned by the manufacturer.

[0023] Step 3.2: The download amount described in step 3 is the download amount that can be input, that is, the size of the file to be downloaded.

[0024] Step 3.3: When the available download quota is less than the size of the file to be downloaded, go to step 4.

[0025] Step 3.4: When the available download quota is greater than or equal to the size of the file to be downloaded, the encrypted block file download is completed and go to step 6.

[0026] Step 4: The file recipient uses the inputtable copy-protected storage medium module serial number and the inputtable download quota described in step 3 to exchange for the available download quota through a recharge payment method.

[0027] Step 4.1: After the file recipient makes the recharge payment, a recharge code is generated.

[0028] Step 4.2: The file recipient redeems the recharge code described in step 4.1 for available download credits. Go to step 3.

[0029] Step 5: The blockchain file distribution system is used to verify the identity of the file recipient and the match of the serial number in step 3.

[0030] Step 5.1: When the file recipient downloads the file, he needs to enter his account information and the serial number of the anti-copy storage medium module in the blockchain file distribution system.

[0031] Step 5.2: After receiving the input information from the file recipient, the blockchain file distribution system will confirm the identity information entered by the file recipient and the serial number of the anti-copy storage medium module.

[0032] Step 5.2.1: When the identity information and serial number information entered by the file recipient are verified to be consistent, it is proved that the recipient is a legitimate identity and go to step 4.

[0033] Step 5.2.2: When the identity information and serial number information entered by the file recipient are inconsistent, it is proved that the recipient is illegal and go to step 5.

[0034] Step 6: Decrypt the downloaded encrypted block storage file described in step 3 using the decryption method and decryption mode to form a readable plaintext file.

[0035] Step 6.1: Decrypt the inverse process of the AES-128 encryption algorithm described in step 2.

[0036] Step 6.2: The decryption mode according to step 6 is defined as cipher block chaining mode.

[0037] Step 6.3: Read the first 128 bits of the encrypted block storage file downloaded in step 3 and extract the initialization vector.

[0038] Step 6.4: Divide the remaining portion of the encrypted block storage file after removing the first 128 bits into ciphertext blocks according to multiples of 128 bits to obtain ciphertext blocks and the number of ciphertext blocks.

[0039] Step 6.5: Decrypt the first ciphertext block obtained in step 6.4 using the decryption method described in step 6.1, and perform an XOR operation with the initialization vector to obtain the first plaintext block. In the subsequent process, the ciphertext block to be decrypted is decrypted using the decryption method described in step 6.1, and then XORed with the previous ciphertext block to obtain a plaintext block.

[0040] Step 6.6: Repeat step 6.5 with the number of ciphertext blocks described in step 6.4 as the number of cycles to obtain the plaintext block.

[0041] Step 6.7: Read the last byte t of the last plaintext block and remove the last t bytes.

[0042] Step 6.8: Concatenate all plaintext blocks in order from beginning to end to obtain the plaintext file.

[0043] Step 7: Place the downloaded encrypted block storage file described in step 3 in the anti-copy storage medium module, and use the decryption module of the anti-copy storage medium module to implement decryption.

[0044] Step 7.1: The blockchain file distribution system detects the serial number of the anti-copy storage medium module. When the serial number is detected, go to step 7.2; when the serial number does not exist, go to step 7.

[0045] Step 7.2: Decrypt the downloaded encrypted block storage file according to the decryption method and decryption mode described in step 6 and place it in the anti-copy storage medium module to obtain a readable plaintext file.

[0046] Step 7.3: The file receiver reads the plaintext file and goes to step 8.

[0047] Step 8: The anti-copy storage medium module cyclically monitors its own reading rate to block the copying operation of the file recipient, thereby sealing the decrypted plaintext file described in step 6 in the anti-copy storage medium module.

[0048] Step 8.1: Setting a predetermined threshold value for the reading rate of the copy-protected storage medium module.

[0049] Step 8.2: When the file receiver is performing a read operation, monitor the read rate in a loop.

[0050] Step 8.2.1: When the reading rate is greater than or equal to the preset threshold, go to step 8.3.

[0051] Step 8.2.2: When the reading rate is less than the set threshold, go to step 8.2.

[0052] Step 8.3: Execute the blocking operation, terminate the file receiver's reading behavior, and stop monitoring.

[0053] On the other hand, to achieve the purpose of the present invention, based on the above method, the present invention further proposes a blockchain file distribution system based on an anti-copy storage medium, including a file upload module, an encryption module, a recharge payment module, a file download module, and an anti-copy storage medium module.

[0054] Among them, the file upload module is used to upload the file to be encrypted to the block of the blockchain for storage, and use the stored file as the input of the encryption module;

[0055] The encryption module is used to encrypt the block storage file to form an encrypted block storage file; the encrypted block storage file is used as the input of the recharge payment module;

[0056] The recharge payment module is used to generate a recharge code after the file recipient completes the recharge payment, and convert the recharge code into an available download quota; the available download quota is used as the input of the file download module;

[0057] The file download module is used to download the file to be downloaded and place it in the copy-protected storage medium module;

[0058] The anti-copy storage medium module is used to monitor and block the copying behavior of the file downloader and seal the decrypted plain text file in the anti-copy storage medium module. The anti-copy storage medium module includes a serial number storage area, a monitoring area, a blocking area, a decryption area, and a file storage area;

[0059] Among them, the serial number storage area: The serial number storage area is used to store and access the identity of the anti-copy storage medium module, which is a unique serial number assigned by the manufacturer when the anti-copy storage medium module is manufactured. The file distributor identifies the file recipient by reading the assigned unique serial number. The serial number is used to verify whether the file recipient is a legitimate user. When the file recipient makes a file download request, the blockchain file distribution system will ensure the legitimate identity of the file recipient by reading the serial number entered by the file recipient.

[0060] Monitoring area: The monitoring area is used to cyclically monitor whether the actual reading rate of the file storage area reaches the preset threshold. That is, when the file recipient reads the plaintext file, the monitoring area will cyclically record the actual reading rate. In a single cycle monitoring, when the actual reading rate is lower than the threshold, the monitoring will continue in the monitoring area; when the actual reading rate exceeds the threshold, the blockchain file distribution system will immediately jump to the blocking area for blocking.

[0061] Blocking zone: When the monitoring zone detects that the actual reading rate exceeds the set threshold, the blocking zone blocks the copying operation of the file recipient.

[0062] Decryption area: After the encrypted block storage file is placed in the anti-copy storage medium module, it needs to be decrypted in the decryption area. The decryption area is equipped with the reverse process of the encryption algorithm to decrypt, convert the encrypted file into a plain text file, provide the file recipient with reading and viewing, and place the plain text file in the file storage area.

[0063] File storage area: The file storage area is used to store plain text files decrypted by the decryption area. Such plain text files are only allowed to be accessed on the anti-copy storage medium module, that is, because the monitoring area monitors the copying operation behavior of the file recipient, the blocking area is further used to block the copying behavior of the file recipient. Therefore, the plain text files downloaded by the file recipient are sealed in the anti-copy storage medium module.

[0064] Beneficial effects:

[0065] 1. The present invention discloses a blockchain file distribution system and method based on copy-proof storage medium. The blockchain technology is integrated to store the files to be distributed, and the AES-128 algorithm is used to encrypt the files, thus ensuring the security of the files during upload, storage and transmission.

[0066] 2. Decryption of encrypted files is achieved through the anti-copy storage medium module, and the difference in the reading rate of the storage medium module when reading files and copying files is utilized. Through the coordinated work of the serial number storage area, monitoring area, blocking area, decryption area, and file storage area, the file security is maximized and the unauthorized copying and dissemination of file recipients is prevented.

[0067] 3. The whole process of file distribution was tested and verified. The test showed that the proposed file distribution system can ensure the whole process of file distribution and improve the encryption of file distribution. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is a schematic diagram of the method flow of the present invention;

[0069] Figure 2 It is a schematic diagram of the system flow of the present invention;

[0070] Figure 3 A flowchart of file decryption by the copy-protected storage medium module of the present invention;

[0071] Figure 4 A test chart showing the rate difference between read and copy operations when monitoring a file;

[0072] Figure 5 This is a test chart of the storage medium blocking the copy operation for files of different sizes. DETAILED DESCRIPTION

[0073] In order to better illustrate the purpose and advantages of the present invention, the invention is further described below in conjunction with the accompanying drawings and examples. It should be noted that the implementation of the present invention is not limited to the following embodiments, and any form of modification or change made to the present invention will fall within the protection scope of the present invention.

[0074] Example

[0075] like Figure 1 As shown, a blockchain file distribution method of the present invention has the following specific implementation steps:

[0076] Step 1: The file distributor uploads the initial file to be distributed to the block of the blockchain.

[0077] Step 2: Encrypt the initial file to be distributed described in step 1 using the encryption method and encryption mode of the prior art to form an encrypted block storage file.

[0078] Step 2.1: The encryption method described in step 2 includes a symmetric encryption method and an asymmetric encryption method. Preferably, the present invention is implemented using the AES-128 encryption algorithm.

[0079] Step 2.2: The encryption mode described in step 2 is Cipher Block Chaining (CBC).

[0080] Step 2.3: Generate a 128-bit Initialization Vector (IV) using a random method based on the cipher block chaining mode of step 2.2.

[0081] Step 2.4: Divide the file to be encrypted into multiples of 128 bits of the file size to obtain the divided plaintext blocks and the number of plaintext blocks.

[0082] Step 2.4.1: If the file size is an integer multiple of 128 bits, add 16 0x10 bytes to the end of the file.

[0083] Step 2.4.2: If the file size is not an integer multiple of 128 bits, subtract the size of the last plaintext block from 16 to get the result t, and then add t 0xt bytes to the end of the file.

[0084] Step 2.5: Use the initialization vector generated in step 2.3 to perform an XOR operation with the first plaintext block obtained in step 2.4 to obtain the result temp, and then encrypt temp according to the encryption algorithm used in step 2.1 to obtain the first ciphertext block. Then perform an XOR operation on the previous ciphertext block and the plaintext block to be encrypted, and then encrypt the operation result with the encryption algorithm used in step 2.1 to obtain a ciphertext block.

[0085] Step 2.6: Repeat step 2.2 with the number of plaintext blocks described in step 2.4 as the number of cycles to obtain the ciphertext block.

[0086] Step 2.7: Concatenate the ciphertext blocks sequentially, head to tail.

[0087] Step 2.8: Place the initialization vector generated in step 2.3 before the sequentially concatenated ciphertext blocks to form a ciphertext file.

[0088] In the embodiment, the file distributor uploads the demo.mp4 file with a file size of 756MB (793,457,187 bytes) to a block of the blockchain.

[0089] Step 3: The file recipient uses the download quota and serial number to download the file.

[0090] Step 3.1: The serial number described in step 3 is an inputtable serial number of the copy-protected storage medium module, which is an identification code assigned by the manufacturer.

[0091] Step 3.2: The download amount described in step 3 is the download amount that can be input, that is, the size of the file to be downloaded.

[0092] Step 3.3: When the available download quota is less than the size of the file to be downloaded, go to step 4.

[0093] Step 3.4: When the available download quota is greater than or equal to the size of the file to be downloaded, the encrypted block file download is completed and go to step 6.

[0094] Step 4: The file recipient uses the inputtable copy-protected storage medium module serial number and the inputtable download quota described in step 3 to exchange for the available download quota through a recharge payment method.

[0095] Step 4.1: After the file recipient makes the recharge payment, a recharge code is generated.

[0096] Step 4.2: The file recipient redeems the recharge code described in step 4.1 for available download credits. Go to step 3.

[0097] In the embodiment, the file recipient enters the storage medium serial number "2LSP4CJT" and the download quota of 800MB, completes the recharge payment to obtain the recharge code, and redeems 800MB of available download quota.

[0098] Step 5: The blockchain file distribution system is used to verify the identity of the file recipient and the match of the serial number in step 3.

[0099] Step 5.1: When the file recipient downloads the file, he needs to enter his account information and the serial number of the anti-copy storage medium module in the blockchain file distribution system.

[0100] Step 5.2: After receiving the input information from the file recipient, the blockchain file distribution system will confirm the identity information entered by the file recipient and the serial number of the anti-copy storage medium module.

[0101] Step 5.2.1: When the identity information and serial number information entered by the file recipient are verified to be consistent, it is proved that the recipient is a legitimate identity and go to step 4.

[0102] Step 5.2.2: When the identity information and serial number information entered by the file recipient are inconsistent, it is proved that the recipient is illegal and go to step 5.

[0103] In the embodiment, the file recipient enters his / her own identity information, including name XXX, phone number XXX, etc., and the assigned storage medium serial number "2LSP4CJT".

[0104] Step 6: Decrypt the downloaded encrypted block storage file described in step 3 using the decryption method and decryption mode to form a readable plaintext file.

[0105] Step 6.1: Decrypt the inverse process of the AES-128 encryption algorithm described in step 2.

[0106] Step 6.2: The decryption mode according to step 6 is defined as cipher block chaining mode.

[0107] Step 6.3: Read the first 128 bits of the encrypted block storage file downloaded in step 3 and extract the initialization vector.

[0108] Step 6.4: Divide the remaining portion of the encrypted block storage file after removing the first 128 bits into ciphertext blocks according to multiples of 128 bits to obtain ciphertext blocks and the number of ciphertext blocks.

[0109] Step 6.5: Decrypt the first ciphertext block obtained in step 6.4 using the decryption method described in step 6.1, and perform an XOR operation with the initialization vector to obtain the first plaintext block. In the subsequent process, the ciphertext block to be decrypted is decrypted using the decryption method described in step 6.1, and then XORed with the previous ciphertext block to obtain a plaintext block.

[0110] Step 6.6: Repeat step 6.5 with the number of ciphertext blocks described in step 6.4 as the number of cycles to obtain the plaintext block.

[0111] Step 6.7: Read the last byte t of the last plaintext block and remove the last t bytes.

[0112] Step 6.8: Concatenate all plaintext blocks in order from beginning to end to obtain the plaintext file.

[0113] Step 7: Place the downloaded encrypted block storage file described in step 3 in the anti-copy storage medium module, and use the decryption module of the anti-copy storage medium module to implement decryption.

[0114] Step 7.1: The blockchain file distribution system detects the serial number of the anti-copy storage medium module. When the serial number is detected, go to step 7.2; when the serial number does not exist, go to step 7.

[0115] Step 7.2: Decrypt the downloaded encrypted block storage file according to the decryption method and decryption mode described in step 6 and place it in the anti-copy storage medium module to obtain a readable plaintext file.

[0116] Step 7.3: The file receiver reads the plaintext file and goes to step 8.

[0117] Step 8: The anti-copy storage medium module cyclically monitors its own reading rate to block the copying operation of the file recipient, thereby sealing the decrypted plaintext file described in step 6 in the anti-copy storage medium module.

[0118] Step 8.1: Setting a predetermined threshold value for the reading rate of the copy-protected storage medium module.

[0119] Step 8.2: When the file receiver is performing a read operation, monitor the read rate in a loop.

[0120] Step 8.2.1: When the reading rate is greater than or equal to the preset threshold, go to step 8.3.

[0121] Step 8.2.2: When the reading rate is less than the set threshold, go to step 8.2.

[0122] Step 8.3: Execute the blocking operation, terminate the file receiver's reading behavior, and stop monitoring.

[0123] In the embodiment, a USB flash drive carrying a T620 chip is used as a dedicated storage medium, and a threshold for executing a scsi_read command, ie, a read command, is set to 50 times / s.

[0124] On the other hand, to achieve the object of the present invention, according to the above method, r Figure 2 As shown, the present invention further proposes a blockchain file distribution system based on an anti-copy storage medium, including a file upload module, an encryption module, a recharge payment module, a file download module, and an anti-copy storage medium module.

[0125] Among them, the file upload module is used to upload the file to be encrypted to the block of the blockchain for storage, and use the stored file as the input of the encryption module;

[0126] The encryption module is used to encrypt the block storage file to form an encrypted block storage file; the encrypted block storage file is used as the input of the recharge payment module;

[0127] The recharge payment module is used to generate a recharge code after the file recipient completes the recharge payment, and convert the recharge code into an available download quota; the available download quota is used as the input of the file download module;

[0128] The file download module is used to download the file to be downloaded and place it in the copy-protected storage medium module;

[0129] like Figure 3 As shown, the anti-copy storage medium module is used to monitor and block the copying behavior of the file downloader and seal the decrypted plain text file in the anti-copy storage medium module. The anti-copy storage medium module includes a serial number storage area, a monitoring area, a blocking area, a decryption area, and a file storage area;

[0130] Among them, the serial number storage area: The serial number storage area is used to store and access the identity of the anti-copy storage medium module, which is a unique serial number assigned by the manufacturer when the anti-copy storage medium module is manufactured. The file distributor identifies the file recipient by reading the assigned unique serial number. The serial number is used to verify whether the file recipient is a legitimate user. When the file recipient makes a file download request, the blockchain file distribution system will ensure the legitimate identity of the file recipient by reading the serial number entered by the file recipient.

[0131] Monitoring area: The monitoring area is used to cyclically monitor whether the actual reading rate of the file storage area reaches the preset threshold. That is, when the file recipient reads the plaintext file, the monitoring area will cyclically record the actual reading rate. In a single cycle monitoring, when the actual reading rate is lower than the threshold, the monitoring will continue in the monitoring area; when the actual reading rate exceeds the threshold, the blockchain file distribution system will immediately jump to the blocking area for blocking.

[0132] Blocking zone: When the monitoring zone detects that the actual reading rate exceeds the set threshold, the blocking zone blocks the copying operation of the file recipient.

[0133] Decryption area: After the encrypted block storage file is placed in the anti-copy storage medium module, it needs to be decrypted in the decryption area. The decryption area is equipped with the reverse process of the encryption algorithm to decrypt, convert the encrypted file into a plain text file, provide the file recipient with reading and viewing, and place the plain text file in the file storage area.

[0134] File storage area: The file storage area is used to store plain text files decrypted by the decryption area. Such plain text files are only allowed to be accessed on the anti-copy storage medium module, that is, because the monitoring area monitors the copying operation behavior of the file recipient, the blocking area is further used to block the copying behavior of the file recipient. Therefore, the plain text files downloaded by the file recipient are sealed in the anti-copy storage medium module.

[0135] In order to further illustrate the advantages of the present invention, it is described in combination with experimental data.

[0136] Table 1 The number of scsi_read commands executed per second by the experimental USB flash drive when copying a 756MB file

[0137]

[0138] As shown in Table 1, the number of scsi_read commands executed per second when copying a 756MB file is basically more than 50 times. It is reasonable and effective to use 50 times / s as the threshold to monitor and block the copy operation. Figure 4 As shown in Figure 1, the rate difference test of the read and copy operations when monitoring the file shows that the rate difference is very significant when performing the copy operation and the read operation, so it is reasonable to block the file copy operation based on this. Figure 5 As shown, the blocking of the copy operation of the storage medium for files of different sizes is tested. The storage medium is able to block the copy operation of files of different sizes, thereby achieving the requirement of preventing the file recipient from illegally copying.

[0139] The results show that the blockchain file distribution system and method based on anti-copy storage medium proposed in the present invention can ensure the encryption of the entire process of file distribution and prevent unauthorized copying and dissemination of file recipients, and has strong feasibility and practical value.

Claims

1. A blockchain file distribution method based on copy-proof storage medium, characterized in that: The following steps are included: Step 1: The file distributor uploads the initial file to be distributed to the block of the blockchain; Step 2: Encrypt the initial file to be distributed in step 1 using the encryption method and encryption mode of the prior art to form an encrypted block storage file; Step 3: The file recipient uses the download quota and serial number to download the file; Step 4: The file recipient uses the inputtable copy-protected storage medium module serial number and the inputtable download quota as described in step 3 to exchange for the available download quota through a recharge payment method; Step 5: The blockchain file distribution system is used to verify the identity of the file recipient and the matching of the serial number in step 3; Step 6: Decrypt the downloaded encrypted block storage file described in step 3 using the decryption method and decryption mode to form a readable plaintext file; Step 7: placing the downloaded encrypted block storage file described in step 3 in the copy-protected storage medium module, and using the decryption module of the copy-protected storage medium module to implement decryption; Step 8: The anti-copy storage medium module cyclically monitors its own reading rate to block the copying operation of the file recipient, thereby sealing the decrypted plaintext file described in step 6 in the anti-copy storage medium module.

2. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 2 is implemented as follows: Step 2.1: The encryption method described in step 2 includes a symmetric encryption method and an asymmetric encryption method. Preferably, the present invention is implemented using the AES-128 encryption algorithm; Step 2.2: The encryption mode described in step 2 is Cipher Block Chaining (CBC); Step 2.3: Generate a 128-bit Initialization Vector (IV) using a random method according to the cipher block chaining mode of step 2.2; Step 2.4: Divide the file to be encrypted into multiples of 128 bits of the file size to obtain the divided plaintext blocks and the number of plaintext blocks; Step 2.4.1: If the file size is an integer multiple of 128 bits, add 16 0x10 bytes to the end of the file; Step 2.4.2: If the file size is not an integer multiple of 128 bits, subtract the size of the last plaintext block from 16 to get the result t, and then add t 0xt bytes to the end of the file; Step 2.5: Use the initialization vector generated in step 2.3 to perform an XOR operation with the first plaintext block obtained in step 2.4 to obtain the result temp, and then encrypt temp according to the encryption algorithm used in step 2.1 to obtain the first ciphertext block; Then, the previous ciphertext block is XORed with the plaintext block to be encrypted, and the result of the operation is encrypted using the encryption algorithm used in step 2.1 to obtain the ciphertext block; Step 2.6: Repeat step 2.2 with the number of plaintext blocks described in step 2.4 as the number of cycles to obtain the ciphertext block; Step 2.7: Connect the ciphertext blocks head to tail and sequentially; Step 2.8: Place the initialization vector generated in step 2.3 before the sequentially concatenated ciphertext blocks to form a ciphertext file.

3. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 3 is implemented as follows: Step 3.1: The serial number described in step 3 is an inputtable serial number of the copy-protected storage medium module, which is an identification code assigned by the manufacturer; Step 3.2: The download amount described in step 3 is the download amount that can be entered, that is, the size of the file to be downloaded; Step 3.3: When the available download quota is less than the size of the file to be downloaded, go to step 4; Step 3.4: When the available download quota is greater than or equal to the size of the file to be downloaded, the encrypted block file download is completed and go to step 6.

4. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 4 is implemented as follows: Step 4.1: After the file recipient makes a recharge payment, a recharge code is generated; Step 4.2: The file recipient redeems the recharge code described in step 4.1 for available download credit; go to step 3.

5. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 5 is implemented as follows: Step 5.1: When the file recipient downloads the file, he needs to enter his account information and the serial number of the anti-copy storage medium module in the blockchain file distribution system; Step 5.2: After receiving the input information of the file recipient, the blockchain file distribution system will confirm the identity information entered by the file recipient and the serial number of the anti-copy storage medium module; Step 5.2.1: When the identity information and serial number information entered by the file recipient are verified to be consistent, it is proved that the recipient is a legitimate identity, and go to step 4; Step 5.2.2: When the identity information and serial number information entered by the file recipient are inconsistent, it is proved that the recipient is illegal and go to step 5.

6. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 6 is implemented as follows: Step 6.1: Decrypt the inverse process of the AES-128 encryption algorithm described in step 2; Step 6.2: The decryption mode according to step 6 is defined as a cipher block chaining mode; Step 6.3: Read the first 128 bits of the downloaded encrypted block storage file described in step 3 and extract the initialization vector; Step 6.4: Divide the remaining portion of the encrypted block storage file after removing the first 128 bits into ciphertext blocks according to multiples of 128 bits, and obtain the ciphertext blocks and the number of ciphertext blocks; Step 6.5: Decrypt the first ciphertext block obtained in step 6.4 using the decryption method described in step 6.1, and perform an XOR operation with the initialization vector to obtain the first plaintext block; in the subsequent process, the ciphertext block to be decrypted is decrypted using the decryption method described in step 6.1, and then XORed with the previous ciphertext block to obtain a plaintext block; Step 6.6: Repeat step 6.5 with the number of ciphertext blocks described in step 6.4 as the number of cycles to obtain a plaintext block; Step 6.7: Read the last byte t of the last plaintext block and remove the last t bytes; Step 6.8: Concatenate all plaintext blocks in order from beginning to end to obtain the plaintext file.

7. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 7 is implemented as follows: Step 7.1: The blockchain file distribution system detects the serial number of the anti-copy storage medium module. When the serial number is detected, go to step 7.2; when the serial number does not exist, go to step 7; Step 7.2: Decrypt the downloaded encrypted block storage file according to the decryption method and decryption mode described in step 6 and place it in the copy-protected storage medium module to obtain a readable plaintext file; Step 7.3: The file receiver reads the plaintext file and goes to step 8.

8. A blockchain file distribution method based on a copy-proof storage medium as claimed in claim 1, characterized in that: Step 8 is implemented as follows: Step 8.1: Setting a predetermined threshold value for the reading rate of the copy-protected storage medium module; Step 8.2: When the file receiver performs a read operation, cyclically monitor the read rate; Step 8.2.1: When the reading rate is greater than or equal to the preset threshold, go to step 8.3; Step 8.2.2: When the reading rate is less than the set threshold, go to step 8.2; Step 8.3: Execute the blocking operation, terminate the file receiver's reading behavior, and stop monitoring.

9. A blockchain file distribution system based on copy-proof storage media, characterized in that: It includes file upload module, encryption module, recharge payment module, file download module and anti-copy storage medium module; The file upload module is used to upload the file to be encrypted to the block of the blockchain for storage, and use the stored file as the input of the encryption module; The encryption module is used to encrypt the block storage file to form an encrypted block storage file; the encrypted block storage file is used as the input of the recharge payment module; The recharge payment module is used to generate a recharge code after the file recipient completes the recharge payment, and convert the recharge code into an available download quota; the available download quota is used as the input of the file download module; The file download module is used to download the file to be downloaded and place it in the copy-protected storage medium module; The anti-copy storage medium module is used to monitor and block the copying behavior of the file downloader and seal the decrypted plain text file in the anti-copy storage medium module.

10. A blockchain file distribution system based on copy-proof storage medium as claimed in claim 9, characterized in that: The anti-copy storage medium module includes a serial number storage area, a monitoring area, a blocking area, a decryption area, and a file storage area; wherein, Serial number storage area: The serial number storage area is used to store and access the identity of the anti-copy storage medium module, which is a unique serial number assigned by the manufacturer when the anti-copy storage medium module is manufactured; the file distributor identifies the file recipient by reading the assigned unique serial number; the serial number is used to verify whether the file recipient is a legitimate user; when the file recipient makes a file download request, the blockchain file distribution system will ensure the legitimate identity of the file recipient by reading the serial number entered by the file recipient; Monitoring area: The monitoring area is used to cyclically monitor whether the actual reading rate of the file storage area reaches the preset threshold. That is, when the file recipient reads the plaintext file, the monitoring area will cyclically record the actual reading rate. In a single cycle monitoring, when the actual reading rate is lower than the threshold, the monitoring will continue in the monitoring area. When the actual reading rate exceeds the threshold, the blockchain file distribution system will immediately jump to the blocking area for blocking. Blocking zone: When the monitoring zone detects that the actual reading rate exceeds the set threshold, the blocking zone blocks the copying operation of the file recipient; Decryption area: After the encrypted block storage files are placed in the anti-copy storage medium module, they need to be decrypted in the decryption area; the decryption area is equipped with the reverse process of the encryption algorithm to decrypt, convert the encrypted files into plain text files, provide reading and viewing for the file recipient, and place the plain text files in the file storage area; File storage area: The file storage area is used to store plain text files decrypted by the decryption area; such plain text files are only allowed to be accessed on the anti-copy storage medium module, that is, because the monitoring area monitors the copying operation behavior of the file recipient, the blocking area is further used to block the copying behavior of the file recipient; thus, the plain text files downloaded by the file recipient are sealed in the anti-copy storage medium module.

Citation Information

Patent Citations

  • Process threading-based copy-protection system and copy-protection storage medium

    CN102495982A

  • Anti-copy software protecting and operating device and anti-copy software protecting and operating method

    CN103020493A

  • File management method, device and equipment and readable storage medium

    CN110851795A

  • Data security encryption system based on block chain

    CN115361193A