[go: up one dir, main page]

CN115484353A - Processing method, electronic device and storage medium applicable to watermarked pictures - Google Patents

Processing method, electronic device and storage medium applicable to watermarked pictures Download PDF

Info

Publication number
CN115484353A
CN115484353A CN202110668509.3A CN202110668509A CN115484353A CN 115484353 A CN115484353 A CN 115484353A CN 202110668509 A CN202110668509 A CN 202110668509A CN 115484353 A CN115484353 A CN 115484353A
Authority
CN
China
Prior art keywords
original image
watermark
end server
symmetric key
key
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
Application number
CN202110668509.3A
Other languages
Chinese (zh)
Inventor
周卫星
陈思
张帆
张晶晶
杨奇民
辛艳双
李凤仪
刘敏
周涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110668509.3A priority Critical patent/CN115484353A/en
Publication of CN115484353A publication Critical patent/CN115484353A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/32Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
    • H04N1/32101Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title
    • H04N1/32144Display, printing, storage or transmission of additional information, e.g. ID code, date and time or title embedded in the image data, i.e. enclosed or integrated in the image, e.g. watermark, super-imposed logo or stamp
    • H04N1/32149Methods relating to embedding, encoding, decoding, detection or retrieval operations
    • H04N1/32267Methods relating to embedding, encoding, decoding, detection or retrieval operations combined with processing of the image
    • H04N1/32272Encryption or ciphering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/045Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply hybrid encryption, i.e. combination of symmetric and asymmetric encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/44Secrecy systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a processing method, a device, electronic equipment and a storage medium suitable for a watermark picture, wherein the method comprises the following steps: the back-end server encrypts the original image by adopting a symmetric key and encrypts the symmetric key by adopting an asymmetric key; sending the encrypted original image, the encrypted symmetric key, the encrypted watermark text information and the identification information of the original image to a front-end server so that the front-end server adds a watermark to the decrypted original image according to the watermark text information; the watermark text information is information required by adding the watermark in the process of accessing the original image by the front-end server. According to the processing method, device, electronic equipment and storage medium suitable for the watermark picture, the original picture is safely transmitted based on the asymmetric key and the symmetric key, and the front-end server performs watermark adding on the original picture, so that illegal personnel are prevented from acquiring picture information through packet capture, the safety of data processing is improved, the traceable watermark information is quickly realized, and the processing pressure at the back end is reduced.

Description

适用于水印图片的处理方法、电子设备及存储介质Processing method, electronic device and storage medium applicable to watermarked pictures

技术领域technical field

本发明涉及信息处理技术领域,尤其涉及一种适用于水印图片的处理方法、电子设备及存储介质。The invention relates to the technical field of information processing, in particular to a processing method suitable for watermark pictures, electronic equipment and storage media.

背景技术Background technique

多媒体会议系统中通常需要为参会人员提供材料图片的批注功能,以满足参会人员对会议过程信息的反馈和记录需要,同时为保证会议共享材料的保密性和安全性,常常需要对会议材料的图片添对应预览人的加水印信息,以限制材料的传播范围,保障泄密信息可溯源,即可通过图片中的水印信息追踪到泄密者。目前在基于前后端分离技术实现的多媒体会议系统中的水印和批注处理中,后端添加水印/批注方式的缺点是数据处理量大,耗时较长,无法满足文件图片即时共享预览的效果,此外对存储空间占用较多,同时采用的是在前次合成图片的基础上追加批注再次合成的处理方式,对历史编辑的批注信息无法去除;而前端添加水印/批注方式存在的缺点是存在数据安全风险,后端直接将未经水印处理的原图通过网络传输给前端,不法人员可通过抓包解析数据,获取原图,造成数据泄密,且无法对泄密信息溯源。In the multimedia conference system, it is usually necessary to provide participants with the annotation function of material pictures to meet the feedback and recording needs of the participants on the meeting process information. At the same time, in order to ensure the confidentiality and security of the meeting shared materials, it is often necessary Add the watermark information corresponding to the previewer to the picture to limit the spread of the material and ensure the traceability of the leaked information, so that the leaker can be traced through the watermark information in the picture. At present, in the watermark and annotation processing in the multimedia conference system based on the front-end and back-end separation technology, the disadvantage of the back-end watermark/annotation method is that the amount of data processing is large, and it takes a long time, which cannot meet the effect of instant sharing and preview of files and pictures. In addition, it takes up a lot of storage space, and at the same time, it adopts the processing method of adding annotations and recombining on the basis of the previous composite image, and the annotation information of historical editing cannot be removed; the disadvantage of adding watermark/annotation at the front end is that there is data Security risk. The backend directly transmits the original image without watermark processing to the frontend through the network. Unscrupulous personnel can analyze the data through packet capture to obtain the original image, resulting in data leakage, and cannot trace the source of the leaked information.

发明内容Contents of the invention

针对现有技术存在的问题,本发明提供一种适用于水印图片的处理方法、电子设备及存储介质。Aiming at the problems existing in the prior art, the present invention provides a processing method, electronic equipment and storage medium suitable for watermark pictures.

第一方面,本发明提供一种适用于水印图片的处理方法,包括:In a first aspect, the present invention provides a processing method suitable for watermark pictures, including:

后端服务器采用对称密钥对原图加密,并采用非对称密钥对所述对称密钥加密;The backend server encrypts the original image with a symmetric key, and encrypts the symmetric key with an asymmetric key;

将加密后的原图、加密后的对称密钥和水印文本信息、所述原图的标识信息发送给前端服务器,以使所述前端服务器根据所述水印文本信息对解密后的原图添加水印;其中,所述水印文本信息为所述前端服务器访问所述原图过程中添加水印所需的信息。Send the encrypted original image, encrypted symmetric key, watermark text information, and identification information of the original image to the front-end server, so that the front-end server adds a watermark to the decrypted original image according to the watermark text information ; Wherein, the watermark text information is the information required for the front-end server to add a watermark during the process of accessing the original image.

在一个实施例中,所述采用非对称密钥对所述对称密钥加密,包括:In one embodiment, the encrypting the symmetric key with an asymmetric key includes:

