CN118171248A - A method, system and device for embedding and extracting digital watermarks - Google Patents
A method, system and device for embedding and extracting digital watermarks Download PDFInfo
- Publication number
- CN118171248A CN118171248A CN202410179233.6A CN202410179233A CN118171248A CN 118171248 A CN118171248 A CN 118171248A CN 202410179233 A CN202410179233 A CN 202410179233A CN 118171248 A CN118171248 A CN 118171248A
- Authority
- CN
- China
- Prior art keywords
- watermark
- file
- identification information
- digital
- verification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000002452 interceptive effect Effects 0.000 claims abstract description 65
- 238000012795 verification Methods 0.000 claims abstract description 56
- 238000000605 extraction Methods 0.000 claims abstract description 41
- 238000004364 calculation method Methods 0.000 claims abstract description 28
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 239000003607 modifier Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/16—Program or content traceability, e.g. by watermarking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Editing Of Facsimile Originals (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种基于非交互式零知识证明的数字水印嵌入、提取的方法、系统和装置,首先,将标识内容作为非交互式零知识证明的知识输入,将输出作为水印嵌入到原始文件末尾;其次,为了保证嵌入水印后文件的完整性,将该文件做一次哈希计算,并对哈希结果进行数字签名,此时数字水印嵌入完成;最后提取数字水印时,先验证数字签名,验签不成功说明文件有改动则可直接返回提取数字水印失败,若验签成功则将文件末尾的水印提取出来,并进行非交互式零知识证明的验证,验证通过则证明标识内容合法,至此真正的水印内容提取完毕。
The present invention discloses a method, system and device for embedding and extracting digital watermarks based on non-interactive zero-knowledge proof. Firstly, identification content is used as knowledge input of non-interactive zero-knowledge proof, and the output is embedded into the end of the original file as a watermark. Secondly, in order to ensure the integrity of the file after the watermark is embedded, a hash calculation is performed on the file, and a digital signature is performed on the hash result, and the embedding of the digital watermark is completed at this time. Finally, when extracting the digital watermark, the digital signature is verified first. If the signature verification fails, it means that the file has been modified, and the extraction of the digital watermark fails. If the signature verification succeeds, the watermark at the end of the file is extracted, and the non-interactive zero-knowledge proof is verified. If the verification passes, it proves that the identification content is legal, and the extraction of the real watermark content is completed.
Description
技术领域Technical Field
本发明涉及数字水印技术领域,尤其涉及一种基于非交互式零知识证明的数字水印嵌入、提取的方法、系统和装置。The present invention relates to the field of digital watermark technology, and in particular to a method, system and device for embedding and extracting digital watermark based on non-interactive zero-knowledge proof.
背景技术Background technique
随着网络技术及多媒体技术的发展,多媒体信息能够更加快速、更广泛的在互联网上传播,这使得信息安全、知识产权保护和身份认证等问题变得突出。为了解决多媒体版权侵犯及非法拷贝等问题,人们在加密和数字水印领域进行了广泛的探索。加密可以保证多媒体文件在供应者和获取密钥的用户之间安全传输,但是用户获取到加密的多媒体文件后,加密算法便不再起作用,用户可将解密出的文件进行拷贝传输,同样可能造成非法拷贝等问题。数字水印能够隐性的将版权信息嵌入在音频、图像、视频等多媒体文件中,不易被普通人察觉,也不易被攻击或去除。因而,数字水印技术在多媒体版权保护中应用更加广泛。With the development of network technology and multimedia technology, multimedia information can be spread more quickly and widely on the Internet, which makes information security, intellectual property protection and identity authentication issues become prominent. In order to solve the problems of multimedia copyright infringement and illegal copying, people have conducted extensive explorations in the fields of encryption and digital watermarking. Encryption can ensure the safe transmission of multimedia files between the supplier and the user who obtains the key, but after the user obtains the encrypted multimedia file, the encryption algorithm will no longer work. The user can copy and transmit the decrypted file, which may also cause problems such as illegal copying. Digital watermarking can implicitly embed copyright information in multimedia files such as audio, images, and videos, which is not easy to be detected by ordinary people, nor easy to be attacked or removed. Therefore, digital watermarking technology is more widely used in multimedia copyright protection.
数字水印,是通过某种算法,在不影响原有多媒体价值及使用的前提下,将标识信息嵌入到多媒体文件中的技术。通过这种方式嵌入的标志往往不会被用户直接察觉,且能承受一定的攻击。数字水印技术可将作者信息、公司标志、文件转接信息等嵌入到原创的多媒体中,以便在发生版权纠纷时作为证据或用于追溯文件转接过程等。Digital watermarking is a technology that uses a certain algorithm to embed identification information into multimedia files without affecting the original multimedia value and use. Logos embedded in this way are often not directly perceived by users and can withstand certain attacks. Digital watermarking technology can embed author information, company logos, file transfer information, etc. into original multimedia so that they can be used as evidence in the event of copyright disputes or to trace the file transfer process.
目前数字水印算法大多将标识信息明文嵌入到多媒体文件中,容易泄露信息,同时也面对剪切攻击、覆盖攻击等。Currently, most digital watermarking algorithms embed identification information in plain text into multimedia files, which is prone to information leakage and is also vulnerable to cutting attacks, overwriting attacks, etc.
发明内容Summary of the invention
本发明为了克服以上技术的不足,提供了一种基于非交互式零知识证明的数字水印嵌入、提取的方法、系统和装置,利用非交互式零知识证明的零知识性、可靠性隐藏标识信息、证明标识信息的正确性,利用数字签名保证嵌入水印文件的完整性抵抗数字水印攻击。In order to overcome the shortcomings of the above technologies, the present invention provides a method, system and device for embedding and extracting digital watermarks based on non-interactive zero-knowledge proof, which utilizes the zero-knowledge and reliability of non-interactive zero-knowledge proof to hide identification information and prove the correctness of identification information, and utilizes digital signatures to ensure the integrity of embedded watermark files and resist digital watermark attacks.
为达到上述目的,本发明的技术方案具体如下:To achieve the above object, the technical solution of the present invention is as follows:
一种基于非交互式零知识证明的数字水印嵌入方法,对文件的各类标识信息做非交互式零知识证明作为水印嵌入到文件末尾,对该文件做哈希计算再做签名,将数字签名和已嵌入水印的文件打包输出。A digital watermark embedding method based on non-interactive zero-knowledge proof is proposed. Non-interactive zero-knowledge proof is performed on various identification information of a file as a watermark and embedded at the end of the file. The file is hashed and signed, and the digital signature and the file with the embedded watermark are packaged and output.
一种基于非交互式零知识证明的数字水印提取方法,对带有水印的文件做哈希计算,并且验证数字签名,如果验签不通过,则说明文件有改动过,不予做数字水印提取;如果验签通过,则对文件进行水印提取。在验签通过后,将嵌入在文件末尾的水印提取出来,进行非交互式零知识证明的验证,验证通过说明标识信息是存在且正确的,可以将标识信息从水印中提取出来;如果验证不通过,则说明标识信息不存在或者是错误的,提取水印失败。A digital watermark extraction method based on non-interactive zero-knowledge proof performs hash calculation on the watermarked file and verifies the digital signature. If the signature verification fails, it means that the file has been modified and the digital watermark extraction is not performed; if the signature verification passes, the watermark is extracted from the file. After the signature verification passes, the watermark embedded at the end of the file is extracted and verified by non-interactive zero-knowledge proof. If the verification passes, it means that the identification information exists and is correct, and the identification information can be extracted from the watermark; if the verification fails, it means that the identification information does not exist or is wrong, and the watermark extraction fails.
一种基于非交互式零知识证明的数字水印嵌入、提取系统,其包括,A digital watermark embedding and extraction system based on non-interactive zero-knowledge proof, comprising:
数字水印嵌入接口,用于将标识信息转换为水印嵌入到文件中去,并生成数字签名,最终打包;Digital watermark embedding interface, used to convert identification information into watermarks and embed them into files, generate digital signatures, and finally package them;
数字水印提取接口,用于将打包的嵌入水印的文件提取出水印内容,验签成功后,做非交互式零知识证明的验证,验证通过后将标识信息输出。The digital watermark extraction interface is used to extract the watermark content from the packaged watermarked file. After the signature is successfully verified, a non-interactive zero-knowledge proof is performed, and the identification information is output after the verification is passed.
进一步的,数字水印嵌入接口包括:Furthermore, the digital watermark embedding interface includes:
非交互式零知识证明算子,用于对选定的标识信息进行非交互式零知识证明,隐藏标识信息,同时对标识信息的存在和正确性做出证明,非交互式零知识证明的结果作为待插入水印;The non-interactive zero-knowledge proof operator is used to perform non-interactive zero-knowledge proof on the selected identification information, hide the identification information, and prove the existence and correctness of the identification information. The result of the non-interactive zero-knowledge proof is used as the watermark to be inserted;
水印插入文件算子,用于在待嵌入水印的文件末尾插入水印信息;The watermark insert file operator is used to insert watermark information at the end of the file to be embedded with watermark;
HASH算子,用于对嵌入水印的文件进行哈希计算;HASH operator, used to perform hash calculation on the file embedded with the watermark;
数字签名算子,用于对哈希计算的结果进行数字签名。The digital signature operator is used to digitally sign the result of the hash calculation.
进一步的,数字水印提取接口包括:Furthermore, the digital watermark extraction interface includes:
HASH算子,用于对嵌入水印的文件进行哈希计算;HASH operator, used to perform hash calculation on the file embedded with the watermark;
验签算子,用于对哈希计算结果和嵌入水印文件进行验签操作,验签通过后进行水印提取;The signature verification operator is used to verify the hash calculation result and the embedded watermark file, and extract the watermark after the verification is passed;
非交互式零知识证明验证算子,用于对水印信息进行验证,验证通过后将其中标识信息作为输出;The non-interactive zero-knowledge proof verification operator is used to verify the watermark information, and after the verification is passed, the identification information is used as output;
提取标识信息,用于从非交互式零知识证明中提取文件的标识信息。Extract identification information, which is used to extract the identification information of a file from a non-interactive zero-knowledge proof.
一种基于非交互式零知识证明的数字水印嵌入、提取装置,其包括,A digital watermark embedding and extraction device based on non-interactive zero-knowledge proof, comprising:
数字水印嵌入模块,用于将标识信息转换为水印嵌入到文件中去,并生成数字签名,最终打包;The digital watermark embedding module is used to convert the identification information into a watermark and embed it into the file, generate a digital signature, and finally package it;
数字水印提取模块,用于将打包的嵌入水印的文件提取出水印内容,验签成功后,做非交互式零知识证明的验证,验证通过后将标识信息输出。The digital watermark extraction module is used to extract the watermark content from the packaged watermarked file. After the signature is successfully verified, a non-interactive zero-knowledge proof is performed, and the identification information is output after the verification is passed.
进一步的,数字水印嵌入模块包括:Furthermore, the digital watermark embedding module includes:
非交互式零知识证明单元,用于对选定的标识信息进行零知识证明,隐藏标识信息,同时对标识信息的存在和正确性做出证明,非交互式零知识证明的结果作为待插入水印;A non-interactive zero-knowledge proof unit is used to perform zero-knowledge proof on the selected identification information, hide the identification information, and prove the existence and correctness of the identification information. The result of the non-interactive zero-knowledge proof is used as the watermark to be inserted;
水印插入文件单元,用于在待嵌入水印的文件末尾插入水印信息;A watermark insertion file unit is used to insert watermark information at the end of the file to be embedded with watermark;
HASH单元,用于对嵌入水印的文件进行哈希计算;HASH unit, used to perform hash calculation on the file embedded with watermark;
数字签名单元,用于对哈希计算的结果进行数字签名。The digital signature unit is used to digitally sign the result of the hash calculation.
进一步的,数字水印提取模块包括:Furthermore, the digital watermark extraction module includes:
HASH单元,用于对嵌入水印的文件进行哈希计算;HASH unit, used to perform hash calculation on the file embedded with watermark;
验签单元,用于对哈希计算结果和嵌入水印文件进行验签操作,验签通过后进行水印提取;The signature verification unit is used to verify the hash calculation result and the embedded watermark file, and extract the watermark after the signature verification passes;
非交互式零知识证明验证单元,用于对水印信息进行行验证,验证通过后将其中标识信息作为输出;A non-interactive zero-knowledge proof verification unit is used to verify the watermark information and output the identification information after the verification is passed;
提取标识信息单元,用于从非交互式零知识证明中提取文件的标识信息。The identification information extraction unit is used to extract the identification information of the file from the non-interactive zero-knowledge proof.
本发明的有益效果:本发明公开了一种基于非交互式零知识证明的数字水印嵌入、提取的方法、系统和装置,利用非交互式零知识证明的零知识性、可靠性隐藏标识信息、证明标识信息的正确性,利用数字签名保证嵌入水印文件的完整性抵抗数字水印攻击。Beneficial effects of the invention: The invention discloses a method, system and device for embedding and extracting digital watermarks based on non-interactive zero-knowledge proof, which utilizes the zero-knowledge and reliability of non-interactive zero-knowledge proof to hide identification information and prove the correctness of identification information, and utilizes digital signatures to ensure the integrity of embedded watermark files to resist digital watermark attacks.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是一种基于非交互式零知识证明的数字水印嵌入方法流程示意图。FIG1 is a flow chart of a digital watermark embedding method based on non-interactive zero-knowledge proof.
图2是一种基于非交互式零知识证明的数字水印提取方法流程示意图。FIG2 is a flow chart of a digital watermark extraction method based on non-interactive zero-knowledge proof.
图3是一种基于非交互式零知识证明的数字水印嵌入、提取系统结构图。FIG3 is a structural diagram of a digital watermark embedding and extraction system based on non-interactive zero-knowledge proof.
图4是一种基于非交互式零知识证明的数字水印嵌入接口结构图。FIG. 4 is a structural diagram of a digital watermark embedding interface based on non-interactive zero-knowledge proof.
图5是一种基于非交互式零知识证明的数字水印提取接口结构图。FIG. 5 is a structural diagram of a digital watermark extraction interface based on non-interactive zero-knowledge proof.
图6是一种基于非交互式零知识证明的数字水印嵌入、提取装置结构图。FIG6 is a structural diagram of a digital watermark embedding and extraction device based on non-interactive zero-knowledge proof.
图7是一种基于非交互式零知识证明的数字水印嵌入模块结构图。FIG. 7 is a structural diagram of a digital watermark embedding module based on non-interactive zero-knowledge proof.
图8是一种基于非交互式零知识证明的数字水印提取模块结构图。FIG8 is a structural diagram of a digital watermark extraction module based on non-interactive zero-knowledge proof.
具体实施方式Detailed ways
下面结合附图对本发明的较佳实施例进行详细阐述,以使本发明的优点和特征能更易于被本领域技术人员理解,从而对本发明的保护范围做出更为清楚明确的界定。The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.
在本发明的描述中,需要说明的是,本发明所描述的实施例是本发明一部分实施例,而不是全部的实施例;基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In the description of the present invention, it should be noted that the embodiments described in the present invention are only part of the embodiments of the present invention, rather than all of the embodiments; based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present invention.
本文的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本文的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", etc. in the specification and claims of this article and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of this article described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
实施例1Example 1
参考图1,实施一种基于非交互式零知识证明的数字水印嵌入方法包括以下步骤:Referring to FIG1 , a digital watermark embedding method based on non-interactive zero-knowledge proof includes the following steps:
步骤101、确定文件的哪些标识信息需要作为水印内容,如文件的创建者、最后修改人、创建时间、最后修改时间等,将选定的标识信息拼接成字符串/>;Step 101: Confirm the file Which identification information needs to be used as watermark content, such as the creator of the file, the last modifier, the creation time, the last modification time, etc., and the selected identification information is concatenated into a string/> ;
步骤102、将步骤101标识信息字符串作为输入,做非交互式零知识证明,得到。/>作为水印嵌入文件末尾,得到;Step 102: Enter the identification information string of step 101 As input, do non-interactive zero-knowledge proof and get . /> As a watermark embedded at the end of the file, we get ;
步骤103、对嵌入水印的文件做哈希计算,并签名,得到,/>表示哈希计算,/>表示签名函数。Step 103: Embed watermarked files Do the hash calculation and sign to get ,/> Indicates hash calculation, /> Represents a signature function.
步骤104、对嵌入水印的文件和签名/>打包输出/>。Step 104: Embed the watermark file and signature/> Packaging output/> .
实施例2Example 2
参考图2,实施一种基于非交互式零知识证明的数字水印提取方法包括以下步骤:Referring to FIG2 , a digital watermark extraction method based on non-interactive zero-knowledge proof includes the following steps:
步骤201、对嵌入水印的文件做哈希计算,并验证签名表示验证签名函数,若/>,签名验签通过,继续步骤202;若/>,签名验签不通过,返回提取水印失败;Step 201: embed the watermark into the file Do hash calculation and verify signature Represents the signature verification function, if/> , the signature verification is passed, and the process continues to step 202; if/> , the signature verification fails, and the watermark extraction fails;
步骤202、从嵌入水印文件末尾提取水印/>,并验证非交互式零知识证明;/>表示验证非交互式零知识证明计算;Step 202: From the embedded watermark file Extract watermark at the end/> , and verify the non-interactive zero-knowledge proof ; /> Represents verification of non-interactive zero-knowledge proof computation;
步骤203、若,则验证通过,输出/>中的标识信息/>;若/>,验证不通过,返回提取水印失败。Step 203: If , then the verification is passed, output/> Identification information in /> ; If/> , verification fails, and the watermark extraction failure is returned.
实施例3Example 3
图3为一种基于非交互式零知识证明的数字水印嵌入、提取系统结构图,该系统包括:FIG3 is a structure diagram of a digital watermark embedding and extraction system based on non-interactive zero-knowledge proof, the system comprising:
数字水印嵌入接口301,用于将标识信息转换为水印嵌入到文件中去,并生成数字签名,最终打包;Digital watermark embedding interface 301, used to convert identification information into a watermark and embed it into a file, generate a digital signature, and finally package it;
数字水印提取接口302,用于将打包的嵌入水印的文件提取出水印内容,验签成功后,做非交互式零知识证明的验证,验证通过后将标识信息输出;The digital watermark extraction interface 302 is used to extract the watermark content from the packaged watermarked file, perform non-interactive zero-knowledge proof verification after the signature is successfully verified, and output the identification information after the verification is passed;
其中,数字水印嵌入接口的具体结构如图4所示,图4为一种基于非交互式零知识证明的数字水印嵌入接口结构图。The specific structure of the digital watermark embedding interface is shown in FIG4 , which is a structural diagram of a digital watermark embedding interface based on non-interactive zero-knowledge proof.
非交互式零知识证明算子401,用于对选定的标识信息进行零知识证明,隐藏标识信息,同时对标识信息的存在和正确性做出证明;A non-interactive zero-knowledge proof operator 401 is used to perform zero-knowledge proof on the selected identification information, hide the identification information, and prove the existence and correctness of the identification information;
水印插入文件402,用于在待嵌入水印的文件末尾插入水印信息;A watermark insertion file 402 is used to insert watermark information at the end of a file to be embedded with a watermark;
HASH算子403,用于对嵌入水印的文件进行哈希计算;HASH operator 403, used to perform hash calculation on the file embedded with the watermark;
数字签名算子404,用于对哈希计算的结果进行数字签名,保证嵌入水印后的文件的完整性。The digital signature operator 404 is used to digitally sign the result of the hash calculation to ensure the integrity of the file after the watermark is embedded.
其中,数字水印提取接口的具体结构如图5所示,图5为一种基于非交互式零知识证明的数字水印提取接口结构图。The specific structure of the digital watermark extraction interface is shown in FIG5 , which is a structural diagram of a digital watermark extraction interface based on non-interactive zero-knowledge proof.
HASH算子501,用于对嵌入水印的文件进行哈希计算;HASH operator 501, used to perform hash calculation on the file embedded with the watermark;
验签算子502,用于对哈希计算结果和嵌入水印文件进行验签操作,只有验签通过才能说明该文件未被篡改过,可以进行水印提取;The signature verification operator 502 is used to verify the hash calculation result and the embedded watermark file. Only when the signature verification passes can it be said that the file has not been tampered with and the watermark can be extracted;
非交互式零知识证明验证算子503,用于对水印信息进行证明,只有通过证明才能说明标识信息是存在且正确的;The non-interactive zero-knowledge proof verification operator 503 is used to prove the watermark information. Only through proof can it be proved that the identification information exists and is correct.
提取标识信息504,用于从非交互式零知识证明中提取文件的标识信息。Extract identification information 504, which is used to extract identification information of the file from the non-interactive zero-knowledge proof.
实施例4Example 4
图6为一种基于非交互式零知识证明的数字水印嵌入、提取装置结构图,该装置包括:FIG6 is a structural diagram of a digital watermark embedding and extraction device based on non-interactive zero-knowledge proof, the device comprising:
数字水印嵌入模块601,用于将标识信息转换为水印嵌入到文件中去,并生成数字签名,最终打包;The digital watermark embedding module 601 is used to convert the identification information into a watermark and embed it into the file, and generate a digital signature and finally package it;
数字水印提取模块602,用于将打包的嵌入水印的文件提取出水印内容,验签成功后,做非交互式零知识证明的验证,验证通过后将标识信息输出;The digital watermark extraction module 602 is used to extract the watermark content from the packaged watermarked file, perform non-interactive zero-knowledge proof verification after the signature is successfully verified, and output the identification information after the verification is passed;
其中,数字水印嵌入模块的具体结构如图7所示,图7为一种基于非交互式零知识证明的数字水印嵌入模块结构图。The specific structure of the digital watermark embedding module is shown in FIG7 , which is a structural diagram of a digital watermark embedding module based on non-interactive zero-knowledge proof.
非交互式零知识证明单元701,用于对选定的标识信息进行零知识证明,隐藏标识信息,同时对标识信息的存在和正确性做出证明;A non-interactive zero-knowledge proof unit 701 is used to perform zero-knowledge proof on the selected identification information, hide the identification information, and prove the existence and correctness of the identification information;
水印插入文件702,用于在待嵌入水印的文件末尾插入水印信息;A watermark insertion file 702 is used to insert watermark information at the end of a file to be embedded with a watermark;
HASH单元703,用于对嵌入水印的文件进行哈希计算;HASH unit 703, used for performing hash calculation on the file embedded with the watermark;
数字签名单元704,用于对哈希计算的结果进行数字签名,保证嵌入水印后的文件的完整性。The digital signature unit 704 is used to digitally sign the result of the hash calculation to ensure the integrity of the file after the watermark is embedded.
其中,数字水印提取模块的具体结构如图8所示,图8为一种基于非交互式零知识证明的数字水印提取模块结构图。The specific structure of the digital watermark extraction module is shown in FIG8 , which is a structural diagram of a digital watermark extraction module based on non-interactive zero-knowledge proof.
HASH单元801,用于对嵌入水印的文件进行哈希计算;HASH unit 801, used for performing hash calculation on the file embedded with the watermark;
验签单元802,用于对哈希计算结果和嵌入水印文件进行验签操作,只有验签通过才能说明该文件未被篡改过,可以进行水印提取;The signature verification unit 802 is used to verify the hash calculation result and the embedded watermark file. Only when the signature verification passes can it be said that the file has not been tampered with and the watermark can be extracted;
非交互式零知识证明验证单元803,用于对水印信息进行证明,只有通过证明才能说明标识信息是存在且正确的;The non-interactive zero-knowledge proof verification unit 803 is used to prove the watermark information. Only through proof can it be proved that the identification information exists and is correct.
提取标识信息804,用于从非交互式零知识证明中提取文件的标识信息。Extract identification information 804, which is used to extract identification information of the file from the non-interactive zero-knowledge proof.
还应理解,在本文实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A 和/或B,可以表示:单独存在A,同时存在A 和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should also be understood that in the embodiments of this document, the term "and/or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this document generally indicates that the associated objects before and after are in an "or" relationship.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本文的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this article.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本文所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided herein, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本文实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the embodiments of this article.
另外,在本文各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of this invention may be integrated into one processing unit, or 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 software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本文的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本文各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U 盘、移动硬盘、只读存储器(ROM,Read- OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit 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. Based on this understanding, the technical solution of this article is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of this article. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410179233.6A CN118171248A (en) | 2024-02-18 | 2024-02-18 | A method, system and device for embedding and extracting digital watermarks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410179233.6A CN118171248A (en) | 2024-02-18 | 2024-02-18 | A method, system and device for embedding and extracting digital watermarks |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118171248A true CN118171248A (en) | 2024-06-11 |
Family
ID=91349644
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410179233.6A Pending CN118171248A (en) | 2024-02-18 | 2024-02-18 | A method, system and device for embedding and extracting digital watermarks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118171248A (en) |
-
2024
- 2024-02-18 CN CN202410179233.6A patent/CN118171248A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10755252B1 (en) | Identifying copyrighted material using embedded copyright information | |
Celik et al. | Lossless watermarking for image authentication: a new framework and an implementation | |
EP3673455B1 (en) | Identifying copyrighted material using embedded copyright information | |
US11036834B2 (en) | Identifying copyrighted material using embedded timestamped copyright information | |
EP3662637B1 (en) | Identifying copyrighted material using embedded copyright information | |
Adelsbach et al. | Proving ownership of digital content | |
US20050172130A1 (en) | Watermarking a digital object with a digital signature | |
US20100104129A1 (en) | Embedding and detecting watermarks | |
US20040202324A1 (en) | Program electronic watermark processing apparatus | |
US20080229099A1 (en) | Method for generating standard file based on steganography technology and apparatus and method for validating integrity of metadata in the standard file | |
CN103678960B (en) | Method and device for adding digital copyright information to data file | |
JP2004507938A (en) | Digital watermarking for multimedia data | |
CN110869927A (en) | Copyright protection based on hidden copyright information | |
CN111183423A (en) | Identifying copyrighted material using copyright information embedded in an electronic file | |
EP3673453B1 (en) | Identifying copyrighted material using copyright information embedded in tables | |
CN110727927A (en) | Digital product protection system and method based on blockchain technology | |
CN102622545A (en) | Picture file tracking method | |
CN110809762A (en) | Identifying copyrighted material using embedded copyright information | |
CN106126982A (en) | A kind of PDF document copy-right protection method based on digital finger-print | |
CN102968596A (en) | Delete marker-based office open xml (OOX) document digital watermarking method | |
Craver et al. | Copyright protection protocols based on asymmetric watermarking: The ticket concept | |
CN118364485A (en) | Method and related products for embedding and extracting watermarks from data tables | |
CN118171248A (en) | A method, system and device for embedding and extracting digital watermarks | |
CN102855425A (en) | Electronic evidence preservation method based on threshold digital signature | |
Li et al. | Security issues in watermarking applications-A deeper look |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |