Electronic seal encryption system, method, device and equipment and medium
The electronic seal image is encoded and decoded by the autoencoder, and the file identification information and the seal identification are used for comparison, which solves the problem of low security of the electronic seal, realizes the compliance and integrity guarantee of the encrypted electronic seal, and improves the user experience.
Patent Information
- Application Number
- CN202410816284.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-24
AI Technical Summary
The security of existing electronic seals is low, and it is difficult to effectively protect their integrity and compliance during use.
An autoencoder is used to encode and decode the electronic seal image, generate an encrypted electronic seal image, and ensure its compliance and integrity through comparison of the file identification information and the seal identification.
It improves the security of electronic seals, prevents attackers from deriving the original seal image, ensures the integrity and compliance of seal information, and enhances user experience.
Smart Images

Figure CN118764566A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to an electronic seal encryption system, method, device, equipment and medium. Background Art
[0002] With the development of electronicization, more and more businesses need to convert physical seals into digital format seals for storage, transmission and management. Electronic seals are a digital format seal that has gradually been recognized by the public in recent years to replace physical seals. The electronic documents stamped with them have the same appearance and legal effect as paper documents stamped with physical seals.
[0003] However, how to improve the security of electronic seal use is a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides an electronic seal encryption system, method, device, equipment and medium to improve the security of the electronic seal use process.
[0005] In a first aspect, the present application provides an electronic seal encryption system, the system comprising:
[0006] The applicant device is used to encode the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and send the first encoding vector to the reviewer device; wherein the encoder is an encoder in an autoencoder;
[0007] The reviewer device is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
[0008] In a possible implementation manner, the applicant device is further used for:
[0009] Sending the seal identification of the original electronic seal image to the reviewer device;
[0010] The auditing device is also used for:
[0011] Based on the saved encoder, the original electronic seal image corresponding to the seal logo is encoded to generate a second encoding vector; and the first encoding vector is compared with the second encoding vector to see if they are the same. If they are the same, a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder is performed.
[0012] In a possible implementation manner, the applicant device is further used for:
[0013] Sending the file identification information of the electronic file to be used with the encrypted electronic seal image to the reviewer device;
[0014] The auditing device is also used for:
[0015] The document identification information is added at a set position of the encrypted electronic seal image, and the encrypted electronic seal image with the document identification information added is sent to the applicant device.
[0016] In a possible implementation manner, the applicant device is further used for:
[0017] Sending the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file to the reviewer device;
[0018] The auditing device is also used for:
[0019] Determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added thereto; if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
[0020] In a possible implementation manner, the auditing device is further used for:
[0021] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0022] In a possible implementation manner, the auditing device is further used for:
[0023] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal body. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed; wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0024] In a possible implementation manner, the applicant device is further used for:
[0025] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0026] In a possible implementation manner, the encoder obtained by the applicant device is obtained from the auditor device.
[0027] In a second aspect, the present application provides an electronic seal encryption method, which is applied to a reviewer device, and the method includes:
[0028] Receiving a first coding vector sent by an applicant device, wherein the first coding vector is generated by the applicant device encoding an original electronic seal image to be encrypted based on an obtained encoder, and the encoder is an encoder in an autoencoder;
[0029] The first coding vector is decoded based on the stored decoder in the autoencoder to generate an encrypted electronic seal image, and the encrypted electronic seal image is sent to the applicant device.
[0030] In a possible implementation manner, after receiving the first encoding vector sent by the applicant device and before decoding the first encoding vector based on the decoder in the stored autoencoder, the method further includes:
[0031] Encode the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second encoding vector; and compare whether the first encoding vector is the same as the second encoding vector. If they are the same, perform a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant's device.
[0032] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0033] Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
[0034] In a possible implementation, the method further includes:
[0035] Receiving the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device;
[0036] Determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added thereto; if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
[0037] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0038] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0039] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0040] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0041] In a third aspect, the present application provides an electronic seal encryption method, which is applied to an applicant's device and includes:
[0042] Encoding the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector;
[0043] The first coding vector is sent to the auditing device; wherein the encoder is an encoder in an autoencoder; the auditing device decodes the first coding vector based on the decoder in the autoencoder stored to generate an encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image to the applicant device.
[0044] In a possible implementation manner, sending the first encoding vector to a reviewer device includes:
[0045] The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
[0046] In a possible implementation manner, sending the first encoding vector to a reviewer device includes:
[0047] The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
[0048] In a possible implementation, the method further includes:
[0049] The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
[0050] In a possible implementation manner, before the encoder based on the obtained code encodes the original electronic seal image to be encrypted and generates the first encoding vector, the method further includes:
[0051] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0052] In a possible implementation manner, the obtained encoder is obtained from the auditing device.
[0053] In a fourth aspect, the present application also provides an electronic seal encryption method, the method comprising:
[0054] Encoding the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector;
[0055] The first encoding vector is decoded based on the decoder in the autoencoder to generate an encrypted electronic seal image.
[0056] In a fifth aspect, the present application provides an electronic seal encryption device, which is applied to a reviewer's device, and includes:
[0057] A receiving module, used for receiving a first coding vector sent by an applicant device, wherein the first coding vector is generated by the applicant device by encoding the original electronic seal image to be encrypted based on an obtained encoder, and the encoder is an encoder in an autoencoder;
[0058] The first decoding module is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
[0059] In a possible implementation manner, the device further includes:
[0060] A first encoding module, used for encoding the original electronic seal image corresponding to the seal mark based on the stored encoder to generate a second encoding vector;
[0061] The first decoding module is also used to compare whether the first coding vector is the same as the second coding vector. If they are the same, a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder is performed, wherein the seal mark is the seal mark of the original electronic seal image obtained from the applicant's device.
[0062] In a possible implementation manner, the first decoding module is further configured to:
[0063] Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
[0064] In a possible implementation, the device further includes:
[0065] The adjudication module is used to receive the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device; determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added, and if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
[0066] In a possible implementation manner, the first decoding module is further configured to:
[0067] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0068] In a possible implementation manner, the first decoding module is further configured to:
[0069] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0070] In a sixth aspect, the present application provides an electronic seal encryption device, which is applied to an applicant's device, and the device includes:
[0071] A second encoding module, used for encoding the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector;
[0072] A sending module is used to send the first coding vector to the auditing device; wherein the encoder is an encoder in an autoencoder; the auditing device decodes the first coding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image to the applicant device.
[0073] In a possible implementation manner, the sending module is specifically configured to:
[0074] The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
[0075] In a possible implementation manner, the sending module is specifically configured to:
[0076] The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
[0077] In a possible implementation manner, the sending module is further used to:
[0078] The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
[0079] In a possible implementation manner, the second encoding module is further configured to:
[0080] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0081] In a possible implementation manner, the obtained encoder is obtained from the auditing device.
[0082] In a seventh aspect, the present application provides an electronic seal encryption device, the device comprising:
[0083] A third encoding module, used for encoding the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector;
[0084] The second decoding module is used to decode the first encoding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image.
[0085] In an eighth aspect, the present application provides an electronic device, including:
[0086] A memory for storing program instructions;
[0087] The processor is used to call the program instructions stored in the memory and execute the steps included in any one of the above methods according to the obtained program instructions.
[0088] In a ninth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any of the methods described above.
[0089] In a tenth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any of the methods described above.
[0090] In the embodiment of the present application, the applicant device can encode the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector, and send the first encoding vector to the reviewer device. The reviewer device can decode the first encoding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device for the applicant device to use the encrypted electronic seal image. In the embodiment of the present application, the electronic seal image can be encoded and decoded using a neural network model such as an autoencoder to encrypt the electronic seal image, thereby improving the security of the electronic seal use process.
[0091] In addition, the encoder in the autoencoder can map the input data (original electronic seal image) into a more compact low-dimensional coding vector (first coding vector), which can capture the main features of the input data. The decoder in the autoencoder can remap the low-dimensional coding vector into an encrypted approximate representation (encrypted electronic seal image) of the original input data (original electronic seal image). The encrypted electronic seal image output by the decoder can hide the encrypted information, so that the encrypted electronic seal image output by the decoder has a strong similarity with the original electronic seal image input into the encoder, and the encrypted electronic seal image has almost no damage to the original seal information such as the text in the original electronic seal image, and the visual effect of the encrypted electronic seal image is basically the same as that of the original electronic seal image. Compared with the encryption of the electronic seal by adding noise points to the electronic seal image to destroy the original seal information of the seal image, the embodiment of the present application can not only encrypt the electronic seal image and ensure the safety of the use of the electronic seal, but also ensure the integrity of the seal information in the encrypted electronic seal image, thereby improving the user experience.
[0092] In addition, due to the irreversibility of the encoder's encoding process, even if the attacker intercepts the first encoding vector sent by the applicant's device to the auditor's device, the attacker cannot deduce the original electronic seal image that generates the first encoding vector. Similarly, due to the irreversibility of the decoder's decoding process, even if the attacker intercepts the encrypted electronic seal image, the attacker cannot deduce the original electronic seal image, thereby ensuring the security of the original electronic seal image to the greatest extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0094] Figure 1A schematic diagram of an electronic seal encryption system provided by some embodiments is shown;
[0095] Figure 2 A schematic diagram of a first electronic seal encryption process provided by some embodiments is shown;
[0096] Figure 3 A schematic diagram of a second electronic seal encryption process provided by some embodiments is shown;
[0097] Figure 4 A schematic diagram of a third electronic seal encryption process provided by some embodiments is shown;
[0098] Figure 5 A schematic diagram of a fourth electronic seal encryption process provided by some embodiments is shown;
[0099] Figure 6 A fifth electronic seal encryption process schematic diagram provided by some embodiments is shown;
[0100] Figure 7 A sixth electronic seal encryption process schematic diagram provided by some embodiments is shown;
[0101] Figure 8 A seventh electronic seal encryption process schematic diagram provided by some embodiments is shown;
[0102] Fig. 9 A schematic diagram of an eighth electronic seal encryption process provided by some embodiments is shown;
[0103] Fig.10 A ninth electronic seal encryption process schematic diagram provided by some embodiments is shown;
[0104] Fig.11 A schematic diagram of a tenth electronic seal encryption process provided by some embodiments is shown;
[0105] Fig.12 A schematic diagram of an electronic seal encryption device provided by some embodiments is shown;
[0106] Fig.13 A schematic diagram of another electronic seal encryption device provided by some embodiments is shown;
[0107] Fig.14 A schematic diagram of another electronic seal encryption device provided by some embodiments is shown;
[0108] Fig.15 A schematic diagram of the structure of an electronic device provided by some embodiments is shown. DETAILED DESCRIPTION
[0109] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0110] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0111] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0112] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0113] Before introducing the electronic seal encryption system provided by the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced.
[0114] An electronic seal is a digital (digital format) seal that uses cryptography and digital signature technology to electronically verify and protect the authenticity, integrity and credibility of documents. In related technologies, electronic seals are a digital format seal that has gradually been recognized by the public in recent years as a substitute for physical seals. The electronic documents stamped with them have the same appearance and legal effect as paper documents stamped with physical seals. However, how to improve the security of the use of electronic seals is a technical problem that urgently needs to be solved.
[0115] In view of this, in order to improve the security of the electronic seal usage process, the present application embodiment proposes an electronic seal encryption system, method, device, equipment and medium. The following describes some preferred embodiments of the present application in conjunction with the accompanying drawings.
[0116] Embodiment 1:
[0117] Figure 1 A schematic diagram of an electronic seal encryption system provided by some embodiments is shown. Figure 1 As shown, the system process:
[0118] The applicant device 11 is used to encode the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and send the first encoding vector to the reviewer device 12; wherein the encoder is an encoder in an autoencoder;
[0119] The reviewer device 12 is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device 11.
[0120] In a possible implementation, in order to improve the security of the electronic seal use process, a user who wants to use a certain electronic seal (for ease of description, referred to as an applicant) can trigger a request to use the electronic seal. Among them, the present application does not specifically limit the process of the applicant triggering the use request. Exemplarily, the applicant can input the seal identification of the electronic seal to be used in a device belonging to the applicant (for ease of description, referred to as the applicant device) and click the button such as applying for the use of the seal. When the applicant device 11 receives the seal identification of the electronic seal to be used input by the applicant and recognizes that the button such as applying for the use of the seal is clicked, it can be considered that the request to use the electronic seal is received. After receiving the use request, the applicant device 11 can obtain the original electronic seal corresponding to the seal identification according to the seal identification of the received electronic seal (wherein, for ease of description, the electronic seal that has not yet been encrypted is referred to as the original electronic seal), and can use the original electronic seal as the original electronic seal to be encrypted, and encode the original electronic seal image based on the obtained encoder to obtain (generate) the first encoding vector.
[0121] The applicant device 11 may obtain an encoder from the auditor device 12, that is, the encoder obtained by the applicant device 11 may be an encoder in an autoencoder stored in the auditor device 12. The autoencoder may include an encoder and a decoder. The auditor device 12 may store an encoder and a decoder in the autoencoder, and the auditor device 12 may disclose the encoder part of the autoencoder, and the applicant device 11 may obtain the encoder. In one possible implementation, the applicant device 11 may obtain and use the encoder part of the autoencoder, but may not obtain and use the decoder part of the autoencoder.
[0122] In a possible implementation, the applicant device 11 encodes the original electronic seal image to be encrypted based on the acquired encoder, and after obtaining the first encoding vector (encoding result), the applicant device 11 may send the first encoding vector to the reviewer device 12. After receiving the first encoding vector, the reviewer device 12 may decode the first encoding vector based on the decoder in the stored self-encoder to generate an encrypted electronic seal image (referred to as an encrypted electronic seal image for ease of description).
[0123] In a possible implementation, the reviewer device 12 may send the generated encrypted electronic seal image to the applicant device 11, and the applicant device 11 may use the encrypted electronic seal image to generate an electronic document such as an electronic contract, which will not be described in detail here.
[0124] Since the embodiment of the present application can use a neural network model such as an autoencoder to encode and decode the electronic seal image, the electronic seal image can be encrypted, thereby improving the security of the electronic seal use process.
[0125] In addition, the encoder in the autoencoder can map the input data (original electronic seal image) into a more compact low-dimensional coding vector (first coding vector), which can capture the main features of the input data. The decoder in the autoencoder can remap the low-dimensional coding vector into an encrypted approximate representation (encrypted electronic seal image) of the original input data (original electronic seal image). The encrypted electronic seal image output by the decoder can hide the encrypted information, so that the encrypted electronic seal image output by the decoder has a strong similarity with the original electronic seal image input into the encoder, and the encrypted electronic seal image has almost no damage to the original seal information such as the text in the original electronic seal image, and the visual effect of the encrypted electronic seal image is basically the same as that of the original electronic seal image. Compared with the encryption of the electronic seal by adding noise points to the electronic seal image to destroy the original seal information of the seal image, the embodiment of the present application can not only encrypt the electronic seal image and ensure the safety of the use of the electronic seal, but also ensure the integrity of the seal information in the encrypted electronic seal image, thereby improving the user experience.
[0126] In addition, due to the irreversibility of the encoder's encoding process, even if the attacker intercepts the first encoding vector sent by the applicant's device to the auditor's device, the attacker cannot deduce the original electronic seal image that generates the first encoding vector. Similarly, due to the irreversibility of the decoder's decoding process, even if the attacker intercepts the encrypted electronic seal image, the attacker cannot deduce the original electronic seal image, thereby ensuring the security of the original electronic seal image to the greatest extent.
[0127] Embodiment 2:
[0128] In order to ensure that the encrypted electronic seal image is not abused to the greatest extent, based on the above embodiment, in the embodiment of the present application, the applicant device is further used to: send the file identification information of the electronic file to be used with the encrypted electronic seal image to the reviewer device;
[0129] The reviewer device is further used to add the document identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the document identification information added thereto to the applicant device.
[0130] In a possible implementation, in addition to sending the first coding vector to the reviewer device, the applicant device may also send the file identification information of the electronic file of the electronic seal image to be encrypted to the reviewer device. The file identification information of the electronic file may be the contract code, the last four digits of the contract code or a part of the contract code with a set number of digits, the contract signing date, the name of the applicant, and other information. This application does not specifically limit the file identification information, and it can be flexibly set according to needs.
[0131] After generating the encrypted electronic seal image, the reviewer device may add the above-mentioned file identification information at the set position of the encrypted electronic seal image. For example, the above-mentioned file identification information may be added in the form of a watermark in the gap between the characters in the encrypted electronic seal image or above the characters. This application does not specifically limit the specific position and specific form of adding the file identification information. It is preferable that the added file identification information does not destroy the original seal information such as the characters in the encrypted electronic seal image. The reviewer device may send the encrypted electronic seal image with the added file identification information to the applicant device. The applicant device may use the encrypted electronic seal image with the added file identification information to generate electronic documents such as electronic contracts.
[0132] In a possible implementation, after the applicant device uses the encrypted electronic seal image with added file identification information to generate an electronic document such as an electronic contract, the applicant device can send the electronic document containing (stamped with) the encrypted electronic seal image with added file identification information and the file identification information corresponding to the electronic document to the reviewer device. The reviewer device can then determine whether the encrypted electronic seal image contained in the electronic document is the same as the encrypted electronic seal image with added file identification information stored locally by the reviewer device. If the two are the same, it can be considered that the encrypted electronic seal image contained (used) in the electronic document is compliant and credible. On the contrary, if the encrypted electronic seal image contained in the electronic document and the encrypted electronic seal image with added file identification information stored locally by the reviewer device are two different electronic seal images, it can be considered that the electronic seal image used in the electronic document is non-compliant and untrustworthy, and a prompt message indicating that the electronic seal is non-compliant can be returned to the applicant device.
[0133] Since the electronic seal image sent by the reviewer device to the applicant device in the embodiment of the present application is an encrypted electronic seal image with file identification information added, the encrypted electronic seal image can be considered as an encrypted electronic seal image exclusively used for the electronic file corresponding to the file identification information, thereby avoiding abuse of the encrypted electronic seal image. At the same time, even if the attacker intercepts the encrypted electronic seal image, the attacker cannot use the electronic seal image to generate electronic files such as electronic contracts, thereby improving the security of the electronic seal.
[0134] For ease of understanding, the electronic seal encryption process provided by the embodiment of the present application is described below through a specific embodiment. Figure 2 , Figure 2 A schematic diagram of a first electronic seal encryption process provided by some embodiments is shown, and the process includes the following steps:
[0135] S201: The applicant device encodes the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and sends the first encoding vector to the reviewer device; wherein the encoder is an encoder in the autoencoder. At the same time, the applicant device can also send the file identification information of the electronic file of the encrypted electronic seal image to be sent by the reviewer device to the reviewer device.
[0136] S202: The reviewer device decodes the first encoding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image.
[0137] S203: The reviewer's device adds the file identification information at the set position of the encrypted electronic seal image, and sends the encrypted electronic seal image with the added file identification information to the applicant's device.
[0138] S204: The applicant device sends the electronic file containing the encrypted electronic seal image with the file identification information added thereto and the file identification information corresponding to the electronic file to the reviewer device.
[0139] S205: The reviewer device determines whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information received from the applicant device added thereto. If so, the electronic seal image of the electronic file is determined to be compliant; otherwise, the electronic seal image of the electronic file is determined to be non-compliant.
[0140] Embodiment 3:
[0141] In order to improve the security of the electronic seal usage process, based on the above embodiments, in the embodiment of the present application, the applicant device is also used to:
[0142] Sending the seal identification of the original electronic seal image to the reviewer device;
[0143] The auditing device is also used for:
[0144] Based on the saved encoder, the original electronic seal image corresponding to the seal logo is encoded to generate a second encoding vector; and the first encoding vector is compared with the second encoding vector to see if they are the same. If they are the same, a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder is performed.
[0145] In a possible implementation, when the applicant device sends the first coding vector to the reviewer device, the seal identification of the original electronic seal image can be sent to the reviewer device. The reviewer device can obtain the original electronic seal image corresponding to the seal identification from the locally stored seal image, and can encode the original electronic seal image corresponding to the seal identification based on the encoder in the stored autoencoder to generate a second coding vector. The reviewer device can verify the credibility and security of the first coding vector by comparing whether the first coding vector is the same as the second coding vector.
[0146] In a possible implementation, when the first coding vector is the same as the second coding vector, it can be considered that the first coding vector and the second coding vector are generated based on the same original electronic seal image and the same encoder, the auditing device can consider that the applicant device is a safe and reliable device, and the credibility and security of the first coding vector are high. The auditing device can subsequently decode the first coding vector based on the decoder in the autoencoder, generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
[0147] On the contrary, if the first coding vector is different from the second coding vector, it can be considered that the credibility and security of the first coding vector are low, and the subsequent process of decoding the first coding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image and sending the encrypted electronic seal image to the applicant device can be omitted. Optionally, when the first coding vector is different from the second coding vector, the reviewer device can send a prompt message to the applicant device that the coding vector review has not passed, and this application does not make specific restrictions on this.
[0148] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 3 , Figure 3 A schematic diagram of a second electronic seal encryption process provided by some embodiments is shown, and the process includes the following steps:
[0149] S301: The applicant device encodes the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and sends the first encoding vector and the seal identification of the original electronic seal image to the reviewer device; wherein the encoder is an encoder in a certain autoencoder.
[0150] S302: The reviewer's device encodes the original electronic seal image corresponding to the seal identification based on the encoder in the autoencoder to generate a second encoding vector; and compares whether the first encoding vector is the same as the second encoding vector. If they are the same, the first encoding vector is decoded based on the decoder in the autoencoder to generate an encrypted electronic seal image, and the encrypted electronic seal image is sent to the applicant's device.
[0151] S303: The applicant device receives the encrypted electronic seal image sent by the reviewer device, and uses the encrypted electronic seal image to generate an electronic contract, etc.
[0152] Since the reviewer device of this application can encode the original electronic seal image based on the encoder in the autoencoder to generate a second encoding vector, and only when the second encoding vector is the same as the first encoding vector, the first encoding vector is decoded based on the decoder in the autoencoder to generate an encrypted electronic seal image, thereby ensuring the security of the electronic seal during use to the greatest extent.
[0153] Embodiment 4:
[0154] In order to improve the security of the electronic seal usage process, based on the above embodiments, in the embodiment of the present application, the reviewer device is also used to:
[0155] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0156] Taking into account the possibility that the encoder used by the applicant's device is not the encoder obtained from the auditing device, the encoder used by the applicant's device is inconsistent with the encoder used by the auditing device, etc., which may cause garbled characters in the encrypted electronic seal image decoded by the auditing device, in order to improve the security of the electronic seal use process, etc., the auditing device can, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant's device, the applicant's device can identify whether the generated encrypted electronic seal image is garbled characters. If it is garbled characters, it can be considered that the encoder used by the applicant's device is not the encoder obtained from the auditing device, or that the applicant's device may not be a safe and reliable device, and the encrypted electronic seal image may not be sent to the applicant's device.
[0157] In a possible implementation, if the encrypted electronic seal image is not garbled, the encrypted electronic seal image may be sent to the applicant's device.
[0158] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 4 , Figure 4 A schematic diagram of a third electronic seal encryption process provided by some embodiments is shown, and the process includes the following steps:
[0159] S401: The applicant device encodes the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and sends the first encoding vector to the reviewer device; wherein the encoder is an encoder in a certain autoencoder.
[0160] S402: After receiving the first coding vector, the reviewing device decodes the first coding vector based on a decoder in a locally stored autoencoder to generate an encrypted electronic seal image.
[0161] S403: The reviewer's device determines whether the generated encrypted electronic seal image is garbled. If not, the encrypted electronic seal image is sent to the applicant's device.
[0162] S404: The applicant device receives the encrypted electronic seal image sent by the reviewer device, and uses the encrypted electronic seal image to generate an electronic contract, etc.
[0163] Embodiment 5:
[0164] In order to improve the security of the electronic seal usage process, based on the above embodiments, in the embodiment of the present application, the reviewer device is also used to:
[0165] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal body. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed; wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0166] In a possible implementation, after the reviewer device generates the encrypted electronic seal image, before sending the encrypted electronic seal image to the applicant device, the reviewer device can also determine whether the encrypted electronic seal image and the original electronic seal image corresponding to the seal identifier belong to the same seal subject through image comparison, and if so, the encrypted electronic seal image can be sent to the applicant device. On the contrary, if the encrypted electronic seal image and the original electronic seal image corresponding to the seal identifier belong to different seal subjects, the applicant device can be considered untrustworthy or the original electronic seal image used by the applicant device is incorrect, and the encrypted electronic seal image can be not sent to the applicant device.
[0167] In a possible implementation, when judging whether the encrypted electronic seal image and the original electronic seal image corresponding to the seal mark belong to the same seal subject, the encrypted electronic seal image and the original electronic seal image corresponding to the seal mark can be compared pixel by pixel to obtain the similarity of the two images. If the similarity is higher than a set similarity threshold, it can be considered that the encrypted electronic seal image and the original electronic seal image corresponding to the seal mark belong to the same seal subject. On the contrary, if the similarity is not higher than the set similarity threshold, it can be considered that the encrypted electronic seal image and the original electronic seal image corresponding to the seal mark belong to different seal subjects. Among them, the present application does not specifically limit the similarity threshold, which can be flexibly set according to needs.
[0168] In addition, in a possible implementation, when judging whether the encrypted electronic seal image and the original electronic seal image corresponding to the seal logo belong to the same seal body, the text in the encrypted electronic seal image and the original electronic seal image can also be extracted respectively to judge whether the text in the two seal images is the same. If it is the same, it can be considered that the encrypted electronic seal image and the original electronic seal image corresponding to the seal logo belong to the same seal body. Otherwise, if the text in the two seal images is different, it can be considered that the encrypted electronic seal image and the original electronic seal image corresponding to the seal logo belong to different seal bodies.
[0169] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 5 , Figure 5 A schematic diagram of a fourth electronic seal encryption process provided by some embodiments is shown, and the process includes the following steps:
[0170] S501: The applicant device encodes the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and sends the first encoding vector and the seal identification of the original electronic seal image to the reviewer device; wherein the encoder is an encoder in a certain autoencoder.
[0171] S502: After receiving the first coding vector, the reviewing device decodes the first coding vector based on a decoder in a locally stored autoencoder to generate an encrypted electronic seal image.
[0172] S503: The reviewer's device obtains the original electronic seal image corresponding to the seal identification from the locally stored seal image, compares the encrypted electronic seal image with the original electronic seal image corresponding to the seal identification, and determines whether the two belong to the same seal subject. If so, the encrypted electronic seal image is sent to the applicant's device.
[0173] S504: The applicant device receives the encrypted electronic seal image sent by the reviewer device, and uses the encrypted electronic seal image to generate an electronic contract, etc.
[0174] Embodiment 7:
[0175] In order to improve efficiency, based on the above embodiments, in the embodiment of the present application, the applicant device is further used for:
[0176] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0177] In a possible implementation, considering that in addition to the area where the seal is located, the electronic seal image usually also contains a blank area, and the blank area generally has no information, if the entire original electronic seal image is input into the encoder and the blank area is also encoded, it will cause a waste of resources and reduce efficiency. In order to improve efficiency, before the original electronic seal image is input into the encoder, the sub-image of the area where the seal is located in the original electronic seal image can be extracted, and only the extracted sub-image of the area where the seal is located is input into the encoder. The encoder only encodes the sub-image of the area where the seal is located. Compared with encoding the entire original electronic seal image including the blank area, efficiency can be improved.
[0178] Optionally, a positioning algorithm or the like may be used to extract a sub-image of the area where the seal is located in the original electronic seal image, which will not be described in detail here.
[0179] Similarly, when the reviewing device needs to generate a second coding vector and before inputting the original electronic seal image into the encoder, it can also extract the sub-image of the seal area in the original electronic seal image based on a positioning algorithm, etc., and input the extracted sub-image into the encoder. This will not be repeated here.
[0180] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 6 , Figure 6 A fifth electronic seal encryption process schematic diagram provided by some embodiments is shown, and the process includes the following steps:
[0181] S601: The applicant device extracts a sub-image of the area where the seal is located in the original electronic seal image, inputs the extracted sub-image into the encoder, encodes the sub-image based on the encoder, generates a first encoding vector, and sends the first encoding vector to the reviewer device; wherein the encoder is an encoder obtained from the reviewer device, and the encoder is an encoder in the autoencoder.
[0182] S602: The reviewer device decodes the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and sends the encrypted electronic seal image to the applicant device.
[0183] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 7 , Figure 7 A sixth electronic seal encryption process schematic diagram provided by some embodiments is shown, and the process includes the following steps:
[0184] S701: The applicant device extracts a sub-image of the area where the seal is located in the original electronic seal image, inputs the extracted sub-image into the encoder, encodes the sub-image based on the encoder, generates a first encoding vector, and sends the first encoding vector and the seal identifier corresponding to the original electronic seal image to the reviewer device; wherein the encoder is an encoder obtained from the reviewer device, and the encoder is an encoder in the autoencoder.
[0185] S702: The reviewing device obtains the original electronic seal image corresponding to the seal identification from the seal image stored in itself, extracts the sub-image of the area where the seal is located in the original electronic seal image, and inputs the extracted sub-image into the encoder in the locally stored autoencoder to generate a second encoding vector.
[0186] S703: The reviewer device compares the first coding vector and the second coding vector to see if they are the same. If they are the same, the first coding vector is decoded based on the decoder in the saved autoencoder to generate an encrypted electronic seal image, and the encrypted electronic seal image is sent to the applicant device.
[0187] For ease of understanding, the electronic seal encryption process provided by this application is explained below through a specific embodiment. Figure 8 , Figure 8 A seventh electronic seal encryption process schematic diagram provided by some embodiments is shown. Assuming that the autoencoder is a 6-layer U-shaped autoencoder, the applicant device can use an interpolation algorithm, etc. to adjust the size of the original electronic seal image to a set size that meets the requirements of the autoencoder input layer before inputting the original electronic seal image into the encoder in the autoencoder. For example, the size of the original electronic seal image can be adjusted to 256 pixels × 256 pixels. The original electronic seal image can correspond to three RGB color channels. The image parameters of the original electronic seal image (input image) are expressed as W×H×C, where W is the original electronic seal image (in pixels), H is the height of the original electronic seal image (in pixels), and C is the number of channels. The image parameters of the original electronic seal image can be 256×256×3.
[0188] After the applicant's device inputs the original electronic seal image into the encoder, the original electronic seal image can undergo, for example, three convolution operations. Assuming that the first convolution layer corresponds to 96 1×1 convolution kernels and the convolution step size is configured to 4, then after the first convolution operation of the first convolution layer, the image size is reduced to 1 / 4 of the original size, and the number of channels becomes 96, that is, after the first convolution operation, the image parameters are converted to 64×64×96. The principle is the same as the first convolution operation. Assume that after the second convolution operation, the image parameters are converted to 4×4×256. Assume that after the third convolution operation, a coding vector (first coding vector) with parameters of 1×1×384 is obtained.
[0189] The applicant device can send a 1×1×384 encoding vector (first encoding vector) to the reviewer device. After receiving the encoding vector, the reviewer device can input the 1×1×384 encoding vector (first encoding vector) into the decoder in the autoencoder. The first encoding vector can be subjected to, for example, 3 deconvolution operations in the decoder to output an encrypted electronic seal image. It is assumed that after the first deconvolution operation, the image parameters are converted to 4×4×256 image parameters. It is assumed that after the second deconvolution operation, the image parameters are converted to 64×64×96. It is assumed that after the third deconvolution operation, an encrypted electronic seal image with the same image parameters as the original electronic seal image can be obtained, that is, the image parameters of the encrypted electronic seal image can also be 256×256×3.
[0190] The autoencoder network model in the embodiment of the present application is small and light, has low computing power requirements, and can run on devices with limited computing power such as smart phones. The entire electronic seal encryption process is simple and easy to operate, which can quickly and easily improve the security of the electronic seal use process.
[0191] Embodiment 8:
[0192] Based on the same inventive concept, this application provides an electronic seal encryption method, which is applied to the auditing device, see Fig. 9 , Fig. 9 A schematic diagram of an eighth electronic seal encryption process provided by some embodiments is shown, and the method comprises the following steps:
[0193] S901: The reviewer device receives a first coding vector sent by the applicant device, wherein the first coding vector is generated by the applicant device by encoding an original electronic seal image to be encrypted based on an encoder obtained by the applicant device, and the encoder is an encoder in an autoencoder.
[0194] S902: The reviewer device decodes the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and sends the encrypted electronic seal image to the applicant device.
[0195] In a possible implementation manner, after receiving the first encoding vector sent by the applicant device and before decoding the first encoding vector based on the decoder in the stored autoencoder, the method further includes:
[0196] Encode the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second encoding vector; and compare whether the first encoding vector is the same as the second encoding vector. If they are the same, perform a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant's device.
[0197] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0198] Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
[0199] In a possible implementation, the method further includes:
[0200] Receiving the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device;
[0201] Determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added thereto; if so, determine that the electronic seal image of the electronic file is compliant; otherwise, determine that the electronic seal image of the electronic file is not compliant.
[0202] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0203] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0204] In a possible implementation manner, after generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes:
[0205] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0206] Based on the same inventive concept, the present application also provides an electronic seal encryption method, which is applied to the applicant's device, see Fig.10 , Fig.10 A ninth electronic seal encryption process schematic diagram provided by some embodiments is shown, the method comprising the following steps:
[0207] S1001: The applicant's device encodes the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector.
[0208] S1002: The applicant device sends the first coding vector to the auditor device; wherein the encoder is an encoder in an autoencoder; the auditor device decodes the first coding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image, and the auditor device sends the encrypted electronic seal image to the applicant device.
[0209] In a possible implementation manner, sending the first encoding vector to a reviewer device includes:
[0210] The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
[0211] In a possible implementation manner, sending the first encoding vector to a reviewer device includes:
[0212] The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
[0213] In a possible implementation, the method further includes:
[0214] The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
[0215] In a possible implementation manner, before the encoder based on the obtained code encodes the original electronic seal image to be encrypted and generates the first encoding vector, the method further includes:
[0216] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0217] In a possible implementation manner, the obtained encoder is obtained from the auditing device.
[0218] Based on the same inventive concept, the present application also provides an electronic seal encryption method, see Fig.11 , Fig.11 A schematic diagram of a tenth electronic seal encryption process provided by some embodiments is shown. The method is applied to an electronic device, which may be a PC, a mobile terminal, or a server. The method comprises the following steps:
[0219] S1101: Encode the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector.
[0220] S1102: Decode the first encoding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image.
[0221] Embodiment 9:
[0222] Based on the same inventive concept, this application provides an electronic seal encryption device, see Fig.12 , Fig.12 A schematic diagram of an electronic seal encryption device 1200 provided in some embodiments is shown, the device is applied to a reviewer device, and the device includes:
[0223] A receiving module 1201 is used to receive a first coding vector sent by an applicant device, wherein the first coding vector is generated by the applicant device by encoding the original electronic seal image to be encrypted based on an obtained encoder, and the encoder is an encoder in an autoencoder;
[0224] The first decoding module 1202 is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
[0225] In a possible implementation manner, the device further includes:
[0226] A first encoding module 1203 is used to encode the original electronic seal image corresponding to the seal mark based on the stored encoder to generate a second encoding vector;
[0227] The first decoding module 1202 is also used to compare whether the first coding vector is the same as the second coding vector. If they are the same, a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder is performed, wherein the seal mark is the seal mark of the original electronic seal image obtained from the applicant's device.
[0228] In a possible implementation manner, the first decoding module 1202 is further configured to:
[0229] Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
[0230] In a possible implementation, the device further includes:
[0231] The judgment module 1204 is used to receive the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device; determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added, and if so, determine that the electronic seal image of the electronic file is compliant; otherwise, determine that the electronic seal image of the electronic file is not compliant.
[0232] In a possible implementation manner, the first decoding module 1202 is further configured to:
[0233] It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
[0234] In a possible implementation manner, the first decoding module 1202 is further configured to:
[0235] The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
[0236] Based on the same inventive concept, this application provides an electronic seal encryption device, see Fig.13 , Fig.13 A schematic diagram of another electronic seal encryption device 1300 provided in some embodiments is shown, the device is applied to an applicant's device, and the device includes:
[0237] The second encoding module 1301 is used to encode the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector;
[0238] The sending module 1302 is used to send the first coding vector to the auditing device; wherein the encoder is an encoder in an autoencoder; the auditing device decodes the first coding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image to the applicant device.
[0239] In a possible implementation manner, the sending module 1302 is specifically configured to:
[0240] The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
[0241] In a possible implementation manner, the sending module 1302 is specifically configured to:
[0242] The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
[0243] In a possible implementation manner, the sending module 1302 is further configured to:
[0244] The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
[0245] In a possible implementation manner, the second encoding module 1301 is further configured to:
[0246] A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
[0247] In a possible implementation manner, the obtained encoder is obtained from the auditing device.
[0248] Based on the same inventive concept, this application provides an electronic seal encryption device, see Fig.14 , Fig.14 A schematic diagram of another electronic seal encryption device 1400 provided in some embodiments is shown, the device comprising:
[0249] The third encoding module 1401 is used to encode the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector;
[0250] The second decoding module 1402 is used to decode the first encoding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image.
[0251] Embodiment 10:
[0252] Based on the same inventive concept, on the basis of the above embodiments, the present application embodiment further provides an electronic device, which can realize the functions of the electronic seal encryption device discussed above, please refer to Fig.15, Fig.15 A schematic diagram of the structure of an electronic device provided in some embodiments is shown, the electronic device comprising: a processor 1501, a communication interface 1502, a memory 1503 and a communication bus 1504, wherein the processor 1501, the communication interface 1502, and the memory 1503 communicate with each other through the communication bus 1504;
[0253] The memory 1503 stores a computer program. When the program is executed by the processor 1501, the processor 1501 executes any of the electronic seal encryption methods discussed above, and the repeated parts are not repeated here.
[0254] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0255] The communication interface 1502 is used for communication between the above electronic device and other devices.
[0256] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0257] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0258] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium, and a computer program product includes: a computer program code. When the computer program code runs on a computer, the computer executes any of the electronic seal encryption methods discussed above, and the repeated parts will not be repeated.
[0259] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.
[0260] Based on the same inventive concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the electronic seal encryption methods discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the electronic seal encryption method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0261] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0262] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0263] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0264] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0265] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. An electronic seal encryption system, characterized in that: The system comprises: The applicant device is used to encode the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector, and send the first encoding vector to the reviewer device; wherein the encoder is an encoder in an autoencoder; The reviewer device is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
2. The system according to claim 1, characterized in that The applicant device is also used for: Sending the seal identification of the original electronic seal image to the reviewer device; The auditing device is also used for: Based on the saved encoder, the original electronic seal image corresponding to the seal logo is encoded to generate a second encoding vector; and the first encoding vector is compared with the second encoding vector to see if they are the same. If they are the same, a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder is performed.
3. The system according to claim 1, characterized in that The applicant device is also used for: Sending the file identification information of the electronic file to be used with the encrypted electronic seal image to the reviewer device; The auditing device is also used for: The document identification information is added at a set position of the encrypted electronic seal image, and the encrypted electronic seal image with the document identification information added is sent to the applicant device.
4. The system according to claim 3, characterized in that The applicant device is also used for: Sending the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file to the reviewer device; The auditing device is also used for: Determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added thereto; if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
5. The system according to claim 1, characterized in that The auditing device is also used for: It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
6. The system according to claim 1, characterized in that The auditing device is also used for: The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal body. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed; wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
7. The system according to claim 1, characterized in that The applicant device is also used for: A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
8. The system according to any one of claims 1 to 7, characterized in that: The encoder obtained by the applicant device is obtained from the auditor device.
9. An electronic seal encryption method, characterized in that: The method is applied to an auditing device, and the method includes: Receiving a first coding vector sent by an applicant device, wherein the first coding vector is generated by the applicant device encoding an original electronic seal image to be encrypted based on an obtained encoder, and the encoder is an encoder in an autoencoder; The first coding vector is decoded based on the stored decoder in the autoencoder to generate an encrypted electronic seal image, and the encrypted electronic seal image is sent to the applicant device.
10. The method according to claim 9, characterized in that After receiving the first encoding vector sent by the applicant device and before decoding the first encoding vector based on the decoder in the stored autoencoder, the method further includes: Encode the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second encoding vector; and compare whether the first encoding vector is the same as the second encoding vector. If they are the same, perform a subsequent step of decoding the first encoding vector based on the decoder in the saved autoencoder, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant's device.
11. The method according to claim 9, characterized in that After generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes: Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
12. The method according to claim 11, characterized in that The method further comprises: Receiving the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device; Determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added thereto; if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
13. The method according to claim 9, characterized in that After generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes: It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
14. The method according to claim 9, characterized in that After generating the encrypted electronic seal image and before sending the encrypted electronic seal image to the applicant device, the method further includes: The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
15. An electronic seal encryption method, characterized in that: The method is applied to an applicant device, and the method comprises: Encoding the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector; The first coding vector is sent to the auditing device; wherein the encoder is an encoder in an autoencoder; the auditing device decodes the first coding vector based on the decoder in the autoencoder stored to generate an encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image to the applicant device.
16. The method according to claim 15, characterized in that The sending the first encoding vector to the auditing device comprises: The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
17. The method according to claim 15, characterized in that The sending the first encoding vector to the auditing device comprises: The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
18. The method according to claim 17, characterized in that The method further comprises: The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
19. The method according to claim 15, characterized in that Before encoding the original electronic seal image to be encrypted based on the obtained encoder to generate the first encoding vector, the method further includes: A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
20. The method according to any one of claims 15 to 19, characterized in that: The obtained encoder is obtained from the auditing device.
21. An electronic seal encryption method, characterized in that: The method comprises: Encoding the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector; The first encoding vector is decoded based on the decoder in the autoencoder to generate an encrypted electronic seal image.
22. An electronic seal encryption device, characterized in that: The device is applied to the auditing device, and the device includes: A receiving module, used for receiving a first coding vector sent by an applicant device, wherein the first coding vector is generated by the applicant device by encoding the original electronic seal image to be encrypted based on an obtained encoder, and the encoder is an encoder in an autoencoder; The first decoding module is used to decode the first coding vector based on the decoder in the stored autoencoder to generate an encrypted electronic seal image, and send the encrypted electronic seal image to the applicant device.
23. The device according to claim 22, characterized in that The device further comprises: A first encoding module, used for encoding the original electronic seal image corresponding to the seal mark based on the stored encoder to generate a second encoding vector; The first decoding module is also used to compare whether the first coding vector is the same as the second coding vector. If they are the same, a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder is performed, wherein the seal mark is the seal mark of the original electronic seal image obtained from the applicant's device.
24. The device according to claim 22, characterized in that The first decoding module is further used for: Add file identification information at a set position of the encrypted electronic seal image, and send the encrypted electronic seal image with the file identification information to the applicant device, wherein the file identification information is the file identification information of the electronic file to be used with the encrypted electronic seal image obtained from the applicant device.
25. The device according to claim 24, characterized in that The device also includes: The adjudication module is used to receive the electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file sent by the applicant device; determine whether the encrypted electronic seal image contained in the electronic file is the same as the saved encrypted electronic seal image with the file identification information added, and if so, determine that the electronic seal image of the electronic file is compliant; if not, determine that the electronic seal image of the electronic file is not compliant.
26. The device according to claim 22, characterized in that The first decoding module is further used for: It is determined whether the generated encrypted electronic seal image is garbled. If not, the subsequent step of sending the encrypted electronic seal image to the applicant's device is performed.
27. The device according to claim 22, characterized in that The first decoding module is further used for: The encrypted electronic seal image is compared with the original electronic seal image corresponding to the seal identification to determine whether the two belong to the same seal subject. If so, the subsequent step of sending the encrypted electronic seal image to the applicant device is performed, wherein the seal identification is the seal identification of the original electronic seal image obtained from the applicant device.
28. An electronic seal encryption device, characterized in that: The device is applied to the applicant's equipment, and the device includes: A second encoding module, used for encoding the original electronic seal image to be encrypted based on the obtained encoder to generate a first encoding vector; A sending module is used to send the first coding vector to the auditing device; wherein the encoder is an encoder in an autoencoder; the auditing device decodes the first coding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image to the applicant device.
29. The device according to claim 28, characterized in that The sending module is specifically used for: The first coding vector and the seal identification of the original electronic seal image are sent to the auditing device; the auditing device encodes the original electronic seal image corresponding to the seal identification based on the saved encoder to generate a second coding vector, and when the first coding vector is the same as the second coding vector, the auditing device performs a subsequent step of decoding the first coding vector based on the decoder in the saved autoencoder.
30. The device according to claim 28, characterized in that The sending module is specifically used for: The first coding vector and the file identification information of the electronic file to be used with the encrypted electronic seal image are sent to the auditing device; the auditing device adds the file identification information at a set position of the encrypted electronic seal image, and the auditing device sends the encrypted electronic seal image with the file identification information added to the applicant device.
31. The device according to claim 30, characterized in that The sending module is further used for: The electronic file containing the encrypted electronic seal image and the file identification information corresponding to the electronic file are sent to the auditing device; when the encrypted electronic seal image contained in the electronic file by the auditing device is the same as the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be compliant; and when the encrypted electronic seal image contained in the electronic file by the auditing device is different from the saved encrypted electronic seal image with the file identification information added, the electronic seal image of the electronic file is determined to be non-compliant.
32. The device according to claim 28, characterized in that The second encoding module is further used for: A sub-image of the area where the seal is located in the original electronic seal image is extracted, and the extracted sub-image is input into the encoder.
33. The device according to any one of claims 28 to 32, characterized in that The obtained encoder is obtained from the auditing device.
34. An electronic seal encryption device, characterized in that: The device comprises: A third encoding module, used for encoding the original electronic seal image to be encrypted based on the encoder in the autoencoder to generate a first encoding vector; The second decoding module is used to decode the first encoding vector based on the decoder in the autoencoder to generate an encrypted electronic seal image.
35. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in any one of claims 9-21 according to the obtained program instructions.
36. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 9 to 21.
37. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 9 to 21.
Citation Information
Patent Citations
Electronic contract processing method and device and electronic equipment
CN111859439A
Watermark adding method and device, watermark identification method and device, equipment and readable storage medium
CN117615075A
Encoder, decoder, encoding method, decoding method and their program
JP2007081596A
Digital signature verification processes, methods and systems
US8612763B1