采用非对称密钥中的私钥对所述对称密钥加密。The symmetric key is encrypted using a private key in the asymmetric key.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

接收所述前端服务器发送的请求,所述请求包括所述原图的标识信息;receiving a request sent by the front-end server, where the request includes identification information of the original image;

根据所述原图的标识信息获取所述非对称密钥中的公钥,将所述公钥发送给所述前端服务器,以使所述前端服务器根据所述公钥对加密后的对称密钥进行解密,获得所述对称密钥,并根据所述对称密钥对加密后的原图进行解密,获得原图。Obtain the public key in the asymmetric key according to the identification information of the original image, and send the public key to the front-end server, so that the front-end server pairs the encrypted symmetric key according to the public key Decrypt to obtain the symmetric key, and decrypt the encrypted original image according to the symmetric key to obtain the original image.

第二方面,本发明提供一种适用于水印图片的处理方法,包括:In a second aspect, the present invention provides a processing method suitable for watermark pictures, including:

前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、所述原图的标识信息;其中,所述后端服务器采用对称密钥对原图加密,以及采用非对称密钥对所述对称密钥加密;The front-end server receives the encrypted original image sent by the back-end server, the encrypted symmetric key and watermark text information, and the identification information of the original image; wherein, the back-end server uses the symmetric key to encrypt the original image, and encrypting the symmetric key with an asymmetric key;

根据所述水印文本信息对解密后的原图添加水印;其中,所述水印文本信息为所述前端服务器访问所述原图过程中添加水印所需的信息。Adding a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

在一个实施例中,所述后端服务器采用非对称密钥中的私钥对所述对称密钥加密,相应地,所述方法在根据所述水印文本信息对解密后的原图添加水印之前,还包括对加密的原图进行解密,包括:In one embodiment, the back-end server encrypts the symmetric key with a private key in the asymmetric key, and correspondingly, the method adds the watermark to the decrypted original image according to the watermark text information , which also includes decrypting the encrypted original image, including:

向所述后端服务器发送请求,所述请求包括所述原图的标识信息,以使所述后端服务器根据所述原图的标识信息获取所述非对称密钥中的公钥,将所述公钥发送给所述前端服务器;Sending a request to the back-end server, the request including the identification information of the original image, so that the back-end server obtains the public key in the asymmetric key according to the identification information of the original image, and the The public key is sent to the front-end server;

根据所述公钥对加密后的对称密钥进行解密,获得所述对称密钥,并根据所述对称密钥对加密后的原图进行解密,获得原图。Decrypt the encrypted symmetric key according to the public key to obtain the symmetric key, and decrypt the encrypted original image according to the symmetric key to obtain the original image.

在一个实施例中,根据所述水印文本信息对解密后的原图添加水印,包括:In one embodiment, adding a watermark to the decrypted original image according to the watermark text information includes:

将解密后的原图置为最底图层,作为原图图层;Set the decrypted original image as the bottom layer, as the original image layer;

将所述水印文本信息添加到透明的画布上,生成与所述原图同等大小的水印图层,将所述水印图层与所述原图图层叠加显示。The watermark text information is added to a transparent canvas to generate a watermark layer with the same size as the original image, and the watermark layer and the original image layer are superimposed and displayed.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

将配置的批注数据添加到透明的画布上,生成与所述原图同等大小的批注图层;Add the configured annotation data to the transparent canvas to generate an annotation layer of the same size as the original image;

将所述批注图层位于最上层,水印图层置为中间图层,原图图层置于最底层。The annotation layer is placed on the top layer, the watermark layer is placed on the middle layer, and the original image layer is placed on the bottom layer.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

确定用户再次访问所述原图的触发信息后,根据用户标识和原图标识信息请求批注图层,确定存在批注图层,将原图图层、水印图层、批注图层从底到顶的顺序进行叠加显示。After determining the trigger information for the user to visit the original image again, request the annotation layer according to the user ID and the original image ID information, determine the existence of the annotation layer, and arrange the original image layer, watermark layer, and annotation layer from bottom to top Display overlay.

第三方面,本发明提供一种电子设备,包括存储器和存储有计算机程序的存储器,所述处理器执行所述程序时实现第一方面或第二方面所述适用于水印图片的处理方法的步骤。In a third aspect, the present invention provides an electronic device, including a memory and a memory storing a computer program, and when the processor executes the program, the steps of the processing method applicable to watermarked pictures described in the first aspect or the second aspect are realized .

第四方面,本发明提供一种处理器可读存储介质,所述处理器可读存储介质存储有计算机程序,所述计算机程序用于使所述处理器执行第一方面或第二方面所述适用于水印图片的处理方法的步骤。In a fourth aspect, the present invention provides a processor-readable storage medium, the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to perform the process described in the first aspect or the second aspect. Steps of a processing method applicable to watermarked pictures.

本发明提供的适用于水印图片的处理方法、装置、电子设备及存储介质,通过基于非对称密钥及对称密钥对原图进行安全传输,以及前端服务器对原图进行水印添加,避免不法人员通过抓包获取图片信息,提升了数据处理的安全性,同时提供可溯源的水印信息的快速实现,降低后端处理压力。The processing method, device, electronic equipment, and storage medium suitable for watermarked pictures provided by the present invention can securely transmit the original picture based on the asymmetric key and the symmetric key, and add the watermark to the original picture by the front-end server to avoid illegal personnel Obtaining picture information by capturing packets improves the security of data processing, and at the same time provides fast implementation of traceable watermark information, reducing back-end processing pressure.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings based on these drawings without creative effort.

图1是本发明提供的适用于水印图片的处理方法的流程示意图;Fig. 1 is a schematic flow chart of a processing method suitable for watermark pictures provided by the present invention;

图2是本发明提供的适用于水印图片的处理方法的流程示意图;Fig. 2 is a schematic flow chart of a processing method suitable for watermark pictures provided by the present invention;

图3是本发明提供的适用于水印图片的处理装置的结构示意图;Fig. 3 is a schematic structural diagram of a processing device suitable for watermark pictures provided by the present invention;

