Data ownership verification method and device based on quantum watermark and medium
By embedding quantum watermark ciphertext in the data and using public key cryptography algorithms for encryption and decryption, the problem of low accuracy of data ownership verification in the existing technology is solved, and efficient and secure verification of data is achieved.
Patent Information
- Application Number
- CN202410744169.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-29
AI Technical Summary
Existing data ownership verification technology cannot accurately verify the integrity and source of data, resulting in low accuracy of data ownership verification.
A data ownership verification method based on quantum watermark is used to generate a key pair of quantum watermark information through a preset public key cryptography algorithm, encrypt it into quantum watermark ciphertext, and embed the ciphertext into business data, using the ciphertext Verify data ownership.
It achieves accurate verification and identification of data ownership, ensures data integrity and security, resists multiple attacks, and improves security during data transmission.
Smart Images

Figure CN118862026A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data ownership verification method, device and medium based on quantum watermarking. Background Art
[0002] In today's digital information age, the protection of data ownership and integrity has become particularly important, especially for enterprises, where protecting business secrets and sensitive information is crucial. Therefore, ensuring data integrity is crucial to ensuring data accuracy and credibility. In order to protect the integrity of data transmission, it is necessary to verify the ownership of data during the data transmission process.
[0003] Existing data ownership verification technology verifies data ownership through digital signature and encryption technology, thereby protecting data security. In practical applications, digital signature and encryption technology often cannot provide data integrity and source verification, resulting in inaccurate identity recognition, resulting in low accuracy in data ownership verification. Summary of the invention
[0004] The present invention provides a data ownership verification method, device and medium based on quantum watermark, the main purpose of which is to solve the problem of low accuracy when performing data ownership verification.
[0005] To achieve the above object, the present invention provides a data ownership verification method based on quantum watermarking, comprising:
[0006] Scan the preset business data according to the preset regular scanning time, and perform data cleaning on the scanned business data;
[0007] Generate a key pair of the quantum watermark information corresponding to the business data using a preset public key cryptography algorithm, and encrypt the quantum watermark information using the key to obtain a quantum watermark ciphertext;
[0008] Embedding the quantum watermark ciphertext into the business data after data cleaning processing;
[0009] When the business data embedded in the quantum watermark ciphertext needs to be copied or uploaded to an external network, the business data embedded in the quantum watermark ciphertext after being copied or uploaded to the external network is verified to obtain the data ownership of the business data.
[0010] Optionally, the scanned business data is cleansed, including:
[0011] Dividing the scanned business data into image data, audio data and video data;
[0012] Performing denoising processing on the image data, performing data enhancement processing on the denoised image data, and performing noise point cleaning processing on the data enhanced image data;
[0013] Performing a downsampling operation on the audio data, and performing background noise cleaning processing on the audio data after the downsampling operation;
[0014] The video data is segmented and the distorted video segments in the segmented video data are cleaned.
[0015] Optionally, the step of generating a key pair of quantum watermark information corresponding to the business data by using a preset public key cryptography algorithm includes:
[0016] Randomly generate a first prime number, a second prime number and a target integer using a preset public key cryptography algorithm;
[0017] Multiplying the first prime number and the second prime number to obtain a prime number product value;
[0018] Generate an Euler function according to the first prime number, the second prime number and the prime number product value;
[0019] When the target integer is less than the function value of the Euler function and greater than a preset target threshold, calculating the modular inverse element of the target integer;
[0020] Combining the prime product value and the target integer into a public key, and combining the prime product value and the modular inverse element into a private key;
[0021] The public key and the private key are used as a key pair for the quantum watermark information corresponding to the business data.
[0022] Optionally, encrypting the quantum watermark information by using the key to obtain quantum watermark ciphertext includes:
[0023] Converting the quantum watermark information into a byte sequence;
[0024] Performing character padding on the byte sequence;
[0025] The padded byte sequence is encrypted according to the public key in the key pair to obtain the quantum watermark ciphertext, where the encryption formula is:
[0026] C=m e mod n
[0027] Among them, C is the quantum watermark ciphertext, m is the padded byte sequence, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
[0028] Optionally, embedding the quantum watermark ciphertext into the business data after data cleaning processing includes:
[0029] When the business data after data cleaning processing is image data, obtaining pixel points corresponding to the image data, selecting hidden pixel points among the pixel points, merging the hidden pixel points into a hidden pixel domain, and embedding the quantum watermark ciphertext into the hidden pixel domain;
[0030] When the business data after data cleaning processing is audio data, obtaining frequency domain features corresponding to the audio data, selecting a target energy spectrum of the audio data according to the frequency domain features, and embedding the quantum watermark ciphertext into the target energy spectrum;
[0031] When the business data after data cleaning processing is video data, the video frame corresponding to the video data is obtained, the hidden video frame in the video frame is selected, the hidden video frame is merged into a hidden video domain, and the quantum watermark ciphertext is embedded in the hidden video domain.
[0032] Optionally, performing ownership verification on the business data embedded with quantum watermark ciphertext after being copied or uploaded to an external network to obtain data ownership of the business data includes:
[0033] Extracting the quantum watermark ciphertext from the business data after the quantum watermark ciphertext is embedded, and decrypting the quantum watermark ciphertext.
[0034] Comparing the decrypted quantum watermark information with the quantum watermark information corresponding to the business data;
[0035] When the watermark information is consistent, extract the publishing information of the business data embedded with the quantum watermark ciphertext on the business platform;
[0036] Extracting the publishing address and publishing account from the publishing information;
[0037] Trace the data ownership of the business data based on the publishing address and the publishing account
[0038] Optionally, extracting the quantum watermark ciphertext from the service data after the quantum watermark ciphertext is embedded includes:
[0039] Extracting the watermark hidden position in the business data;
[0040] Comparing the hidden position of the watermark with the preset hidden position of the original watermark;
[0041] When the positions are compared and consistent, the quantum watermark ciphertext in the business data is extracted according to the watermark hidden position.
[0042] Optionally, the decrypting of the quantum watermark ciphertext includes:
[0043] Identifying padding bits in the quantum watermark ciphertext;
[0044] Delete the padding bits in the identified quantum watermark ciphertext;
[0045] The quantum watermark ciphertext after the padding bits are deleted is decrypted by the private key in the key pair, wherein the decryption formula is:
[0046] M=C d mod n
[0047] Among them, M is the decrypted quantum watermark information, C is the quantum watermark ciphertext, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
[0048] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0049] at least one processor; and,
[0050] a memory communicatively connected to the at least one processor; wherein,
[0051] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned data ownership verification method based on quantum watermark.
[0052] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned data ownership verification method based on quantum watermark.
[0053] The embodiment of the present invention generates quantum watermark information through a public key cryptography algorithm to ensure the security and uniqueness of the watermark; embeds the quantum watermark information in digital data, has high robustness, and can resist multiple attacks; through the watermark extraction and verification algorithm, it can realize the ownership verification and identity recognition of the data to ensure the integrity of the data. Therefore, the data ownership verification method, device and medium based on quantum watermark proposed by the present invention can solve the problem of low accuracy when verifying data ownership. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A schematic diagram of a flow chart of a data ownership verification method based on quantum watermarking provided in one embodiment of the present invention;
[0055] Figure 2A schematic diagram of a process for encrypting quantum watermark information provided by an embodiment of the present invention;
[0056] Figure 3 A schematic diagram of a process for embedding a quantum watermark ciphertext provided by an embodiment of the present invention;
[0057] Figure 4 A schematic diagram of the structure of an electronic device for implementing the data ownership verification method based on quantum watermarking provided by an embodiment of the present invention.
[0058] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0060] The embodiment of the present application provides a data ownership verification method based on quantum watermark. The execution subject of the data ownership verification method based on quantum watermark includes but is not limited to at least one of the electronic devices such as the server, the terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the data ownership verification method based on quantum watermark can be executed by software or hardware installed on the terminal device or the server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
[0061] Reference Figure 1 FIG. 1 is a flow chart of a data ownership verification method based on quantum watermarking according to an embodiment of the present invention. In this embodiment, the data ownership verification method based on quantum watermarking includes:
[0062] S1. Scan the preset business data according to the preset regular scanning time, and perform data cleaning processing on the scanned business data.
[0063] In an embodiment of the present invention, the business data refers to data collected from different data sources, such as images, audio, video, etc., for example, a supplier's business license, a designer's design image, etc., wherein the scanning time and scanning frequency based on the business data can be a specific time of day, a certain day of the week, or even executed at regular intervals. The scanning task is executed regularly through programming languages such as Python, Java, and Shell scripts, combined with scheduled tasks (such as cron), so as to realize the scanning operation of business data.
[0064] Furthermore, in order to prepare for the subsequent embedding of watermark information into business data, it is necessary to perform data preprocessing and cleaning on the business data collected from different data sources to prepare for the subsequent watermark embedding.
[0065] In the embodiment of the present invention, the data cleaning process of the scanned business data includes:
[0066] Dividing the scanned business data into image data, audio data and video data;
[0067] Performing denoising processing on the image data, performing data enhancement processing on the denoised image data, and performing noise point cleaning processing on the data enhanced image data;
[0068] Performing a downsampling operation on the audio data, and performing background noise cleaning processing on the audio data after the downsampling operation;
[0069] The video data is segmented and the distorted video segments in the segmented video data are cleaned.
[0070] In detail, the business data includes image data, audio data and video data, and data preprocessing and data cleaning operations need to be performed on the image data, audio data and video data respectively. The image data can be denoised by a denoising algorithm, wherein the denoising algorithm includes but is not limited to mean filtering, median filtering, and wavelet denoising. The quality and features of the denoised image data are then enhanced. The data enhancement processing includes adjusting the image contrast, increasing the sharpness, and enhancing the color. After the image data is enhanced, there will be some noise or abnormal pixels, and the image noise is cleaned through threshold processing or morphological operations.
[0071] Specifically, for audio data, the sampling rate of the audio data should be lowered, which can reduce the data volume and simplify processing; the background noise in the audio data after the downsampling operation is removed through a noise reduction algorithm, where the noise reduction algorithm includes but is not limited to spectral subtraction and adaptive filtering; for video data, the video data is first divided into small segments so that each small segment can be processed separately, and the distorted video segments are detected and cleaned using a video quality assessment algorithm, such as a motion estimation algorithm, an inter-frame difference method, etc., so as to ensure the cleaning processing of different types of data.
[0072] Furthermore, in order to ensure the security and uniqueness of the watermark, the quantum watermark information needs to be encrypted and analyzed.
[0073] S2. Generate a key pair of the quantum watermark information corresponding to the business data using a preset public key cryptography algorithm, and encrypt the quantum watermark information using the key to obtain a quantum watermark ciphertext.
[0074] In the embodiment of the present invention, the key pair of the quantum watermark information refers to a public key and a private key, which are used to embed and extract the quantum watermark information. The public key is one of the keys used to embed the watermark, which contains some public parameters, usually including a prime number product value and a specific integer. The public key can be publicly transmitted to users or systems that need to verify the watermark; the private key is another key paired with the public key, which is used to extract the watermark information. The private key should be confidential and can only be accessed by authorized users or systems. The private key usually contains a prime number product value and a modular inverse element related to a specific integer in the public key.
[0075] In the embodiment of the present invention, the step of using a preset public key cryptography algorithm to generate a key pair of quantum watermark information corresponding to the service data includes:
[0076] Randomly generate a first prime number, a second prime number and a target integer using a preset public key cryptography algorithm;
[0077] Multiplying the first prime number and the second prime number to obtain a prime number product value;
[0078] Generate an Euler function according to the first prime number, the second prime number and the prime number product value;
[0079] When the target integer is less than the function value of the Euler function and greater than a preset target threshold, calculating the modular inverse element of the target integer;
[0080] Combining the prime product value and the target integer into a public key, and combining the prime product value and the modular inverse element into a private key;
[0081] The public key and the private key are used as a key pair for the quantum watermark information corresponding to the business data.
[0082] Specifically, the preset public key cryptography algorithm refers to the RSA algorithm (asymmetric encryption algorithm). Based on the RSA algorithm, two large prime numbers are randomly generated, namely the first prime number p and the second prime number q. Then, the product value of the prime numbers n = p × q is calculated, and the Euler's totient function is calculated. And a target integer e is randomly selected, satisfying and e is relatively prime to and the modular multiplicative inverse d of e is calculated, such that Thus, (n, e) is used as the public key, (n, d) is used as the private key, and the generated public key and private key are used as the key pair of the quantum watermark information corresponding to the service data. In addition, according to security requirements and performance requirements, an appropriate key length needs to be selected. Generally speaking, the RSA key length should be at least 2048 bits, while the SM2 key length is usually 256 bits.
[0083] Specifically, the preset public key cryptography algorithm may also include the SM2 algorithm (elliptic curve public key cryptography algorithm), that is, to generate an SM2 key pair, a random number k is selected, satisfying 1 < k < n, where n is one of the parameters of SM2, and the point k on the elliptic curve is calculated G , where G is the base point of SM2, and the x coordinate of the point k G is used as part of the public key, and the private key is the random number k, thus obtaining a key pair composed of the public key and the private key.
[0084] Furthermore, in order to generate unique quantum watermark information, it is necessary to use the generated key pair of the quantum watermark to encrypt the watermark information to ensure the security and uniqueness of the watermark.
[0085] In the embodiments of the present invention, the quantum watermark ciphertext refers to the ciphertext form of the quantum watermark information after being processed by an encryption algorithm. During the encryption process, the original quantum watermark information is padded and encrypted using the public key, and finally a piece of ciphertext is obtained. This piece of ciphertext is the quantum watermark ciphertext. The quantum watermark ciphertext is protected, and only users or systems holding the corresponding private key can decrypt it to obtain the original quantum watermark information.
[0086] In the embodiments of the present invention, referring to Figure 2 as shown, the encryption of the quantum watermark information using the key pair to obtain the quantum watermark ciphertext includes:
[0087] S21. Convert the quantum watermark information into a byte sequence;
[0088] S22. Perform character padding on the byte sequence;
[0089] S23. Encrypt the padded byte sequence according to the public key in the key pair to obtain the quantum watermark ciphertext, where the encryption formula is:
[0090] C=m e mod n
[0091] Among them, C is the quantum watermark ciphertext, m is the padded byte sequence, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
[0092] In detail, the quantum watermark information is converted into a byte sequence according to certain encoding rules. If the quantum watermark information is in text form, the text can be converted into a byte sequence through UTF-8 or other character encodings; if the quantum watermark information is in image form, the pixel data in the image file can be directly converted into a byte sequence; if the quantum watermark information is in audio form, the audio sampling data in the audio file can be converted into a byte sequence.
[0093] Specifically, after conversion to a byte sequence, in order to ensure the security of encryption, the byte sequence needs to be padded with characters, that is, during encryption, the original data can be combined with randomly generated padding bits through OAEP (Optimal Asymmetric Encryption Padding) padding, and then encrypted. OAEP padding randomly generates a padding string whose length matches the number of bits output by the hash function. The padding string is XORed with the original data to obtain the padded data, which can provide more security protection. The padded byte sequence is then encrypted through the encryption formula in the RSA algorithm to obtain the quantum watermark ciphertext.
[0094] Furthermore, in order to realize data ownership verification and identity recognition, the generated quantum watermark information needs to be embedded into the digital data.
[0095] S3. Embed the quantum watermark ciphertext into the business data after data cleaning processing.
[0096] In the embodiment of the present invention, the quantum watermark ciphertext is embedded into the business data. During the embedding process, the confidentiality of the watermark information needs to be ensured to prevent unauthorized deletion or modification, enhance data security, and reduce the risk of data leakage and improper use.
[0097] In the embodiment of the present invention, referring to Figure 3 As shown, embedding the quantum watermark ciphertext into the business data after data cleaning processing includes:
[0098] S31. When the business data after data cleaning is image data, obtain pixel points corresponding to the image data, select hidden pixel points among the pixel points, merge the hidden pixel points into a hidden pixel domain, and embed the quantum watermark ciphertext into the hidden pixel domain;
[0099] S32. When the service data after data cleaning is audio data, obtain frequency domain features corresponding to the audio data, select a target energy spectrum of the audio data according to the frequency domain features, and embed the quantum watermark ciphertext into the target energy spectrum;
[0100] S33. When the business data after data cleaning processing is video data, obtain the video frame corresponding to the video data, select the hidden video frame in the video frame, merge the hidden video frames into a hidden video domain, and embed the quantum watermark ciphertext into the hidden video domain.
[0101] In detail, when the business data corresponds to image data, it is necessary to extract the pixel points corresponding to the image data, select the pixel points that are considered unobservable from all the pixel points, that is, the hidden pixel point domain that is unknown and imperceptible to non-professionals, and embed the quantum watermark ciphertext into the area corresponding to the hidden pixel domain; when the business data corresponds to audio data, the audio data is converted to the frequency domain through Fourier transform, and the target spectrum is selected according to the preset frequency domain characteristics. The target spectrum is located in the low energy area of the audio signal, and the quantum watermark ciphertext is embedded in the selected target spectrum. Information can be embedded by fine-tuning the amplitude or phase of the spectrum; when the business data corresponds to video data, the video frame corresponding to the video data is extracted, and the video frame that is not perceived by non-professionals in the video frame is used as a hidden video frame, and the quantum watermark ciphertext is embedded in the selected hidden video frame. Information can be embedded by modifying the pixel value or motion vector of the video frame, so that the quantum watermark can be embedded in the data without affecting the quality of the original data, and can be designed to be imperceptible, so as not to affect the user's perception of the data.
[0102] For example, specific pixels in an image cannot be observed by humans, so the generated quantum watermark information is embedded in these specific pixels; and the video also has some specific video frames, and the quantum level information is embedded in the specific video frames; if there is a hidden domain in the PDF file, which is unknown and imperceptible to non-professionals, the quantum watermark ciphertext is embedded in the hidden domain.
[0103] Furthermore, digital data embedded with quantum watermarks can be transmitted over the Internet or published on various media platforms for use by recipients or users in need.
[0104] S4. When the business data embedded in the quantum watermark ciphertext needs to be copied or uploaded to an external network, the business data embedded in the quantum watermark ciphertext after being copied or uploaded to the external network is verified to obtain the data ownership of the business data.
[0105] In an embodiment of the present invention, digital data embedded with a quantum watermark is transmitted through a network or published on the Internet. The watermark information is transmitted or published together with the business data. The source and propagation path of the data can be traced through the watermark information, which helps to identify and track the legitimacy and ownership of the data, and can be used to verify the integrity of the data to ensure that the data has not been tampered with or damaged during the transmission or publication process.
[0106] Furthermore, when the business data needs to be copied or uploaded to an external network, that is, the user wants to obtain the business data, before obtaining the business data, it is necessary to extract the quantum watermark ciphertext embedded in the business data to ensure the integrity and security of the business data transmission.
[0107] In the embodiment of the present invention, the data ownership refers to the ownership or control of business data. In the digital age, data has become a very valuable asset, and owning the data means having control over the management, use and sharing of the data.
[0108] In the embodiment of the present invention, the ownership verification is performed on the business data embedded with the quantum watermark ciphertext after being copied or uploaded to the external network to obtain the data ownership of the business data, including:
[0109] Extracting the quantum watermark ciphertext from the business data after the quantum watermark ciphertext is embedded, and decrypting the quantum watermark ciphertext.
[0110] Comparing the decrypted quantum watermark information with the quantum watermark information corresponding to the business data;
[0111] When the watermark information is consistent, extract the publishing information of the business data embedded with the quantum watermark ciphertext on the business platform;
[0112] Extracting the publishing address and publishing account from the publishing information;
[0113] The data ownership of the business data is traced back according to the publishing address and the publishing account.
[0114] In detail, before determining the data ownership of the business data, it is necessary to extract the quantum watermark ciphertext hidden in the business data in order to determine the specific location of the quantum watermark ciphertext.
[0115] In the embodiment of the present invention, the step of extracting the quantum watermark ciphertext from the service data after the quantum watermark ciphertext is embedded includes:
[0116] Extracting the watermark hidden position in the business data;
[0117] Comparing the hidden position of the watermark with the preset hidden position of the original watermark;
[0118] When the positions are compared and consistent, the quantum watermark ciphertext in the business data is extracted according to the watermark hidden position.
[0119] In detail, based on the business data receiving request, it is necessary to extract the watermark hidden position corresponding to the quantum watermark ciphertext embedded in the business data, such as a specific pixel area in an image, a specific frequency range in audio, a specific character sequence in text, etc.; then compare the extracted watermark hidden position with the position information determined when the watermark is embedded, that is, the coordinates of the position can be compared to verify whether the position information is consistent. When the identified watermark hidden position is consistent with the preset original watermark hidden position, the existence and position of the watermark are confirmed. According to the indication of the watermark hidden position, the quantum watermark ciphertext is extracted from the business data, and the extracted quantum watermark ciphertext or related information is returned to the requester to meet its business needs.
[0120] Specifically, the watermark information is extracted from the received picture with the watermark, that is, through extracted_watermark_with_signature=Extract(watermarked_image), wherein Extract() is a function for extracting the watermark information, thereby extracting the quantum watermark ciphertext embedded in the service data on the service platform.
[0121] Furthermore, when extracting the quantum watermark information embedded in the business data, the corresponding private key is needed to decrypt the watermark information to realize the ownership verification and identity identification of the data. That is, authorized access to the quantum watermark information can be achieved through the key pair. Only users holding the correct key can successfully decrypt the watermark, which can effectively control the scope and authority of data use, and can be used to verify the integrity of the watermark. If the watermark ciphertext is tampered with or damaged, the decryption process will fail.
[0122] In the embodiment of the present invention, the decrypting of the quantum watermark ciphertext includes:
[0123] Identifying padding bits in the quantum watermark ciphertext;
[0124] Delete the padding bits in the identified quantum watermark ciphertext;
[0125] The quantum watermark ciphertext after the padding bits are deleted is decrypted by the private key in the key pair, wherein the decryption formula is:
[0126] M=C d mod n
[0127] Among them, M is the decrypted quantum watermark information, C is the quantum watermark ciphertext, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
[0128] In detail, during decryption, the padding bits need to be identified and removed, and then the original data is restored, that is, the padding bits are identified through OAEP (Optimal Asymmetric Encryption Padding). Once the padding bits are identified, they can be deleted from the quantum watermark ciphertext. After deleting the padding bits, the ciphertext will become closer to the original form before encryption. After the padding bits are deleted, the decryption exponent d and modulus n contained in the private key can be used to decrypt the ciphertext, thereby extracting the quantum watermark information, which can ensure the integrity and confidentiality of the information while protecting the watermark from unauthorized access.
[0129] Specifically, the watermark information is decrypted using the corresponding private key, and verification and identity identification are performed to ensure the integrity and credibility of the data. The decrypted quantum watermark information is compared with the quantum watermark information corresponding to the business data. If the two are consistent, it means that the watermark verification is successful. In the case of successful watermark verification, the publishing information of the business data embedded with the quantum watermark ciphertext on the business platform is extracted. The publishing information includes the publishing address and publishing account. The publishing address and publishing account are usually used to identify the source or owner of the data. Then, the data ownership of the business data is determined based on the publishing address and publishing account in the extracted publishing information.
[0130] Furthermore, the signature of the extracted digital watermark is verified using the public key of PKI, is_valid = Verify(public_key, extracted_signature, hash(extracted_digital_watermark)), where Verify() is a function for verifying the signature, public_key is the public key of PKI, extracted_signature is the signature separated from the extracted watermark information, extracted_digital_watermark is the digital watermark separated from the watermark information, and hash() is a hash function.
[0131] Exemplarily, based on the relevant information contained in the watermark information, the source of the data and the identity of the publisher can be identified. The outgoing watermark information can be intercepted through a program, and the account and ID of the publisher in the watermark information can be extracted, and then it can be clearly traced back to the external person, thereby determining the ownership of the business data, thereby ensuring the security of enterprise data asset management.
[0132] The embodiment of the present invention generates quantum watermark information through a public key cryptography algorithm to ensure the security and uniqueness of the watermark; embeds the quantum watermark information in digital data, has high robustness, and can resist multiple attacks; through the watermark extraction and verification algorithm, it can realize the ownership verification and identity recognition of the data to ensure the integrity of the data. Therefore, the data ownership verification method, device and medium based on quantum watermark proposed by the present invention can solve the problem of low accuracy when verifying data ownership.
[0133] like Figure 4 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a data ownership verification method based on quantum watermarking according to an embodiment of the present invention.
[0134] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a data ownership verification program based on quantum watermarking.
[0135] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a data ownership verification program based on quantum watermarking, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0136] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the data ownership verification program based on quantum watermarking, but also can be used to temporarily store data that has been output or is to be output.
[0137] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0138] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0139] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0140] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0141] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0142] The data ownership verification program based on quantum watermarking stored in the memory 11 in the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0143] Scan the preset business data according to the preset regular scanning time, and perform data cleaning on the scanned business data;
[0144] Generate a key pair of the quantum watermark information corresponding to the business data using a preset public key cryptography algorithm, and encrypt the quantum watermark information using the key to obtain a quantum watermark ciphertext;
[0145] Embedding the quantum watermark ciphertext into the business data after data cleaning processing;
[0146] When the business data embedded in the quantum watermark ciphertext needs to be copied or uploaded to an external network, the business data embedded in the quantum watermark ciphertext after being copied or uploaded to the external network is verified to obtain the data ownership of the business data.
[0147] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0148] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0149] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0150] Scan the preset business data according to the preset regular scanning time, and perform data cleaning on the scanned business data;
[0151] Generate a key pair of the quantum watermark information corresponding to the business data using a preset public key cryptography algorithm, and encrypt the quantum watermark information using the key to obtain a quantum watermark ciphertext;
[0152] Embedding the quantum watermark ciphertext into the business data after data cleaning processing;
[0153] When the business data embedded in the quantum watermark ciphertext needs to be copied or uploaded to an external network, the business data embedded in the quantum watermark ciphertext after being copied or uploaded to the external network is verified to obtain the data ownership of the business data.
[0154] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, media and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0155] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0156] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0157] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0158] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0159] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0160] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0161] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A data ownership verification method based on quantum watermarking, It is characterized in that The method comprises: Scan the preset business data according to the preset regular scanning time, and perform data cleaning on the scanned business data; Generate a key pair of the quantum watermark information corresponding to the business data using a preset public key cryptography algorithm, and encrypt the quantum watermark information using the key to obtain a quantum watermark ciphertext; Embedding the quantum watermark ciphertext into the business data after data cleaning processing; When the business data embedded in the quantum watermark ciphertext needs to be copied or uploaded to an external network, the business data embedded in the quantum watermark ciphertext after being copied or uploaded to the external network is verified to obtain the data ownership of the business data.
2. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The scanned business data is cleaned, including: Dividing the scanned business data into image data, audio data and video data; Performing denoising processing on the image data, performing data enhancement processing on the denoised image data, and performing noise point cleaning processing on the data enhanced image data; Performing a downsampling operation on the audio data, and performing background noise cleaning processing on the audio data after the downsampling operation; The video data is segmented and the distorted video segments in the segmented video data are cleaned.
3. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The method of using a preset public key cryptography algorithm to generate a key pair of quantum watermark information corresponding to the business data includes: Randomly generate a first prime number, a second prime number and a target integer using a preset public key cryptography algorithm; Multiplying the first prime number and the second prime number to obtain a prime number product value; Generate an Euler function according to the first prime number, the second prime number and the prime number product value; When the target integer is less than the function value of the Euler function and greater than a preset target threshold, calculating the modular inverse element of the target integer; Combining the prime product value and the target integer into a public key, and combining the prime product value and the modular inverse element into a private key; The public key and the private key are used as a key pair for the quantum watermark information corresponding to the business data.
4. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The step of encrypting the quantum watermark information by using the key to obtain a quantum watermark ciphertext comprises: Converting the quantum watermark information into a byte sequence; Performing character padding on the byte sequence; The padded byte sequence is encrypted according to the public key in the key pair to obtain the quantum watermark ciphertext, where the encryption formula is: C=m e mod n Among them, C is the quantum watermark ciphertext, m is the padded byte sequence, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
5. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The step of embedding the quantum watermark ciphertext into the business data after data cleaning includes: When the business data after data cleaning processing is image data, obtaining pixel points corresponding to the image data, selecting hidden pixel points among the pixel points, merging the hidden pixel points into a hidden pixel domain, and embedding the quantum watermark ciphertext into the hidden pixel domain; When the business data after data cleaning processing is audio data, obtaining frequency domain features corresponding to the audio data, selecting a target energy spectrum of the audio data according to the frequency domain features, and embedding the quantum watermark ciphertext into the target energy spectrum; When the business data after data cleaning processing is video data, the video frame corresponding to the video data is obtained, the hidden video frame in the video frame is selected, the hidden video frame is merged into a hidden video domain, and the quantum watermark ciphertext is embedded in the hidden video domain.
6. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The attribution verification is performed on the business data embedded with the quantum watermark ciphertext after being copied or uploaded to the external network to obtain the data ownership of the business data, including: Extracting the quantum watermark ciphertext from the business data after the quantum watermark ciphertext is embedded, and decrypting the quantum watermark ciphertext. Comparing the decrypted quantum watermark information with the quantum watermark information corresponding to the business data; When the watermark information is consistent, extract the publishing information of the business data embedded with the quantum watermark ciphertext on the business platform; Extracting the publishing address and publishing account from the publishing information; The data ownership of the business data is traced back according to the publishing address and the publishing account.
7. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The step of extracting the quantum watermark ciphertext from the service data embedded with the quantum watermark ciphertext comprises: Extracting the watermark hidden position in the business data; Comparing the hidden position of the watermark with the preset hidden position of the original watermark; When the positions are compared and consistent, the quantum watermark ciphertext in the business data is extracted according to the watermark hidden position.
8. The data ownership verification method based on quantum watermarking as claimed in claim 1, It is characterized in that The decrypting the quantum watermark ciphertext comprises: Identifying padding bits in the quantum watermark ciphertext; Delete the padding bits in the identified quantum watermark ciphertext; The quantum watermark ciphertext after the padding bits are deleted is decrypted by the private key in the key pair, wherein the decryption formula is: M=C d mod n Among them, M is the decrypted quantum watermark information, C is the quantum watermark ciphertext, e is the target integer in the public key, n is the prime number product value in the public key, and mod is the remainder function.
9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data ownership verification method based on quantum watermark as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the data ownership verification method based on quantum watermarking as described in any one of claims 1 to 8 is implemented.
