A data processing method and device based on blockchain
By generating and managing display frequency on the blockchain, obfuscating display data images and noisy images, the problem of difficulty in preventing third-party devices from intercepting and distributing data from secondary in the prior art is solved, and the privacy and security of data are achieved and accurate identification of data is achieved.
Patent Information
- Application Number
- CN202011415335.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2040-12-03
AI Technical Summary
The prior art is difficult to effectively prevent data interception and secondary distribution by third-party devices, especially in scenarios where root-based interception is cracked or third-party devices are intercepted.
By using a blockchain-based data processing method, by generating the first display frequency of the first image and the N second display frequencies corresponding to the noise image, the random numbers obtained by the blockchain ensure the credibility and security of the display frequency, thereby obfuscating the display data image and the noise image on the terminal device and preventing interception.
Effectively prevent third-party devices from intercepting and secondary distribution of data, ensuring the privacy and security of data and users' accurate identification of data.
Smart Images

Figure CN112487457B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of financial technology (Fintech), and in particular to a data processing method and device based on blockchain. Background Art
[0002] With the development of computer technology, more and more technologies are applied in the financial field. Traditional finance is gradually transforming into financial technology. However, due to the security and real-time requirements of the financial industry, higher requirements are also placed on technology. In the financial field, institutions or customers usually distribute data due to business needs. However, due to the lack of control over the data issued by the data issuer, the receiving user may redistribute the received data without authorization.
[0003] At present, an anti-terminal storage mechanism is used to prevent the receiving user from performing unauthorized secondary distribution of data. That is, a data monitoring system is set up in advance at the interface of the terminal device. When the monitoring system detects that the user is performing operations such as screenshots, printing or exporting, the display screen interface of the terminal device will be set to a blank screen or a black screen to cut off the user's screenshots, printing or exporting operations, thereby preventing the secondary distribution of data. However, this processing method cannot avoid the secondary distribution of data for rooted mobile devices or cracking methods based on third-party device interception (such as shooting the screen, etc.).
[0004] In summary, there is an urgent need for a blockchain-based data processing method to prevent third-party devices from intercepting and capturing data and to ensure that users can accurately identify the data. Summary of the invention
[0005] The embodiments of the present invention provide a blockchain-based data processing method and device to prevent third-party devices from intercepting and capturing data and ensure accurate identification of data by users.
[0006] In a first aspect, an embodiment of the present invention provides a data processing method based on blockchain, comprising:
[0007] The data receiving end generates a first display frequency of a first image based on a first random number; the first image is obtained from the data sending end;
[0008] The data receiving end generates N second display frequencies corresponding to N noise images based on N second random numbers; the second display frequency is greater than the first display frequency; the N noise images are generated based on the first image; N is an integer greater than or equal to 1;
[0009] The data receiving end displays the first image and the N noise images according to the first display frequency and the N second display frequencies within a set time period;
[0010] Wherein, at least one of the first random number and the N second random numbers is obtained through blockchain.
[0011] In the above technical solution, the first display frequency of the first image is generated based on the first random number, and N second display frequencies corresponding to the N noise images are generated based on the N second random numbers. Then, within a set period of time, the first image and the N noise images are displayed according to the first display frequency and the N second display frequencies. Since at least one of the first random number and the N second random numbers is obtained from the blockchain, the credibility, security and non-tamperability of the generated first display frequency and the N second display frequencies can be ensured. And according to the first display frequency and the N second display frequencies, the first image and the N noise images are displayed in a confused manner, which can effectively prevent the interception and capture of data by third-party devices, and can ensure the accurate identification of data by users, thereby preventing malicious distribution of data by third-party devices and ensuring the privacy and security of data.
[0012] Optionally, the data receiving end generates a first display frequency of the first image based on the first random number, including:
[0013] The data receiving end obtains the first random number from the blockchain;
[0014] The data receiving end performs mapping processing on the first random number within a display frequency range supported by the terminal where the data receiving end is located to determine the first display frequency;
[0015] The data receiving end generates N second display frequencies corresponding to N noise images based on the N second random numbers, including:
[0016] The data receiving end obtains the N second random numbers from the blockchain;
[0017] The data receiving end performs mapping processing on the N second random numbers between the first display frequency and the maximum display frequency within the display frequency range, and generates N second display frequencies corresponding to the N noise images.
[0018] In the above technical solution, the first display frequency is determined by mapping the first random number within the display frequency range supported by the terminal where the data receiving end is located, and the N second random numbers are mapped between the first display frequency and the maximum display frequency within the display frequency range to generate N second display frequencies corresponding to the N noise images. This ensures the unpredictability and non-tamperability of the first display frequency and the N second display frequencies, and ensures the user's accurate recognition of the first image. At the same time, it provides support for the subsequent display of the first image and the N noise images based on the first display frequency and the N second display frequencies.
[0019] Optionally, the data receiving end generates a first display frequency of the first image based on the first random number, including:
[0020] The data receiving end obtains the first random number from the blockchain;
[0021] The data receiving end performs mapping processing on the first random number within a first set range to determine the first display frequency; the first set range is within a display frequency range supported by the terminal where the data receiving end is located;
[0022] The data receiving end generates N second display frequencies corresponding to N noise images based on the N second random numbers, including:
[0023] The data receiving end obtains the N second random numbers from the blockchain;
[0024] The data receiving end maps the N second random numbers respectively within a second set range to generate N second display frequencies corresponding to the N noise images; the minimum value of the second set range is not less than the first display frequency; the second set range is within the display frequency range supported by the terminal where the data receiving end is located.
[0025] In the above technical solution, the first display frequency is determined by mapping the first random number within the first set range, and the N second random numbers are mapped respectively within the second set range to generate N second display frequencies corresponding to the N noise images. This ensures the unpredictability and non-tamperability of the first display frequency and the N second display frequencies, ensures the user's accurate recognition of the first image, and provides support for the subsequent display of the first image and the N noise images based on the first display frequency and the N second display frequencies.
[0026] Optionally, before the data receiving end displays the first image and the N noise images according to the first display frequency and the N second display frequencies within a set time period, the method further includes:
[0027] The data receiving end obtains a random interval from the blockchain as the set time period;
[0028] After displaying the first image and the N noise images, the method further includes:
[0029] After the set time period arrives, the data receiving end obtains, from the blockchain, a third random number for displaying the first image and N fourth random numbers required for displaying the N noise images.
[0030] In the above technical solution, a random interval from the blockchain is used as a set time period, which can ensure the unpredictability of the set time period, and re-obtain the third random number and N fourth random numbers after the set time period is reached, which can provide support for ensuring the privacy security of the first image when displaying the first image, so as to prevent the first image from being intercepted and captured by a third-party device.
[0031] Optionally, before the data receiving end generates the first display frequency of the first image based on the first random number, the step further includes:
[0032] The data receiving end receives the first image and the N encrypted noise images sent by the data sending end using the public key of the data receiving end; the public key is generated by the data receiving end and uploaded to the blockchain;
[0033] The data receiving end uses a private key to decrypt the encrypted first image and the N encrypted noise images respectively to obtain a decrypted first image and N decrypted noise images; the private key is generated by the data receiving end.
[0034] In the above technical solution, the first image and the N noise images are encrypted respectively using the public key of the data receiving end, so that the privacy security of the first image and the N noise images can be ensured.
[0035] Optionally, the N noisy images are generated based on the first image, including:
[0036] determining a desensitization rule in the first image;
[0037] Based on the desensitization rule, N noise images are generated for covering the sensitive information in the first image during display.
[0038] In the above technical solution, the first image is desensitized based on the desensitization rule to generate N noise images, which can provide support for subsequent confusion display of the first image and the N noise images.
[0039] Optionally, the N second display frequencies are different from each other, and at least one second display frequency is higher than the acquisition frequency of the acquisition device.
[0040] In the above technical solution, the N second display frequencies generated are different, and there is at least one second display frequency that is higher than the acquisition frequency of the acquisition device. This can ensure that the noise image is superimposed (confused) on the first image in a timely and effective manner, thereby preventing the acquisition device from intercepting and capturing the first image, thereby preventing the malicious distribution of the first image by a third-party device and ensuring the privacy security of the first image.
[0041] In a second aspect, an embodiment of the present invention provides a data processing method based on blockchain, including:
[0042] The data transmitting end generates a first image of the data;
[0043] The data transmitting end generates N noise images based on the first image; N is an integer greater than or equal to 1; the first image and the N noise images have the same size;
[0044] The data sending end sends the first image and the N noise images to the data receiving end.
[0045] Optionally, the data sending end generates N noise images based on the first image, including:
[0046] The data sending end determines a desensitization rule in the first image;
[0047] The data sending end performs desensitization processing on the first image based on the desensitization rule to generate the N noise images; the N noise images are used to cover the sensitive information in the first image when displayed.
[0048] In the above technical solution, the first image is desensitized based on the desensitization rule to generate N noise images, which can provide support for subsequent confusion display of the first image and the N noise images.
[0049] Optionally, the data sending end sending the first image and the N noise images to a data receiving end includes:
[0050] The data sending end obtains the public key of the data receiving end from the blockchain to which it belongs based on the identifier of the data receiving end; the public key is generated by the data receiving end and uploaded to the blockchain;
[0051] The data sending end uses the public key to encrypt the first image and the N noise images respectively to obtain the encrypted first image and the encrypted N noise images;
[0052] The data sending end sends the encrypted first image and the encrypted N noise images to the data receiving end.
[0053] In the above technical solution, since the data sending end encrypts the first image and the N noise images respectively by using the public key of the data receiving end, the privacy security of the first image and the N noise images can be ensured.
[0054] In a third aspect, an embodiment of the present invention provides a data processing device based on blockchain, including:
[0055] A generating unit, configured to generate a first display frequency of a first image based on a first random number; the first image is obtained from a data transmitting end;
[0056] A processing unit, configured to generate N second display frequencies corresponding to N noise images based on N second random numbers; the second display frequency is greater than the first display frequency; the N noise images are generated based on the first image; N is an integer greater than or equal to 1; within a set time period, the first image and the N noise images are displayed according to the first display frequency and the N second display frequencies; wherein at least one of the first random number and the N second random numbers is obtained through a blockchain.
[0057] Optionally, the processing unit is specifically configured to:
[0058] Obtain the first random number from the blockchain;
[0059] Mapping the first random number within a display frequency range supported by the terminal where the data receiving end is located to determine the first display frequency;
[0060] The processing unit is specifically used for:
[0061] Obtain the N second random numbers from the blockchain;
[0062] The N second random numbers are respectively mapped between the first display frequency and the maximum display frequency within the display frequency range to generate N second display frequencies corresponding to the N noise images.
[0063] Optionally, the processing unit is specifically configured to:
[0064] Obtain the first random number from the blockchain;
[0065] Mapping the first random number within a first set range to determine the first display frequency; the first set range is within a display frequency range supported by the terminal where the data receiving end is located;
[0066] The processing unit is specifically used for:
[0067] Obtain the N second random numbers from the blockchain;
[0068] Within a second set range, the N second random numbers are mapped respectively to generate N second display frequencies corresponding to the N noise images; the minimum value of the second set range is not less than the first display frequency; the second set range is within the display frequency range supported by the terminal where the data receiving end is located.
[0069] Optionally, the processing unit is further configured to:
[0070] Before displaying the first image and the N noise images, obtaining a random interval from the blockchain as the set time period;
[0071] The processing unit is also used for:
[0072] After the first image and the N noise images are displayed, after the set time period arrives, a third random number used to display the first image and N fourth random numbers required to display the N noise images are obtained from the blockchain.
[0073] Optionally, the processing unit is further configured to:
[0074] Before generating a first display frequency of the first image based on the first random number, receiving the first image and N encrypted noise images encrypted by the public key of the data receiving end sent by the data sending end; the public key is generated by the data receiving end and uploaded to the blockchain;
[0075] The encrypted first image and the N encrypted noise images are decrypted respectively using a private key to obtain a decrypted first image and N decrypted noise images; the private key is generated by the data receiving end.
[0076] Optionally, the processing unit is specifically configured to:
[0077] determining a desensitization rule in the first image;
[0078] Based on the desensitization rule, N noise images are generated for covering the sensitive information in the first image during display.
[0079] Optionally, the processing unit is specifically configured to:
[0080] The N second display frequencies are different from each other, and at least one second display frequency is higher than the acquisition frequency of the acquisition device.
[0081] In a fourth aspect, an embodiment of the present invention provides a data processing device based on blockchain, comprising:
[0082] A first generating unit, configured to generate a first image of the data;
[0083] The first processing unit is used to generate N noise images based on the first image; N is an integer greater than or equal to 1; the first image and the N noise images have the same size; and send the first image and the N noise images to a data receiving end.
[0084] Optionally, the first processing unit is specifically configured to:
[0085] determining a desensitization rule in the first image;
[0086] Based on the desensitization rule, the first image is desensitized to generate the N noise images; the N noise images are used to cover the sensitive information in the first image when displayed.
[0087] Optionally, the first processing unit is specifically configured to:
[0088] Based on the identifier of the data receiving end, obtain the public key of the data receiving end from the blockchain to which it belongs; the public key is generated by the data receiving end and uploaded to the blockchain;
[0089] Using the public key to encrypt the first image and the N noise images respectively, to obtain an encrypted first image and N encrypted noise images;
[0090] The encrypted first image and the encrypted N noise images are sent to the data receiving end.
[0091] In a fifth aspect, an embodiment of the present invention provides a computing device, including:
[0092] Memory for storing computer programs;
[0093] The processor is used to call the computer program stored in the memory and execute the blockchain-based data processing method according to the obtained program.
[0094] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute a blockchain-based data processing method. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0096] Figure 1 A schematic diagram of a data processing system architecture provided by an embodiment of the present invention;
[0097] Figure 2 A flowchart of a data processing method based on blockchain provided by an embodiment of the present invention;
[0098] Figure 3 A schematic diagram of the structure of a blockchain-based data processing device provided by an embodiment of the present invention;
[0099] Figure 4 A schematic diagram of the structure of another blockchain-based data processing device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0100] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0101] First, some terms involved in the embodiments of the present invention are explained below to facilitate understanding by those skilled in the art.
[0102] (1) Hash: A type of hash algorithm used to generate a string-formatted summary for longer data. It can generally be represented by a 64-character HEX (hexadecimal) string. For example, it can be implemented using algorithms such as sha3 and md5.
[0103] (2) Blockchain: Blockchain is a chain consisting of a series of blocks. In addition to recording the data of the current block, each block also records the hash value of the previous block, forming a chain in this way. In addition, there are two core concepts of blockchain: one is cryptography technology, and the other is decentralization. Based on these two concepts, the historical information on the blockchain cannot be tampered with. A block in the blockchain consists of a block header and a block body. Among them, the block header mainly includes the block height h, the hash of the previous block, etc., while the block body mainly stores transaction data.
[0104] (3) Sybil attack: a single node has multiple identities, and the role of redundant backup is weakened by controlling most of the system's nodes (since the blockchain is essentially a distributed database that only writes but does not delete, the network is secure and cannot be tampered with through redundant data from multiple nodes. In order to maintain network stability, the same data usually needs to be backed up to multiple distributed nodes). Alternatively, attacks that imitate multiple identities are Sybil attacks, and a common example in life is using multiple IP addresses to increase traffic and likes.
[0105] As mentioned above, some terms involved in the embodiments of the present invention are introduced. Now, the technical features involved in the embodiments of the present invention are introduced.
[0106] In order to facilitate understanding of the embodiments of the present invention, first Figure 1 The system architecture shown in the example is used to illustrate the data processing system architecture applicable to the embodiment of the present invention. The data processing system architecture can be applied to data distribution between blockchain users, etc. In actual application scenarios, the present invention does not limit this. Figure 1 As shown, the system architecture may include at least one data sending terminal (such as data sending terminal 1, data sending terminal 2 and data sending terminal 3, etc.), a blockchain and at least one data receiving terminal (such as data receiving terminal 1, data receiving terminal 2 and data receiving terminal 3, etc.). Among them, each data sending terminal is connected to the blockchain, and each data receiving terminal is connected to the blockchain. The data receiving terminal can be connected to the data receiving terminal, such as by wired connection or by wireless connection, which is not specifically limited. It should be noted that the data sending terminal can be used as a data receiving terminal, and the data receiving terminal can also be used as a data sending terminal. The data receiving terminal or the data sending terminal can be a client software on a terminal, and the terminal can be a mobile phone, a laptop computer, a tablet computer, etc., which is not limited in the embodiment of the present invention.
[0107] Exemplarily, the data processing process is described by taking the case where the data receiving end 1 receives and displays the image of the data sent by the data sending end 1 and sends it to as an example. Before the data processing is performed, the data sending end 1 and the data receiving end 1 have applied for registration to join the blockchain and become members of the blockchain after successful authentication. The data sending end 1 and the data receiving end 1 each generate a pair of public and private keys locally, and upload their respective public keys to the blockchain for storage so that other blockchain members can see their public keys. After the data sending end 1 processes the data, it obtains the image of the data, generates multiple noise images with the same size as the image of the data, and encrypts the image of the data and the multiple noise images based on the public key of the data receiving end 1 to obtain the encrypted image of the data and the encrypted multiple noise images. Then, the encrypted image of the data and the encrypted multiple noise images are sent to the data receiving end 1, so that the data receiving end 1 decrypts the encrypted image of the data and the encrypted multiple noise images based on its own private key to obtain the decrypted image of the data and the decrypted multiple noise images. Afterwards, the data receiving end 1 sends a random number request to the blockchain. The blockchain generates a random number based on the random number request through a random number generation algorithm, and sends the random number to the data receiving end 1, so that the data receiving end 1 generates a random interval based on the random number, and then obtains the display frequency of the image of the random number generated data, and obtains multiple random numbers to generate multiple display frequencies corresponding to multiple noise images. The data receiving end 1 displays the image of the data at the display frequency of the image of the data, and displays multiple noise images at multiple display frequencies corresponding to multiple noise images.
[0108] It should be noted that the above Figure 1 The structure shown is only an example and is not limited to this embodiment of the present invention.
[0109] Based on the above description, Figure 2 The flowchart of a blockchain-based data processing method provided by an embodiment of the present invention is exemplarily shown, and the flowchart can be executed by a blockchain-based data processing device.
[0110] like Figure 2 As shown in the figure, the process specifically includes:
[0111] Step 201: A data receiving end generates a first display frequency of a first image based on a first random number.
[0112] Step 202: The data receiving end generates N second display frequencies corresponding to N noise images based on N second random numbers.
[0113] Step 203: the data receiving end displays the first image and the N noise images according to the first display frequency and the N second display frequencies within a set time period.
[0114] In the above step 201, before generating the first display frequency of the first image, the data transmitting end generates the first image of the data based on the data, and generates N noise images based on the first image, that is, the data transmitting end determines the desensitization rule in the first image, and based on the desensitization rule, performs desensitization processing on the first image, and generates N noise images for covering the sensitive information in the first image when displayed, so as to provide support for the subsequent confusing display of the first image and the N noise images. Then the first image and the N noise images are sent to the data receiving end. Alternatively, the data transmitting end does not generate N noise images, but after the data receiving end receives the first image, the data receiving end generates N noise images based on the first image, that is, the data receiving end determines the desensitization rule in the first image, and based on the desensitization rule, performs desensitization processing on the first image, and generates N noise images for covering the sensitive information in the first image when displayed, so as to provide support for the subsequent confusing display of the first image and the N noise images. Wherein, N is an integer greater than or equal to 1; the first image and the N noise images have the same size. Then, after receiving the first image, the data receiving end obtains the first random number from the blockchain, and generates the first display frequency of the first image based on the first random number, that is, the data receiving end obtains the first random number from the blockchain, and maps the first random number within the display frequency range supported by the terminal where the data receiving end is located, and determines the first display frequency. Alternatively, the data receiving end obtains the first random number from the blockchain, and maps the first random number within the first set range to determine the first display frequency. In this way, the unpredictability and non-tamperability of the first display frequency can be ensured, and the user's accurate recognition of the first image can be ensured, and support can be provided for the subsequent display of the first image based on the first display frequency. Among them, the first set range is within the display frequency range supported by the terminal where the data receiving end is located; the first set range can be set according to the specific application scenario or according to experience, and the embodiment of the present invention does not limit this.
[0115] In addition, it should be noted that before generating the first display frequency of the first image, the data sending end obtains the public key of the data receiving end from the blockchain to which it belongs based on the identifier of the data receiving end, and uses the public key to encrypt the first image and the N noise images respectively to obtain the encrypted first image and the N noise images after encryption, and then sends the encrypted first image and the N noise images after encryption to the data receiving end, which can ensure the privacy and security of the first image and the N noise images. After receiving the encrypted first image and the N noise images after encryption, the data receiving end uses the private key to decrypt the encrypted first image and the N noise images after encryption, respectively, to obtain the decrypted first image and the N noise images after encryption. Alternatively, the data sending end obtains the public key of the data receiving end from the blockchain to which it belongs based on the identifier of the data receiving end, and uses the public key to encrypt the first image to obtain the encrypted first image, and then sends the encrypted first image to the data receiving end, which can ensure the privacy and security of the first image. After receiving the encrypted first image, the data receiving end uses the private key to decrypt the encrypted first image to obtain the decrypted first image. Among them, the public key is generated by the data receiving end and uploaded to the blockchain; the private key is generated by the data receiving end.
[0116] In the above step 202, the data receiving end generates N second display frequencies corresponding to the N noise images based on the N second random numbers. Specifically, the data receiving end obtains N second random numbers from the blockchain, and respectively maps the N second random numbers between the first display frequency and the maximum display frequency within the display frequency range to generate N second display frequencies corresponding to the N noise images. Alternatively, the data receiving end obtains N second random numbers from the blockchain, and respectively maps the N second random numbers within the second set range to generate N second display frequencies corresponding to the N noise images. In this way, the unpredictability and non-tamperability of the N second display frequencies can be ensured, and the user's accurate identification of the N noise images can be ensured, while providing support for the subsequent display of the N noise images based on the N second display frequencies. Among them, the minimum value of the second setting range is not less than the first display frequency; the second setting range is within the display frequency range supported by the terminal where the data receiving end is located; the second setting range can be set according to a specific application scenario or according to experience, and the embodiment of the present invention is not limited to this; the second display frequency is greater than the first display frequency; the N noise images are generated based on the first image; at least one of the first random number and the N second random numbers is obtained through the blockchain.
[0117] It should be noted that the N second display frequencies are different, and there is at least one second display frequency that is higher than the acquisition frequency of the acquisition device. This can ensure that the noise image is superimposed (confuses) the first image in a timely and effective manner, thereby preventing the acquisition device from intercepting and capturing the first image, thereby preventing the malicious distribution of the first image by a third-party device and ensuring the privacy security of the first image.
[0118] In the above step 203, the data receiving end displays the first image and N noise images according to the first display frequency and N second display frequencies within the set time period. That is, the data receiving end obtains a random interval from the blockchain as the set time period, and displays the first image and N noise images in a confused manner according to the first display frequency and N second display frequencies within the set time period, so as to effectively prevent the interception and capture of data by third-party devices, and ensure the accurate identification of data by users, thereby preventing malicious distribution of data by third-party devices, and ensuring the privacy and security of data. After the set time period arrives, the third random number used to display the first image and the N fourth random numbers required for displaying the N noise images are obtained from the blockchain, so as to generate the third display frequency of the first image based on the third random number within the next cycle set time period, and generate the N fourth display frequencies corresponding to the N noise images based on the N fourth random numbers.
[0119] In the prior art, a data monitoring system is pre-set on the interface of the terminal device. When the monitoring system detects that the user is performing operations such as screenshot, printing or exporting, the display screen interface of the terminal device will be set to a blank screen or a black screen to cut off the user's screenshot, printing or exporting operations, thereby preventing the secondary distribution of data. However, this processing method cannot avoid the secondary distribution of data for rooted mobile devices or cracking methods based on third-party device interception (such as taking pictures of the screen, etc.).
[0120] Based on this, the embodiment of the present invention provides a low-cost, blockchain-based data distribution mechanism that resists secondary distribution. Among them, the data distribution mechanism can coexist with other technical means to protect data distribution. The data sending end converts the data or data voucher into a picture, and then generates multiple noise pictures, which are sent together to the receiving client software of the receiving party. In order to correctly parse the picture, the receiving party needs to start the receiving client software and connect to the blockchain network. The receiving client software will pull random numbers from the blockchain, generate random intervals and random display frequency values, and play the noise pictures and the original pictures alternately at random low frequencies. With the help of the biological characteristic of human visual persistence, it can effectively prevent the interception and capture of third-party devices. In addition, at every random interval, the random number is re-pulled from the blockchain to update the display frequency value for playback, so that the third-party device can be prevented from determining the display frequency of the original picture and sampling and extracting. Thereby, the malicious distribution of data or data vouchers by third-party devices can be prevented to a certain extent without affecting human eye recognition.
[0121] In view of this, the implementation process of data processing in an embodiment of the present invention is specifically described below by taking an example in which a data sending end generates a picture of data based on data and generates multiple noise pictures based on the picture of data, and sends the picture of data and the multiple noise pictures to a data receiving end.
[0122] Step 1: Blockchain initialization.
[0123] Before participating in data interaction, the data sender and the data receiver need to register and authenticate to become members of the blockchain. That is, each participant in the data interaction joins the blockchain after registration and authentication, and generates a pair of public and private keys locally, and uploads the public key to the blockchain so that the members of the blockchain can see the public key. Exemplarily, the registration and authentication process is described by taking the data sender 1 and the data receiver 1 as examples. Before the data sender 1 interacts with the data receiver 1, the data sender 1 and the data receiver 1 reach a consensus to form a blockchain so that data interaction can be carried out within the blockchain system, and the interactive data is recorded together. Alternatively, the blockchain has been formed, and the data sender 1 and the data receiver 1 want to join the blockchain for data interaction. Based on this, the data sender 1 and the data receiver 1 both need to initiate a registration request to the blockchain. After the blockchain authenticates the registration request of the data sender 1 and the data receiver 1, the data sender 1 and the data receiver 1 successfully join the blockchain. After that, data interaction is carried out within the blockchain system, so that the immutability and accuracy of the interactive data can be ensured.
[0124] In addition, as a participant in the blockchain, each participant needs to provide a random number generator on the blockchain to generate random numbers. Among them, common blockchain random number generation algorithms include VRF random number (Verifiable Random Function) generator, VDF function (Verifiable Delay Function) or Oracle oracle, etc.
[0125] It should be noted that in order to resist Sybil Attack and ensure the effectiveness of random number generation, it is necessary to require that the number of public and private key pairs controlled by the nodes connected to the blockchain does not exceed one.
[0126] Step 2: Data sending.
[0127] The data sending end processes the data, generates a picture of the data, generates multiple noise pictures based on the picture of the data, encrypts the picture of the data and the multiple noise pictures, and sends the encrypted picture of the data and the encrypted multiple noise pictures to the data receiving end. The specific process of data sending is as follows:
[0128] a. The data sender converts the data into images.
[0129] Exemplarily, the data sending end may use Ps software (Photoshop) to convert the data into a bitmap or vector image, or use Ai software (Adobe illustrator) to convert the data into a bitmap or vector image. Of course, other tools or image processing methods may also be used to convert the data into a bitmap or vector image, and the embodiments of the present invention are not limited to this.
[0130] b. The data transmitter generates N noise images of the same size as the original image based on the data image. The specific generation method for generating the N noise images is not limited, but the sensitive data part in the original data needs to be completely covered. For example, the data image is completely smeared or only the sensitive data part of the data image is smeared; or the sensitive data part of the data image is desensitized by replacement, masking, encryption or invalidation.
[0131] c. The data sending end obtains the public key of the recipient from the blockchain, and uses the public key to encrypt the data image and N noise images respectively to obtain the encrypted data image and N encrypted noise images. The encrypted data image and the N encrypted noise images are sent to the receiving client of the data receiving end. Among them, the embodiment of the present invention does not limit the data transmission method. For example, the data sending end can send the encrypted data image and the N encrypted noise images to the corresponding data receiving end through on-chain point-to-point transmission or off-chain (public network or dedicated line) transmission.
[0132] Step 3: Data analysis and display.
[0133] After receiving the encrypted data picture and N encrypted noise pictures sent by the data sending end, the data receiving end uses its own private key to decrypt the encrypted data picture and N encrypted noise pictures to obtain the decrypted data picture and N decrypted noise pictures. The data receiving end obtains the display frequency of the picture of the data generated by the random number from the blockchain, and obtains the N display frequencies of the N noise pictures generated by N random numbers, and uses the display frequency of the picture of the data and the N display frequencies to perform low-frequency confusion display on the picture of the data and the N noise pictures respectively. In this way, by playing the N noise pictures and the picture of the data at a low-frequency frame rate, the effect of being readable at the human eye level but not being intercepted by third-party devices can be achieved. Among them, the specific process of parsing and displaying the picture of the data and the N noise pictures is as follows:
[0134] a. The data receiving end uses its own private key to receive the encrypted data picture and the N encrypted noise pictures, and obtains the decrypted data picture and the N decrypted noise pictures.
[0135] b. The data receiver obtains a random number from the blockchain and generates a random interval T based on the random number.
[0136] c. The data receiving end obtains a random number from the blockchain, and then maps the random number to the interval [24, the maximum display frequency supported by the display of the terminal device where the current receiving client is located], so as to obtain a numerical value, and use the numerical value as the display frequency f0 of the data image. Alternatively, the random number can be mapped to the interval [24, the first set value], so as to obtain a numerical value, and use the numerical value as the display frequency f0 of the data image. Among them, the first set value is less than the maximum display frequency supported by the display of the terminal device where the current receiving client is located; the first set value can be set according to the specific application scenario or according to experience.
[0137] d. The data receiving end obtains N random numbers from the blockchain, and then maps the N random numbers to the interval [f0, the maximum display frequency supported by the display of the terminal device where the current receiving client is located], so that N values can be obtained and used as the display frequencies f1~f of the N noise images. N Alternatively, the N random numbers can be mapped to the interval [f0, second set value], so as to obtain N values, and the N values are used as the display frequencies f1 to f of the N noise pictures. N . The second setting value is less than the maximum display frequency supported by the display of the terminal device where the current receiving client is located; the second setting value can be set according to the specific application scenario or according to experience. In addition, as long as the second setting value is greater than f0, less than or equal to the first setting value, or greater than or equal to the first setting value, the embodiment of the present invention does not limit this.
[0138] e. The data receiving end displays the data image at f0 in the current period T, and displays the data image at f1~f2 respectively. N Display N noise images, that is, f0 and f1~f N The data picture and the N noise pictures are displayed in a confused manner. Whenever T cycles end, return to step b and execute steps b to e to re-display the data picture at a new display frequency of the data picture in a new cycle, and re-display the N noise pictures at N new display frequencies of the display frequencies of the N noise pictures.
[0139] It should be noted that due to the characteristics of human visual persistence, the lowest frequency is relatively sensitive, so the impact on human eye's recognition of data is very small. When commonly used camera equipment samples at a fixed frequency, there is only a small probability that the display frequency f0 of the data will be sampled within the T time period. Therefore, in most cases, the content of the data cannot be correctly parsed.
[0140] The above embodiment shows that the first display frequency of the first image is generated based on the first random number, and N second display frequencies corresponding to the N noise images are generated based on the N second random numbers. Then, within the set time period, the first image and the N noise images are displayed according to the first display frequency and the N second display frequencies. Since at least one of the first random number and the N second random numbers is obtained from the blockchain, the credibility, security and non-tamperability of the generated first display frequency and the N second display frequencies can be ensured. And according to the first display frequency and the N second display frequencies, the first image and the N noise images are displayed in a confused manner, which can effectively prevent the interception and capture of data by third-party devices, and can ensure the accurate identification of data by users, thereby preventing malicious distribution of data by third-party devices and ensuring the privacy and security of data.
[0141] Based on the same technical concept, Figure 3 A blockchain-based data processing device provided by an embodiment of the present invention is exemplarily shown, and the device can execute the process of the blockchain-based data processing method.
[0142] like Figure 3 As shown, the device comprises:
[0143] A generating unit 301 is configured to generate a first display frequency of a first image based on a first random number; the first image is obtained from a data transmitting end;
[0144] The processing unit 302 is used to generate N second display frequencies corresponding to N noise images based on N second random numbers; the second display frequency is greater than the first display frequency; the N noise images are generated based on the first image; N is an integer greater than or equal to 1; within a set time period, the first image and the N noise images are displayed according to the first display frequency and the N second display frequencies; wherein at least one of the first random number and the N second random numbers is obtained through a blockchain.
[0145] Optionally, the processing unit 302 is specifically configured to:
[0146] Obtain the first random number from the blockchain;
[0147] Mapping the first random number within a display frequency range supported by the terminal where the data receiving end is located to determine the first display frequency;
[0148] The processing unit 302 is specifically used for:
[0149] Obtain the N second random numbers from the blockchain;
[0150] The N second random numbers are respectively mapped between the first display frequency and the maximum display frequency within the display frequency range to generate N second display frequencies corresponding to the N noise images.
[0151] Optionally, the processing unit 302 is specifically configured to:
[0152] Obtain the first random number from the blockchain;
[0153] Mapping the first random number within a first set range to determine the first display frequency; the first set range is within a display frequency range supported by the terminal where the data receiving end is located;
[0154] The processing unit 302 is specifically used for:
[0155] Obtain the N second random numbers from the blockchain;
[0156] Within a second set range, the N second random numbers are mapped respectively to generate N second display frequencies corresponding to the N noise images; the minimum value of the second set range is not less than the first display frequency; the second set range is within the display frequency range supported by the terminal where the data receiving end is located.
[0157] Optionally, the processing unit 302 is further configured to:
[0158] Before displaying the first image and the N noise images, obtaining a random interval from the blockchain as the set time period;
[0159] The processing unit 302 is further configured to:
[0160] After the first image and the N noise images are displayed, after the set time period arrives, a third random number used to display the first image and N fourth random numbers required to display the N noise images are obtained from the blockchain.
[0161] Optionally, the processing unit 302 is further configured to:
[0162] Before generating a first display frequency of the first image based on the first random number, receiving the first image and N encrypted noise images encrypted by the public key of the data receiving end sent by the data sending end; the public key is generated by the data receiving end and uploaded to the blockchain;
[0163] The encrypted first image and the N encrypted noise images are decrypted respectively using a private key to obtain a decrypted first image and N decrypted noise images; the private key is generated by the data receiving end.
[0164] Optionally, the processing unit 302 is specifically configured to:
[0165] determining a desensitization rule in the first image;
[0166] Based on the desensitization rule, N noise images are generated for covering the sensitive information in the first image during display.
[0167] Optionally, the processing unit 302 is specifically configured to:
[0168] The N second display frequencies are different from each other, and at least one second display frequency is higher than the acquisition frequency of the acquisition device.
[0169] Based on the same technical concept, Figure 4 A blockchain-based data processing device provided by an embodiment of the present invention is exemplarily shown, and the device can execute the process of the blockchain-based data processing method.
[0170] like Figure 4 As shown, the device comprises:
[0171] A first generating unit 401, configured to generate a first image of data;
[0172] The first processing unit 402 is used to generate N noise images based on the first image; N is an integer greater than or equal to 1; the first image and the N noise images have the same size; and send the first image and the N noise images to a data receiving end.
[0173] Optionally, the first processing unit 402 is specifically configured to:
[0174] determining a desensitization rule in the first image;
[0175] Based on the desensitization rule, the first image is desensitized to generate the N noise images; the N noise images are used to cover the sensitive information in the first image when displayed.
[0176] Optionally, the first processing unit 402 is specifically configured to:
[0177] Based on the identifier of the data receiving end, obtain the public key of the data receiving end from the blockchain to which it belongs; the public key is generated by the data receiving end and uploaded to the blockchain;
[0178] Using the public key to encrypt the first image and the N noise images respectively, to obtain an encrypted first image and N encrypted noise images;
[0179] The encrypted first image and the encrypted N noise images are sent to the data receiving end.
[0180] Based on the same technical concept, an embodiment of the present invention provides a computing device, including:
[0181] Memory for storing computer programs;
[0182] The processor is used to call the computer program stored in the memory and execute the blockchain-based data processing method according to the obtained program.
[0183] Based on the same technical concept, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer-executable program, and the computer-executable program is used to enable a computer to execute a blockchain-based data processing method.
[0184] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0185] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0186] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0188] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0189] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of this application and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A data processing method based on blockchain, characterized in that: include: The data receiving end generates a first display frequency of the first image based on the first random number; The first image is obtained from a data sending end; The data receiving end generates N second display frequencies corresponding to the N noise images based on the N second random numbers; The second display frequency is greater than the first display frequency; The N noise images are generated based on the first image; N is an integer greater than or equal to 1; The data receiving end displays the first image and the N noise images according to the first display frequency and the N second display frequencies within a set time period; Wherein, at least one of the first random number and the N second random numbers is obtained through blockchain; Before the data receiving end displays the first image and the N noise images according to the first display frequency and the N second display frequencies within a set time period, the method further includes: The data receiving end obtains a random interval from the blockchain as the set time period; After displaying the first image and the N noise images, the method further includes: After the set time period arrives, the data receiving end obtains, from the blockchain, a third random number for displaying the first image and N fourth random numbers required for displaying the N noise images.
2. The method according to claim 1, characterized in that The data receiving end generates a first display frequency of the first image based on the first random number, including: The data receiving end obtains the first random number from the blockchain; The data receiving end performs mapping processing on the first random number within a display frequency range supported by the terminal where the data receiving end is located to determine the first display frequency; The data receiving end generates N second display frequencies corresponding to N noise images based on the N second random numbers, including: The data receiving end obtains the N second random numbers from the blockchain; The data receiving end performs mapping processing on the N second random numbers between the first display frequency and the maximum display frequency within the display frequency range, and generates N second display frequencies corresponding to the N noise images.
3. The method according to claim 1, characterized in that The data receiving end generates a first display frequency of the first image based on the first random number, including: The data receiving end obtains the first random number from the blockchain; The data receiving end performs mapping processing on the first random number within a first set range to determine the first display frequency; the first set range is within a display frequency range supported by the terminal where the data receiving end is located; The data receiving end generates N second display frequencies corresponding to N noise images based on the N second random numbers, including: The data receiving end obtains the N second random numbers from the blockchain; The data receiving end maps the N second random numbers respectively within a second set range to generate N second display frequencies corresponding to the N noise images; the minimum value of the second set range is not less than the first display frequency; the second set range is within the display frequency range supported by the terminal where the data receiving end is located.
4. The method according to claim 1, characterized in that Before the data receiving end generates the first display frequency of the first image based on the first random number, the data receiving end further includes: The data receiving end receives the first image and the N encrypted noise images sent by the data sending end using the public key of the data receiving end; the public key is generated by the data receiving end and uploaded to the blockchain; The data receiving end uses a private key to decrypt the encrypted first image and the N encrypted noise images respectively to obtain a decrypted first image and N decrypted noise images; the private key is generated by the data receiving end.
5. The method according to any one of claims 1 to 3, characterized in that: The N noisy images are generated based on the first image, including: determining a desensitization rule in the first image; Based on the desensitization rule, N noise images are generated for covering the sensitive information in the first image during display.
6. The method according to any one of claims 1 to 3, characterized in that: The N second display frequencies are different from each other, and at least one second display frequency is higher than the acquisition frequency of the acquisition device.
7. A data processing device based on blockchain, characterized in that: include: A generating unit, configured to generate a first display frequency of a first image based on a first random number; The first image is obtained from a data sending end; A processing unit, configured to generate N second display frequencies corresponding to the N noise images based on the N second random numbers; The second display frequency is greater than the first display frequency; The N noise images are generated based on the first image; N is an integer greater than or equal to 1; Within a set period of time, the first image and the N noise images are displayed according to the first display frequency and the N second display frequencies; wherein at least one of the first random number and the N second random numbers is obtained through a blockchain; The processing unit is further configured to obtain a random interval from the blockchain as the set time period before displaying the first image and the N noise images; The processing unit is further used to obtain, from the blockchain, a third random number used to display the first image and N fourth random numbers required to display the N noise images after the first image and the N noise images are displayed and after the set time period arrives.
8. A computing device, characterized in that include: Memory for storing computer programs; A processor, configured to call a computer program stored in the memory, and execute the method according to any one of claims 1 to 6 according to the obtained program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer-executable program, and the computer-executable program is used to enable a computer to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Video playing method, and display system
CN108234977A