图4是本发明提供的适用于水印图片的处理装置的结构示意图;Fig. 4 is a schematic structural diagram of a processing device suitable for watermark pictures provided by the present invention;

图5是本发明提供的电子设备的结构示意图;Fig. 5 is a schematic structural diagram of an electronic device provided by the present invention;

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

下面结合图1-图5描述本发明的适用于水印图片的处理方法、装置、电子设备及存储介质。The processing method, device, electronic equipment and storage medium applicable to watermark pictures of the present invention will be described below with reference to FIGS. 1-5 .

图1示出了本发明一种适用于水印图片的处理方法的流程示意图,参见图1,该方法包括:Fig. 1 shows a schematic flow chart of a processing method suitable for a watermark image in the present invention, referring to Fig. 1, the method includes:

11、后端服务器采用对称密钥对原图加密,并采用非对称密钥对对称密钥加密;11. The back-end server uses a symmetric key to encrypt the original image, and uses an asymmetric key to encrypt the symmetric key;

12、将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器,以使前端服务器根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。12. Send the encrypted original image, encrypted symmetric key, watermark text information, and identification information of the original image to the front-end server, so that the front-end server adds a watermark to the decrypted original image according to the watermark text information; wherein, the watermark The text information is the information required for adding watermarks in the process of accessing the original image by the front-end server.

针对步骤11和步骤12,需要说明的是,在本发明中,后端服务器为向参会人员或访问图片的用户提供原图的服务器。前端服务器为参会人员或访问图片的用户查看图片或批注图片的设备。With respect to step 11 and step 12, it should be noted that in the present invention, the backend server is a server that provides original pictures to participants or users who access pictures. The front-end server is a device for viewing pictures or annotating pictures for participants or users who access pictures.

后端服务器向前端服务器发送原图时,首先采用对称密钥方式对原图进行加密。采用的对称密钥由原图的标识信息(如数据库中存储的该图片的id)、访问用户的用户标识及访问接口的时间戳信息拼接而成。将对称密钥对原图进行加密,得到加密后的原图。When the back-end server sends the original image to the front-end server, it first encrypts the original image with a symmetric key. The symmetric key used is concatenated from the identification information of the original image (such as the id of the image stored in the database), the user ID of the accessing user, and the time stamp information of the access interface. The symmetric key is used to encrypt the original image to obtain the encrypted original image.

为了避免非法操作对原图解密进行盗用出现的信息安全问题,后端服务器还采用非对称密钥方式对上述对原图进行加密的对称密钥进行加密,得到加密后的对称密钥。在后续对原图进行解密时,首先要先将加密后的对称密钥进行解密,得到该对称密钥。In order to avoid the information security problems caused by unauthorized operation and theft of decrypting the original image, the back-end server also uses an asymmetric key to encrypt the above-mentioned symmetric key for encrypting the original image to obtain the encrypted symmetric key. When decrypting the original image later, the encrypted symmetric key must first be decrypted to obtain the symmetric key.

在本发明中,该水印文本信息为前端服务器访问原图过程中添加水印所需的信息。即访问用户使用前端服务器访问原图,需要在原图上添加水印,以表明该访问用户使用过原图。故该水印文本信息实际上是代表访问用户使用原图的标志。In the present invention, the watermark text information is the information required for adding watermark during the process of the front-end server accessing the original image. That is, if the visiting user uses the front-end server to access the original image, a watermark needs to be added to the original image to indicate that the visiting user has used the original image. Therefore, the watermark text information is actually a sign representing the access user to use the original image.

在本发明中,后端服务器将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器。In the present invention, the back-end server sends the encrypted original image, encrypted symmetric key, watermark text information, and identification information of the original image to the front-end server.

前端服务器在接收到加密后的原图后,要想记录访问用户使用原图的痕迹,便于后续文件追踪。为此,前端服务器需要结合加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息之间的关系,将加密后的原图进行解密,获得原图。然后根据水印文本信息对解密后的原图添加水印。After receiving the encrypted original image, the front-end server wants to record the traces of the access user's use of the original image, so as to facilitate subsequent file tracking. To this end, the front-end server needs to combine the encrypted original image, the encrypted symmetric key, the watermark text information, and the relationship between the identification information of the original image to decrypt the encrypted original image to obtain the original image. Then add a watermark to the decrypted original image according to the watermark text information.

本发明提供的适用于水印图片的处理方法,通过后端服务器基于非对称密钥及对称密钥对原图进行安全传输,以及前端服务器对原图进行水印添加,避免不法人员通过抓包获取图片信息,提升了数据处理的安全性,同时提供可溯源的水印信息的快速实现,降低后端处理压力。The processing method suitable for watermarked pictures provided by the present invention uses the back-end server to securely transmit the original picture based on the asymmetric key and the symmetric key, and the front-end server to add the watermark to the original picture, so as to prevent illegal personnel from obtaining pictures by capturing packets information, which improves the security of data processing, and at the same time provides rapid implementation of traceable watermark information, reducing the pressure on back-end processing.

在进一步说明中,主要是在前端服务器在获取解密对称密钥的过程中,对后端服务器的处理过程进行解释说明,具体如下:In the further description, the processing process of the back-end server is explained mainly during the process of the front-end server obtaining the decryption symmetric key, as follows:

在本发明中,后端服务器需要采用非对称密钥方式对用来加密原图的对称密钥进行加密,在非对称密钥中,包括私钥和公钥。In the present invention, the backend server needs to use an asymmetric key to encrypt the symmetric key used to encrypt the original image, and the asymmetric key includes a private key and a public key.

在本发明中,后端服务器采用非对称密钥中的私钥对对称密钥加密,得到加密后的对称密钥。In the present invention, the backend server uses the private key in the asymmetric key to encrypt the symmetric key to obtain the encrypted symmetric key.

后端服务器接收前端服务器发送的请求,该请求中包含原图的标识信息。The back-end server receives the request sent by the front-end server, and the request includes the identification information of the original image.

由于后端服务器中设置有原图的标识信息与非对称密钥(公钥和私钥)的对应关系,为此,后端服务器可根据原图的标识信息和存储的对应关系获取到非对称密钥中的公钥,然后将公钥发送给前端服务器。Since the corresponding relationship between the identification information of the original image and the asymmetric key (public key and private key) is set in the back-end server, the back-end server can obtain the asymmetric keys according to the identification information of the original image and the stored corresponding relationship. The public key in the key, and then send the public key to the front-end server.

前端服务器根据公钥便可以对加密后的对称密钥进行解密,获得对称密钥,然后再根据对称密钥对加密后的原图进行解密,获得原图。The front-end server can decrypt the encrypted symmetric key according to the public key to obtain the symmetric key, and then decrypt the encrypted original image according to the symmetric key to obtain the original image.

本发明进一步的方法,通过前端服务器向后端服务器请求获得公钥,采用公钥解密加密后的对称密钥,进而解密加密后的原图获得原图,保证了原图的安全性。In the further method of the present invention, the front-end server requests the back-end server to obtain the public key, uses the public key to decrypt the encrypted symmetric key, and then decrypts the encrypted original image to obtain the original image, ensuring the security of the original image.

图2示出了本发明一种适用于水印图片的处理方法的流程示意图,参见图2,该方法包括:Fig. 2 shows a schematic flow chart of a processing method suitable for watermark pictures according to the present invention. Referring to Fig. 2, the method includes:

21、前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息;其中,后端服务器采用对称密钥对原图加密,以及采用非对称密钥对对称密钥加密;21. The front-end server receives the encrypted original image, the encrypted symmetric key, watermark text information, and the identification information of the original image sent by the back-end server; wherein, the back-end server uses a symmetric key to encrypt the original image, and uses non- Symmetric key to symmetric key encryption;

22、根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。22. Adding a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

针对步骤21和步骤22,需要说明的是,在本发明中,有关前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息,然后后续在对解密后的原图添加水印的处理过程在上述实施例方法中存在详细说明,在此步骤赘述。Regarding steps 21 and 22, it should be noted that in the present invention, the relevant front-end server receives the encrypted original image, encrypted symmetric key, watermark text information, and identification information of the original image sent by the back-end server, and then The subsequent process of adding a watermark to the decrypted original image is described in detail in the method of the above embodiment, and will be described in detail here.

本发明提供的适用于水印图片的处理方法,通过后端服务器基于非对称密钥及对称密钥对原图进行安全传输,以及前端服务器对原图进行水印添加,避免不法人员通过抓包获取图片信息,提升了数据处理的安全性,同时提供可溯源的水印信息的快速实现,降低后端处理压力。The processing method suitable for watermarked pictures provided by the present invention uses the back-end server to securely transmit the original picture based on the asymmetric key and the symmetric key, and the front-end server to add the watermark to the original picture, so as to prevent illegal personnel from obtaining pictures by capturing packets information, which improves the security of data processing, and at the same time provides rapid implementation of traceable watermark information, reducing the pressure on back-end processing.

在进一步说明中,主要是对前端服务器对加密的原图进行解密的处理过程进行解释说明,具体如下:In the further explanation, it is mainly to explain the process of decrypting the encrypted original image by the front-end server, as follows:

在本发明中,后端服务器采用非对称密钥中的私钥对对称密钥加密。In the present invention, the backend server uses the private key in the asymmetric key to encrypt the symmetric key.

前端服务器向后端服务器发送请求,该请求包括原图的标识信息,以使后端服务器根据所述原图的标识信息获取非对称密钥中的公钥,将公钥发送给前端服务器;The front-end server sends a request to the back-end server, and the request includes the identification information of the original image, so that the back-end server obtains the public key in the asymmetric key according to the identification information of the original image, and sends the public key to the front-end server;

根据公钥对加密后的对称密钥进行解密,获得对称密钥,并根据对称密钥对加密后的原图进行解密,获得原图。The encrypted symmetric key is decrypted according to the public key to obtain the symmetric key, and the encrypted original image is decrypted according to the symmetric key to obtain the original image.

在上述实施例方法中对上述过程进行了详细说明,在此不再赘述。The above-mentioned process is described in detail in the method of the above-mentioned embodiment, and will not be repeated here.

本发明进一步的方法,通过前端服务器向后端服务器请求获得公钥,采用公钥解密加密后的对称密钥,进而解密加密后的原图获得原图,保证了原图的安全性。In the further method of the present invention, the front-end server requests the back-end server to obtain the public key, uses the public key to decrypt the encrypted symmetric key, and then decrypts the encrypted original image to obtain the original image, ensuring the security of the original image.

在进一步说明中,主要是对根据水印文本信息对解密后的原图添加水印的处理过程进行解释说明,具体如下:In the further explanation, it is mainly to explain the process of adding watermark to the decrypted original image according to the watermark text information, as follows:

将解密后的原图置为最底图层,作为原图图层;Set the decrypted original image as the bottom layer, as the original image layer;

将水印文本信息添加到透明的画布上,生成与原图同等大小的水印图层,将水印图层与原图图层叠加显示。Add the watermark text information to the transparent canvas, generate a watermark layer with the same size as the original image, and superimpose the watermark layer and the original image layer for display.

对此,需要说明的是,在本发明中,将原图解密之后,将其置为最底图层,作为原图图层。然后将访问用户的水印文本信息画在透明的画布上,生成与原图同等大小的水印图层,水印图层与原图图层叠加显示。Regarding this, it should be noted that in the present invention, after the original image is decrypted, it is set as the bottommost layer as the original image layer. Then draw the watermark text information of the visiting user on the transparent canvas to generate a watermark layer with the same size as the original image, and the watermark layer and the original image layer are superimposed and displayed.

在进一步说明中,主要是对在原图中进行批注的过程进行解释说明,具体如下:In the further explanation, it is mainly to explain the process of annotating in the original image, as follows:

将配置的批注数据添加到透明的画布上,生成与原图同等大小的批注图层;Add the configured annotation data to the transparent canvas to generate an annotation layer of the same size as the original image;

将批注图层位于最上层,水印图层置为中间图层,原图图层置于最底层进行显示。The annotation layer is placed on the top layer, the watermark layer is placed on the middle layer, and the original image layer is placed on the bottom layer for display.

由于批注图层在最上层,用户的批注操作可单独编辑,不影响原图图层与水印图层,可满足用户对历史批注信息的编辑处理,且方便将批注数据单独保存到后端服务器,减少存储需求。Since the annotation layer is on the top layer, the user's annotation operation can be edited separately without affecting the original image layer and watermark layer, which can satisfy the user's editing and processing of historical annotation information, and conveniently save the annotation data to the back-end server separately. Reduce storage requirements.

在进一步说明中,主要是对访问用户再次使用原图时的处理过程进行解释说明,具体如下:In the further explanation, it is mainly to explain the processing process when the accessing user uses the original image again, as follows:

确定用户再次访问原图的触发信息后,根据用户标识和原图标识信息请求批注图层,确定存在批注图层,将原图图层、水印图层、批注图层从底到顶的顺序进行叠加显示。After determining the trigger information for the user to visit the original image again, request the annotation layer according to the user ID and the original image ID information, determine the existence of the annotation layer, and superimpose the original image layer, watermark layer, and annotation layer from bottom to top show.

对此,需要说明的是,在本发明中,通过对批注图层的存储,便于后续直接调用取用,无需再重新执行批注操作,提高对文件使用的方便性。In this regard, it should be noted that in the present invention, by storing the annotation layer, it is convenient for subsequent direct invocation and retrieval, and there is no need to re-execute the annotation operation, which improves the convenience of using the file.

下面对本发明提供的适用于水印图片的处理装置进行描述,下文描述的适用于水印图片的处理装置与上文描述的适用于水印图片的处理方法可相互对应参照。The processing device suitable for watermark pictures provided by the present invention is described below, and the processing device suitable for watermark pictures described below and the processing method suitable for watermark pictures described above can be referred to in correspondence.

图3示出了本发明提供的一种适用于水印图片的处理装置的结构示意图,参见图3,该装置包括加密模块31和发送模块32,其中:Fig. 3 shows a schematic structural diagram of a processing device suitable for watermark pictures provided by the present invention, referring to Fig. 3, the device includes an encryption module 31 and a sending module 32, wherein:

加密模块31,用于采用对称密钥对原图加密,并采用非对称密钥对所述对称密钥加密;An encryption module 31, configured to encrypt the original image with a symmetric key, and encrypt the symmetric key with an asymmetric key;

发送模块32,用于将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器,以使前端服务器根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。The sending module 32 is used to send the encrypted original image, the encrypted symmetric key, watermark text information, and the identification information of the original image to the front-end server, so that the front-end server adds a watermark to the decrypted original image according to the watermark text information ; Among them, the watermark text information is the information required for adding watermark in the process of the front-end server accessing the original image.

在进一步说明中,所述加密模块在采用非对称密钥对所述对称密钥加密的处理过程中,具体用于:In a further description, during the process of encrypting the symmetric key with an asymmetric key, the encryption module is specifically used for:

采用非对称密钥中的私钥对所述对称密钥加密。The symmetric key is encrypted using a private key in the asymmetric key.

在进一步说明中,所述装置还包括第一接收模块,用于:In a further description, the device also includes a first receiving module, configured to:

接收前端服务器发送的请求,请求包括所述原图的标识信息;receiving the request sent by the front-end server, the request includes the identification information of the original image;

根据原图的标识信息获取非对称密钥中的公钥,将公钥发送给前端服务器,以使前端服务器根据公钥对加密后的对称密钥进行解密,获得对称密钥,并根据对称密钥对加密后的原图进行解密,获得原图。Obtain the public key in the asymmetric key according to the identification information of the original image, and send the public key to the front-end server, so that the front-end server can decrypt the encrypted symmetric key according to the public key to obtain the symmetric key, and then decrypt the encrypted symmetric key according to the symmetric key. The key is used to decrypt the encrypted original image to obtain the original image.

由于本发明实施例所述装置与上述实施例所述方法的原理相同,对于更加详细的解释内容在此不再赘述。Since the principle of the apparatus described in the embodiment of the present invention is the same as that of the method described in the foregoing embodiments, more detailed explanations will not be repeated here.

需要说明的是,本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。It should be noted that, in the embodiment of the present invention, a hardware processor (hardware processor) may be used to implement related functional modules.

本发明提供的适用于水印图片的处理装置,通过基于非对称密钥及对称密钥对原图进行安全传输,以及前端服务器对原图进行水印添加,避免不法人员通过抓包获取图片信息,提升了数据处理的安全性,同时提供可溯源的水印信息的快速实现,降低后端处理压力。The processing device suitable for watermarked pictures provided by the present invention securely transmits the original picture based on the asymmetric key and the symmetric key, and adds the watermark to the original picture by the front-end server, so as to prevent illegal personnel from obtaining picture information by capturing packets, and improve It not only improves the security of data processing, but also provides rapid implementation of traceable watermark information, reducing the pressure of back-end processing.

图4示出了本发明提供的一种适用于水印图片的处理装置的结构示意图,参见图4,该装置包括第二接收模块41和添加模块42,其中:FIG. 4 shows a schematic structural diagram of a processing device suitable for watermark pictures provided by the present invention. Referring to FIG. 4, the device includes a second receiving module 41 and an adding module 42, wherein:

第二接收模块41,用于接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息;其中,后端服务器采用对称密钥对原图加密,以及采用非对称密钥对对称密钥加密;The second receiving module 41 is used to receive the encrypted original image sent by the backend server, the encrypted symmetric key and watermark text information, and the identification information of the original image; wherein, the backend server uses the symmetric key to encrypt the original image , and use an asymmetric key to encrypt the symmetric key;

添加模块42,用于根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。The adding module 42 is configured to add a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is the information required for adding a watermark when the front-end server accesses the original image.

在进一步说明中,后端服务器采用非对称密钥中的私钥对所述对称密钥加密,相应地,所述装置还包括解密模块,用于在根据所述水印文本信息对解密后的原图添加水印之前,对加密的原图进行解密,具体用于:In a further description, the backend server uses the private key in the asymmetric key to encrypt the symmetric key. Correspondingly, the device further includes a decryption module for decrypting the decrypted original data according to the watermark text information. Before adding a watermark to the image, the encrypted original image is decrypted, specifically for:

向后端服务器发送请求,请求包括所述原图的标识信息,以使后端服务器根据原图的标识信息获取非对称密钥中的公钥,将公钥发送给前端服务器;Sending a request to the back-end server, the request includes the identification information of the original image, so that the back-end server obtains the public key in the asymmetric key according to the identification information of the original image, and sends the public key to the front-end server;

根据公钥对加密后的对称密钥进行解密,获得对称密钥,并根据对称密钥对加密后的原图进行解密,获得原图。The encrypted symmetric key is decrypted according to the public key to obtain the symmetric key, and the encrypted original image is decrypted according to the symmetric key to obtain the original image.

在进一步说明中,所述添加模块具体用于:In a further description, the added module is specifically used for:

将解密后的原图置为最底图层,作为原图图层;Set the decrypted original image as the bottom layer, as the original image layer;

将所述水印文本信息添加到透明的画布上,生成与所述原图同等大小的水印图层,将所述水印图层与所述原图图层叠加显示。The watermark text information is added to a transparent canvas to generate a watermark layer with the same size as the original image, and the watermark layer and the original image layer are superimposed and displayed.

在进一步说明中,所述添加模块还用于:In further illustration, said add-on module is also used to:

将配置的批注数据添加到透明的画布上,生成与原图同等大小的批注图层;Add the configured annotation data to the transparent canvas to generate an annotation layer of the same size as the original image;

将批注图层位于最上层,水印图层置为中间图层,原图图层置于最底层。Put the annotation layer at the top, the watermark layer at the middle layer, and the original image layer at the bottom.

在进一步说明中,所述装置还包括请求模块,用于:In a further description, the device also includes a request module, configured to:

确定用户再次访问所述原图的触发信息后,根据用户标识和原图标识信息请求批注图层,确定存在批注图层,将原图图层、水印图层、批注图层从底到顶的顺序进行叠加显示。After determining the trigger information for the user to visit the original image again, request the annotation layer according to the user ID and the original image ID information, determine the existence of the annotation layer, and arrange the original image layer, watermark layer, and annotation layer from bottom to top Display overlay.

由于本发明实施例所述装置与上述实施例所述方法的原理相同,对于更加详细的解释内容在此不再赘述。Since the principle of the apparatus described in the embodiment of the present invention is the same as that of the method described in the foregoing embodiments, more detailed explanations will not be repeated here.

需要说明的是,本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。It should be noted that, in the embodiment of the present invention, a hardware processor (hardware processor) may be used to implement related functional modules.

本发明提供的适用于水印图片的处理装置,通过基于非对称密钥及对称密钥对原图进行安全传输,以及前端服务器对原图进行水印添加,避免不法人员通过抓包获取图片信息,提升了数据处理的安全性,同时提供可溯源的水印信息的快速实现,降低后端处理压力。The processing device suitable for watermarked pictures provided by the present invention securely transmits the original picture based on the asymmetric key and the symmetric key, and adds the watermark to the original picture by the front-end server, so as to prevent illegal personnel from obtaining picture information by capturing packets, and improve It not only improves the security of data processing, but also provides rapid implementation of traceable watermark information, reducing the pressure of back-end processing.

图5示例了一种电子设备的实体结构示意图,如图5所示,该电子设备可以包括:处理器(processor)51、通信接口(Communication Interface)52、存储器(memory)53和通信总线54,其中,处理器51,通信接口52,存储器53通过通信总线54完成相互间的通信。处理器51可以调用存储器53中的计算机程序,以执行适用于水印图片的处理方法的步骤,例如包括:采用对称密钥对原图加密,并采用非对称密钥对对称密钥加密;将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器,以使前端服务器根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。FIG. 5 illustrates a schematic diagram of the physical structure of an electronic device. As shown in FIG. 5, the electronic device may include: a processor (processor) 51, a communication interface (Communication Interface) 52, a memory (memory) 53 and a communication bus 54, Wherein, the processor 51 , the communication interface 52 , and the memory 53 communicate with each other through the communication bus 54 . The processor 51 can call the computer program in the memory 53 to execute the steps of the processing method applicable to the watermark image, for example, including: encrypting the original image with a symmetric key, and encrypting the symmetric key with an asymmetric key; The encrypted original image, encrypted symmetric key, watermark text information, and identification information of the original image are sent to the front-end server, so that the front-end server adds a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is the front-end The information required for adding watermarks when the server accesses the original image.

或是,例如包括:前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息;其中,后端服务器采用对称密钥对原图加密,以及采用非对称密钥对对称密钥加密;根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。Or, for example, include: the front-end server receives the encrypted original image sent by the back-end server, the encrypted symmetric key and watermark text information, and the identification information of the original image; wherein, the back-end server encrypts the original image with a symmetric key , and using an asymmetric key to encrypt the symmetric key; adding a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

此外,上述的存储器53中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, the above-mentioned logic instructions in the memory 53 may be implemented in the form of software function units and may be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the 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 Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disk or optical disk and other media that can store program codes.

另一方面,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述适用于水印图片的处理方法的步骤,例如包括:采用对称密钥对原图加密,并采用非对称密钥对对称密钥加密;将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器,以使前端服务器根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。On the other hand, the present invention also provides a computer program product, the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer During execution, the computer can execute the steps of the above-mentioned processing method applicable to watermarked pictures, for example including: encrypting the original picture with a symmetric key, and encrypting the symmetric key with an asymmetric key; The symmetric key, watermark text information, and identification information of the original image are sent to the front-end server, so that the front-end server can add a watermark to the decrypted original image according to the watermark text information; among them, the watermark text information is added in the process of accessing the original image by the front-end server Information required for the watermark.

或是,例如包括:前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息;其中,后端服务器采用对称密钥对原图加密,以及采用非对称密钥对对称密钥加密;根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。Or, for example, include: the front-end server receives the encrypted original image sent by the back-end server, the encrypted symmetric key and watermark text information, and the identification information of the original image; wherein, the back-end server encrypts the original image with a symmetric key , and using an asymmetric key to encrypt the symmetric key; adding a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

另一方面,本申请实施例还提供一种处理器可读存储介质,所述处理器可读存储介质存储有计算机程序,所述计算机程序用于使所述处理器执行上述适用于水印图片的处理方法的步骤,例如包括:采用对称密钥对原图加密,并采用非对称密钥对对称密钥加密;将加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息发送给前端服务器,以使前端服务器根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。On the other hand, the embodiment of the present application also provides a processor-readable storage medium, the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the above-mentioned method applicable to watermark pictures. The steps of the processing method include, for example: encrypting the original image with a symmetric key, and encrypting the symmetric key with an asymmetric key; The identification information is sent to the front-end server, so that the front-end server adds a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

或是,例如包括:前端服务器接收后端服务器发送的加密后的原图、加密后的对称密钥和水印文本信息、原图的标识信息;其中,后端服务器采用对称密钥对原图加密,以及采用非对称密钥对对称密钥加密;根据水印文本信息对解密后的原图添加水印;其中,水印文本信息为前端服务器访问原图过程中添加水印所需的信息。Or, for example, include: the front-end server receives the encrypted original image sent by the back-end server, the encrypted symmetric key and watermark text information, and the identification information of the original image; wherein, the back-end server encrypts the original image with a symmetric key , and using an asymmetric key to encrypt the symmetric key; adding a watermark to the decrypted original image according to the watermark text information; wherein, the watermark text information is information required for adding a watermark when the front-end server accesses the original image.

所述处理器可读存储介质可以是处理器能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器(例如软盘、硬盘、磁带、磁光盘(MO)等)、光学存储器(例如CD、DVD、BD、HVD等)、以及半导体存储器(例如ROM、EPROM、EEPROM、非易失性存储器(NANDFLASH)、固态硬盘(SSD))等。The processor-readable storage medium can be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic storage (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state disk (SSD)), etc.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and 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 it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (10)

1. A processing method for a watermark picture, comprising:
the back-end server encrypts the original image by adopting a symmetric key and encrypts the symmetric key by adopting an asymmetric key;
sending the encrypted original image, the encrypted symmetric key and watermark text information and the identification information of the original image to a front-end server so that the front-end server adds a watermark to the decrypted original image according to the watermark text information; and the watermark text information is information required by adding the watermark in the process of accessing the original image by the front-end server.
2. The processing method for watermarking pictures according to claim 1, wherein the encrypting the symmetric key with the asymmetric key comprises:
and encrypting the symmetric key by using a private key in the asymmetric key.
3. The processing method for watermarking pictures according to claim 2, wherein the method further comprises:
receiving a request sent by the front-end server, wherein the request comprises identification information of the original image;
and acquiring a public key in the asymmetric key according to the identification information of the original image, sending the public key to the front-end server so that the front-end server decrypts the encrypted symmetric key according to the public key to obtain the symmetric key, and decrypting the encrypted original image according to the symmetric key to obtain the original image.
4. A processing method for a watermark picture, comprising:
the front-end server receives the encrypted original image, the encrypted symmetric key and the encrypted watermark text information and the identification information of the original image which are sent by the back-end server; the back-end server encrypts the original image by adopting a symmetric key and encrypts the symmetric key by adopting an asymmetric key;
adding a watermark to the decrypted original image according to the watermark text information; and the watermark text information is information required by adding the watermark in the process of accessing the original image by the front-end server.
5. The processing method for the watermark picture according to claim 4, wherein the back-end server encrypts the symmetric key by using a private key in the asymmetric key, and accordingly, the method further includes decrypting the encrypted original image before adding the watermark to the decrypted original image according to the watermark text information, including:
sending a request to the back-end server, wherein the request comprises identification information of the original image, so that the back-end server obtains a public key in the asymmetric key according to the identification information of the original image and sends the public key to the front-end server;
and decrypting the encrypted symmetric key according to the public key to obtain the symmetric key, and decrypting the encrypted original image according to the symmetric key to obtain the original image.
6. The processing method suitable for the watermark picture according to claim 4 or 5, wherein the watermarking the decrypted original picture according to the watermark text information includes:
setting the decrypted original image as a bottommost image layer as an original image layer;
and adding the watermark text information to a transparent canvas, generating a watermark layer with the same size as the original image, and displaying the watermark layer and the original image layer in an overlapping manner.
7. The processing method for watermarking pictures according to claim 6, wherein the method further comprises:
adding the configured annotation data to a transparent canvas to generate an annotation layer with the same size as the original image;
and the annotation layer is positioned on the uppermost layer, the watermark layer is a middle layer, and the original image layer is positioned on the bottommost layer.
8. The processing method applied to the watermark picture according to claim 7, wherein the method further comprises:
and after determining that the user accesses the triggering information of the original image again, requesting an annotation image layer according to the user identification and the original image identification information, determining that the annotation image layer exists, and performing superposition display on the original image layer, the watermark image layer and the annotation image layer from bottom to top.
9. An electronic device comprising a processor and a memory storing a computer program, wherein the processor implements the steps of the processing method for watermarking pictures according to any one of claims 1 to 3, or implements the steps of the processing method for watermarking pictures according to any one of claims 4 to 8 when executing the computer program.
10. A processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program for causing a processor to execute the steps of the processing method for watermarking pictures according to any one of claims 1 to 3 or to implement the steps of the processing method for watermarking pictures according to any one of claims 4 to 8.
CN202110668509.3A 2021-06-16 2021-06-16 Processing method, electronic device and storage medium applicable to watermarked pictures Pending CN115484353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110668509.3A CN115484353A (en) 2021-06-16 2021-06-16 Processing method, electronic device and storage medium applicable to watermarked pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110668509.3A CN115484353A (en) 2021-06-16 2021-06-16 Processing method, electronic device and storage medium applicable to watermarked pictures

Publications (1)

Publication Number Publication Date
CN115484353A true CN115484353A (en) 2022-12-16

Family

ID=84419683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110668509.3A Pending CN115484353A (en) 2021-06-16 2021-06-16 Processing method, electronic device and storage medium applicable to watermarked pictures

Country Status (1)

Country Link
CN (1) CN115484353A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118195885A (en) * 2024-03-27 2024-06-14 国网福建省电力有限公司电力科学研究院 A multi-party joint data watermarking structure and method
CN118694542A (en) * 2024-08-28 2024-09-24 启迪数字科技(深圳)有限公司 WEB application development platform security protection method, device, equipment and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120926A1 (en) * 2001-12-25 2003-06-26 Hitachi, Ltd. Data encryption method, recording medium, data transfer apparatus, and encrypted data decryption method
US20130125196A1 (en) * 2005-05-18 2013-05-16 William M. Shapiro Method and apparatus for combining encryption and steganography in a file control system
US8621208B1 (en) * 2009-07-06 2013-12-31 Guoan Hu Secure key server based file and multimedia management system
CN104009839A (en) * 2014-06-16 2014-08-27 华中师范大学 Generating method for secret keys with user information
WO2014180416A1 (en) * 2013-09-18 2014-11-13 中兴通讯股份有限公司 Method for file upload to cloud storage system, download method and device
CN107070909A (en) * 2017-04-01 2017-08-18 广东欧珀移动通信有限公司 Information sending method, information receiving method, device and system
WO2017193950A1 (en) * 2016-05-11 2017-11-16 中兴通讯股份有限公司 Mobile office method, server, client, and system
CN107483432A (en) * 2017-08-10 2017-12-15 广州杰之良软件有限公司 File encryption processing method and processing device
US20180324170A1 (en) * 2016-01-12 2018-11-08 Alibaba Group Holding Limited Method and apparatus for allocating device identifiers
CN109583218A (en) * 2018-11-23 2019-04-05 泰康保险集团股份有限公司 Classified papers protection, localization method, device, equipment and readable storage medium storing program for executing
CN111062045A (en) * 2019-12-17 2020-04-24 北京推想科技有限公司 Information encryption and decryption method and device, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030120926A1 (en) * 2001-12-25 2003-06-26 Hitachi, Ltd. Data encryption method, recording medium, data transfer apparatus, and encrypted data decryption method
US20130125196A1 (en) * 2005-05-18 2013-05-16 William M. Shapiro Method and apparatus for combining encryption and steganography in a file control system
US8621208B1 (en) * 2009-07-06 2013-12-31 Guoan Hu Secure key server based file and multimedia management system
WO2014180416A1 (en) * 2013-09-18 2014-11-13 中兴通讯股份有限公司 Method for file upload to cloud storage system, download method and device
CN104009839A (en) * 2014-06-16 2014-08-27 华中师范大学 Generating method for secret keys with user information
US20180324170A1 (en) * 2016-01-12 2018-11-08 Alibaba Group Holding Limited Method and apparatus for allocating device identifiers
WO2017193950A1 (en) * 2016-05-11 2017-11-16 中兴通讯股份有限公司 Mobile office method, server, client, and system
CN107368747A (en) * 2016-05-11 2017-11-21 中兴通讯股份有限公司 A kind of mobile office method, service end, client and system
CN107070909A (en) * 2017-04-01 2017-08-18 广东欧珀移动通信有限公司 Information sending method, information receiving method, device and system
CN107483432A (en) * 2017-08-10 2017-12-15 广州杰之良软件有限公司 File encryption processing method and processing device
CN109583218A (en) * 2018-11-23 2019-04-05 泰康保险集团股份有限公司 Classified papers protection, localization method, device, equipment and readable storage medium storing program for executing
CN111062045A (en) * 2019-12-17 2020-04-24 北京推想科技有限公司 Information encryption and decryption method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
蔡向高;刘华泓;: "基于HTML5的文档在线评阅及批注的实现", 中国信息技术教育, no. 09 *
邹潇湘,李锦涛: "客户端数字水印嵌入方案", 微电子学与计算机, no. 06 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118195885A (en) * 2024-03-27 2024-06-14 国网福建省电力有限公司电力科学研究院 A multi-party joint data watermarking structure and method
CN118195885B (en) * 2024-03-27 2025-12-02 国网福建省电力有限公司电力科学研究院 A Multi-Party Joint Data Watermarking Structure and Method
CN118694542A (en) * 2024-08-28 2024-09-24 启迪数字科技(深圳)有限公司 WEB application development platform security protection method, device, equipment and medium

Similar Documents

Publication Publication Date Title
JP5350782B2 (en) Method and apparatus for detecting falsification of metadata
US5343527A (en) Hybrid encryption method and system for protecting reusable software components
CN101118586B (en) Information processing apparatus, data processing apparatus, and methods thereof
CN101043319B (en) Digital content protective system and method
EP2696305B1 (en) Method and device for file protection
US20080097923A1 (en) Method and apparatus for providing digital rights management content and license, and method and apparatus for using digital rights management content
JP2006338249A (en) Content protection device and content protection release device
US20210029096A1 (en) Enhanced secure encryption and decryption system
CN101719209B (en) General digital rights protection method on WINDOWS platform
RU2006138021A (en) METHOD AND DEVICE FOR OBTAINING AND DELETING INFORMATION REGARDING OBJECTS OF DIGITAL RIGHTS
WO2012170960A1 (en) Method and apparatus for file assurance
US8972747B2 (en) Managing information in a document serialization
CN110650191A (en) Data read-write method of distributed storage system
JP5399268B2 (en) Access to documents with encrypted control
CN108809655A (en) Data processing method, device, equipment and storage medium
CN1698056A (en) Content processing terminal, copy right management system, and method thereof
CN115484353A (en) Processing method, electronic device and storage medium applicable to watermarked pictures
TWI394419B (en) System and method for managing encrypted content using logical partitions
CN101000648A (en) Automatic encipher system and method for file
CN106612283B (en) A method and device for identifying the source of a downloaded file
CN104462872A (en) Terminal, server and authorization method of digital contents
CN101282214A (en) Encryption protection method and client device for digital document
TWI465956B (en) Method for tracing leaking-out point of digital document and terminal device thereof
JP6013233B2 (en) Content distribution system, apparatus and program
CN114546959B (en) File processing method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221216