Electronic file evidence storage method and device and electronic file verification method and device

By embedding anti-counterfeiting images in electronic files and generating electronic signatures, and combining blockchain and timestamp signatures, the problem of electronic document storage methods in the existing technology being susceptible to forgery and tampering is solved, achieving more efficient and safe and credible evidence and verification.

CN119416272AInactive Publication Date: 2025-02-11BEIJING SHENZHOU LOONGSON ANCHUANG INFORMATION TECH CO LTD

Patent Information

Application Number
CN202510012211.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2025-02-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing electronic documents are stored in evidence relying on a single electronic signature verification method, which is difficult to effectively prevent counterfeiting and is susceptible to forgery and tampering.

Method used

By generating anti-counterfeiting images, embedding them into electronic files, and hashing them, generating electronic signatures, combining blockchain and timestamp signatures, the dual storage and verification of electronic files can be achieved.

Benefits of technology

It enhances the anti-counterfeiting ability of electronic files, ensures the authenticity and integrity of files, and improves the security and credibility of evidence storage and verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119416272A_ABST
    Figure CN119416272A_ABST
Patent Text Reader

Abstract

The invention provides an electronic file evidence storage method and device and an electronic file verification method and device, and relates to the technical field of computers. The electronic file evidence storage method comprises the steps that a first electronic file needing to be stored is acquired; generating an anti-counterfeiting image based on the first electronic file, wherein the anti-counterfeiting image comprises a unique identifier and traceability information of the first electronic file; embedding the anti-counterfeiting image into the first electronic file to obtain a second electronic file; performing hash processing on the second electronic file to obtain a first hash value; and based on a preset first asymmetric encryption private key, performing encryption processing on the first hash value to obtain an electronic signature, and embedding the electronic signature into a second electronic file to obtain an evidence storage file. According to the electronic file evidence storage method, the electronic file verification method and the electronic file verification device, the authenticity and the integrity of the electronic file can be verified, the strong anti-fake capability is achieved, and therefore the high efficiency, the safety and the credibility of the electronic file are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to an electronic document storage method, verification method and device. Background Art

[0002] With the development of digital information technology, electronic document storage technology has been widely used in many fields such as law, finance, and government affairs. However, the existing electronic document storage methods usually rely on a single electronic signature verification method. Although it can achieve the authenticity and non-repudiation of documents, it is slightly insufficient in anti-counterfeiting and is vulnerable to the threat of forgery and tampering. Summary of the invention

[0003] The present disclosure provides an electronic document storage method, a verification method and a device to at least solve the above technical problems existing in the prior art.

[0004] According to a first aspect of the present disclosure, a method for electronic document preservation is provided, including: obtaining a first electronic file to be preserved; generating an anti-counterfeiting image based on the first electronic file, wherein the anti-counterfeiting image includes a unique identification and traceability information of the first electronic file; embedding the anti-counterfeiting image into the first electronic file to obtain a second electronic file; performing hash processing on the second electronic file to obtain a first hash value; encrypting the first hash value based on a preset first asymmetric encryption private key to obtain an electronic signature, and embedding the electronic signature into the second electronic file to obtain a preserved document.

[0005] In one possible implementation, a method for electronic document storage also includes: obtaining timestamp information corresponding to the electronic signature; encrypting the timestamp information based on a preset second asymmetric encryption private key to obtain a timestamp signature, and embedding the timestamp signature into the storage file.

[0006] In one possible implementation, a method for storing electronic documents further includes: uploading the anti-counterfeiting image, the first hash value, and the electronic signature to a blockchain database.

[0007] In one possible implementation, an electronic document storage method further includes: backing up the storage document, the anti-counterfeiting image, the first hash value and the electronic signature to a server.

[0008] According to a second aspect of the present disclosure, an electronic document verification method is provided, including: obtaining a target electronic document to be verified; scanning an anti-counterfeiting image on the target electronic document to obtain a unique identifier and traceability information of the target electronic document; obtaining a corresponding stored evidence file from a server based on the unique identifier; decrypting an electronic signature in the stored evidence file based on a preset first asymmetric encryption public key to obtain a first hash value; hashing the target electronic document after removing the electronic signature to obtain a second hash value; comparing the first hash value with the second hash value to obtain a first verification result.

[0009] In one possible implementation, an electronic file verification method also includes: decrypting the timestamp signature in the target electronic file based on a preset second asymmetric encryption public key to obtain the timestamp information of the target electronic file; verifying the timestamp information to obtain a second verification result indicating whether the timestamp information has been modified.

[0010] In one possible implementation, an electronic document verification method further includes: obtaining a corresponding third hash value from a blockchain database based on the unique identifier; and comparing the third hash value with the second hash value to obtain a third verification result.

[0011] In one possible implementation, an electronic file verification method further includes: based on the traceability information, verifying the source of the target electronic file to obtain a fourth verification result indicating whether the source of the target electronic file is legal.

[0012] According to a third aspect of the present disclosure, an electronic document storage device is provided, comprising: a first acquisition module, used to acquire a first electronic file to be stored; a generation module, used to generate an anti-counterfeiting image based on the first electronic file, wherein the anti-counterfeiting image includes a unique identification and traceability information of the first electronic file; an embedding module, used to embed the anti-counterfeiting image into the first electronic file to obtain a second electronic file; a first hash module, used to perform hash processing on the second electronic file to obtain a first hash value; an encryption module, used to perform encryption processing on the first hash value based on a preset first asymmetric encryption private key to obtain an electronic signature; the embedding module is also used to embed the electronic signature into the second electronic file to obtain a storage file.

[0013] According to a fourth aspect of the present disclosure, an electronic document verification device is provided, comprising: a second acquisition module, used to obtain a target electronic file to be verified; a scanning module, used to scan the anti-counterfeiting image on the target electronic file to obtain a unique identification and traceability information of the target electronic file; the second acquisition module is also used to obtain a corresponding evidence file from a server based on the unique identification; a decryption module, used to decrypt the electronic signature in the evidence file based on a preset first asymmetric encryption public key to obtain a first hash value; a second hash module, used to hash the target electronic file after removing the electronic signature to obtain a second hash value; and a verification module, used to compare the first hash value with the second hash value to obtain a first verification result.

[0014] According to a fifth aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.

[0015] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the present disclosure.

[0016] The disclosed electronic document storage method, verification method and device perform dual storage based on anti-counterfeiting images and electronic signatures when storing electronic documents, and perform dual verification based on anti-counterfeiting images and electronic signatures when verifying electronic documents. This not only enables verification of the authenticity and integrity of electronic documents, but also has powerful anti-counterfeiting capabilities, thereby ensuring the efficiency, security and credibility of electronic documents.

[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which: In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.

[0019] Figure 1A schematic diagram of a process of an electronic document storage method according to an embodiment of the present disclosure is shown; Figure 2 A schematic diagram showing a flow chart of an electronic document verification method according to an embodiment of the present disclosure is shown; Figure 3 A schematic diagram of the structure of an electronic document storage device according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of the structure of an electronic document verification device according to an embodiment of the present disclosure is shown; Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0020] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0021] Figure 1 A schematic diagram of a process of an electronic document storage method according to an embodiment of the present disclosure is shown. Figure 1 As shown, a method for storing electronic documents includes: Step S101, obtaining a first electronic file to be stored.

[0022] In this embodiment, the first electronic file is any digital file that needs to be stored as evidence. The first electronic file can be a text file, an image file, an audio file, a video file, etc. The first electronic file often contains important information, so the first electronic file needs to be stored as evidence to ensure the authenticity and integrity of the first electronic file.

[0023] Step S102: generating an anti-counterfeiting image based on the first electronic file.

[0024] In this embodiment, the anti-counterfeiting image includes the unique identification and traceability information of the first electronic file, and the anti-counterfeiting image can be a QR code, a barcode, or an image watermark generated using a key, etc. In one example, a hash calculation can be performed on the first electronic file, and the obtained hash value can be determined as the unique identification of the first electronic file, and then the traceability information of the first electronic file can be determined, including information such as the file source, creator, creation time, and modification record. The traceability information can be extracted from the metadata of the first electronic file itself, or can be provided by the user or obtained from other trusted sources. Finally, the unique identification and traceability information of the first electronic file are integrated into the image watermark to obtain the anti-counterfeiting image.

[0025] Step S103: embed the anti-counterfeiting image into the first electronic file to obtain a second electronic file.

[0026] In this embodiment, when the anti-counterfeiting image is embedded in the first electronic file, the transparency and position of the anti-counterfeiting image can be adjusted to ensure that the anti-counterfeiting image can stably exist in the first electronic file and the anti-counterfeiting image will not affect the reading of the content of the first electronic file.

[0027] Step S104: Perform hash processing on the second electronic file to obtain a first hash value.

[0028] In this embodiment, the second electronic file can be hashed using hash algorithms such as MD5, SHA-256, and SHA-512. The hashing process takes into account the content of the first electronic file to be stored and the anti-counterfeiting image.

[0029] Step S105, based on the preset first asymmetric encryption private key, encrypt the first hash value to obtain an electronic signature, and embed the electronic signature into the second electronic file to obtain an evidence file.

[0030] In this embodiment, it is necessary to pre-generate a first asymmetric encryption key pair, including a first asymmetric encryption private key and a first asymmetric encryption public key. After obtaining the first hash value, the first hash value can be encrypted based on the first asymmetric encryption private key through asymmetric encryption algorithms such as elliptic curve cryptography (ECC) algorithm and digital signature algorithm (DSA) to obtain an electronic signature. The electronic signature can represent the content of the first electronic file and the information of the anti-counterfeiting image. Then, the electronic signature is embedded in the second electronic file to obtain an evidence file.

[0031] In the present disclosure, for a first electronic file that needs to be stored as evidence, its corresponding anti-counterfeiting image is first generated, and then a second electronic file containing the content of the first electronic file and the anti-counterfeiting image is hashed, and the obtained first hash value includes the content of the first electronic file and the information of the anti-counterfeiting image, and then the first hash value is encrypted, and the obtained electronic signature can represent the content of the first electronic file and the information of the anti-counterfeiting image, and finally the electronic signature is embedded in the second electronic file to obtain a stored document. Thus, the stored document includes the content of the first electronic file that needs to be stored as evidence, the anti-counterfeiting image, and the electronic signature that represents the content of the first electronic file and the information of the anti-counterfeiting image. The dual storage of the anti-counterfeiting image and the electronic signature can determine the authenticity and integrity of the content of the first electronic file that needs to be stored as evidence, and also has a strong anti-counterfeiting performance to avoid forgery and tampering of the first electronic file.

[0032] In another embodiment, a method for electronic document storage also includes: obtaining timestamp information corresponding to the electronic signature; encrypting the timestamp information based on a preset second asymmetric encryption private key to obtain a timestamp signature, and embedding the timestamp signature into the storage file.

[0033] In this embodiment, the timestamp information corresponding to the electronic signature can be requested from a timestamp authority (TSA) server, or the timestamp information for generating the electronic signature can be determined in the local system. Then, based on a preset second asymmetric encryption private key, the timestamp information is encrypted using an asymmetric encryption algorithm such as ECC and DSA to obtain a timestamp signature, which is then embedded in the evidence file. That is, the evidence file includes the content of the first electronic file to be stored, the anti-counterfeiting image, the electronic signature of the information representing the content of the first electronic file and the anti-counterfeiting image, and the timestamp signature. The timestamp signature can not only be used to determine the generation time of the electronic signature, but also prevent the electronic signature from being tampered with after it is generated.

[0034] In another embodiment, a method for storing electronic documents further includes: uploading the anti-counterfeiting image, the first hash value and the electronic signature to a blockchain database.

[0035] In this embodiment, the anti-counterfeiting image, the first hash value and the electronic signature obtained in the process of storing the first electronic document can be uploaded to the blockchain database to ensure the integrity and non-tamperability of these data.

[0036] It should be emphasized that the evidence file corresponding to the first electronic file can also be uploaded to the blockchain database, but in order to save the storage cost of the blockchain, increase the speed of data on-chain and ensure the security of the data, the evidence file is not uploaded to the blockchain database in this disclosure.

[0037] In another embodiment, a method for storing electronic documents further includes: backing up the stored documents, anti-counterfeiting images, first hash values ​​and electronic signatures to a server.

[0038] In this embodiment, the anti-counterfeiting image, the first hash value, the electronic signature and the stored file obtained during the storage of the first electronic file can be backed up to the server, so that the file to be verified can be subsequently verified and traced based on the information in the server.

[0039] Figure 2 A schematic diagram of a process of verifying an electronic document according to an embodiment of the present disclosure is shown. Figure 2 As shown, an electronic document verification method includes: Step S201, obtaining the target electronic file that needs to be verified.

[0040] In this embodiment, the target electronic file includes the content of the target electronic file, an anti-counterfeiting image and an electronic signature. The anti-counterfeiting image includes the unique identification and traceability information of the target electronic file. The electronic signature can represent the initial content of the target electronic file and the information of the anti-counterfeiting image when the target electronic file is stored. The target electronic file can be a text file, an image file, an audio file or a video file, etc.

[0041] Step S202, scanning the anti-counterfeiting image on the target electronic file to obtain the unique identification and traceability information of the target electronic file.

[0042] In this embodiment, scanning the anti-counterfeiting image on the target electronic file can obtain the unique identification and traceability information of the target electronic file, and the traceability information includes the file source, creator, creation time and modification record.

[0043] Step S203, obtaining the corresponding evidence file from the server based on the unique identifier.

[0044] In this embodiment, since the obtained evidence file has been backed up to the server after the target electronic file is stored, when verifying the target electronic file, it is necessary to obtain the evidence file corresponding to the target electronic file in the server. The evidence file is used to verify the target electronic file, and the evidence file includes the anti-counterfeiting image and electronic signature generated during the storage.

[0045] Step S204: based on the preset first asymmetric encryption public key, decrypt the electronic signature in the stored document to obtain a first hash value.

[0046] In this embodiment, the electronic signature of the stored document is generated based on a preset first asymmetric encryption private key. Therefore, it is necessary to decrypt the electronic signature in the stored document based on the first asymmetric encryption public key corresponding to the first asymmetric encryption private key to obtain a first hash value. The first hash value can represent the content and anti-counterfeiting image of the target electronic file when it is stored.

[0047] Step S205: performing hash processing on the target electronic file after the electronic signature is removed to obtain a second hash value.

[0048] In this embodiment, in order to ensure that the target electronic file has not been tampered with, it is necessary to compare the hash value of the target electronic file with the first hash value of the stored file corresponding to the target electronic file. Since the first hash value includes the initial content and anti-counterfeiting image of the target electronic file when it is stored, and the target electronic file includes the current content, anti-counterfeiting image and electronic signature of the target electronic file, it is necessary to first remove the electronic signature in the target electronic file, and then perform hash processing on the target electronic file to obtain a second hash value.

[0049] Step S206: compare the first Hash value with the second Hash value to obtain a first verification result.

[0050] In this embodiment, the first hash value represents the initial content and anti-counterfeiting image of the target electronic file when it is stored, and the second hash value represents the current content and anti-counterfeiting image of the target electronic file. If the first hash value is the same as the second hash value, it proves that the target electronic file has not been tampered with or forged after being stored; if the first hash value is different from the second hash value, it proves that the target electronic file may have been tampered with or forged after being stored.

[0051] In the present disclosure, for the target electronic file that needs to be verified, its anti-counterfeiting image is scanned to obtain the unique identification and traceability information of the target electronic file, and the evidence file corresponding to the target electronic file is obtained from the server based on the unique identification, and then the electronic signature in the evidence file is decrypted based on the preset first asymmetric encryption public key to obtain the first hash value, and the target electronic file after removing the electronic signature is hashed to obtain the second hash value, and finally the first hash value is compared with the second hash value to obtain the first verification result. Thus, by comparing the hash value of the target electronic file when it is stored with the current hash value of the target electronic file, it is possible to determine whether the target electronic file has been tampered with or forged from the time of storage to the present, and in the verification process, double verification is performed based on the anti-counterfeiting image and the electronic signature, which can not only realize the authenticity and integrity verification of the electronic file, but also has a strong anti-counterfeiting ability, thereby ensuring the efficiency, security and credibility of the electronic file.

[0052] In another embodiment, an electronic file verification method further includes: decrypting the timestamp signature in the target electronic file based on a preset second asymmetric encryption public key to obtain the timestamp information of the target electronic file; verifying the timestamp information to obtain a second verification result indicating whether the timestamp information has been modified.

[0053] In this embodiment, the target electronic file also includes a timestamp signature. When the target electronic file is stored, the timestamp signature is obtained by encrypting the timestamp information corresponding to the electronic signature based on a preset second asymmetric encryption private key. Therefore, when verifying the target electronic file, it is necessary to decrypt the timestamp signature in the target electronic file based on the second asymmetric encryption public key corresponding to the second asymmetric encryption private key to obtain the timestamp information of the target electronic file, and verify the timestamp information based on the timestamp authority server to determine whether the timestamp information has been modified after storage.

[0054] In another embodiment, an electronic document verification method further includes: obtaining a corresponding third hash value from a blockchain database based on the unique identifier; and comparing the third hash value with the second hash value to obtain a third verification result.

[0055] In this embodiment, after the target electronic file is stored, the anti-counterfeiting image, the first hash value and the electronic signature obtained in the storage process have been uploaded to the blockchain database. Therefore, when verifying the target electronic file, it is also necessary to obtain the corresponding third hash value from the blockchain database based on the unique identifier, and compare the third hash value with the current second hash value of the target electronic file. The third hash value is uploaded to the blockchain database after storage and cannot be tampered with. Therefore, if the current second hash value of the target electronic file is the same as the third hash value, it proves that the target electronic file has not been tampered with or forged after storage; if the current second hash value of the target electronic file is different from the third hash value, it proves that the target electronic file may be tampered with or forged after storage, which further ensures the authenticity, integrity and accuracy of the target electronic file.

[0056] In another embodiment, an electronic file verification method further includes: based on the traceability information, verifying the source of the target electronic file to obtain a fourth verification result indicating whether the source of the target electronic file is legal.

[0057] In this embodiment, the traceability information includes the file source, creator, creation time and modification record, etc. By comparing the traceability information with the information in the whitelist, it is possible to determine whether the source of the target electronic file is legal, thereby further ensuring the security of the target electronic file.

[0058] Figure 3 A schematic diagram of the structure of an electronic document storage device according to an embodiment of the present disclosure is shown. Figure 3 As shown, an electronic document storage device includes: The first acquisition module 10 is used to acquire the first electronic file to be stored; the generation module 11 is used to generate an anti-counterfeiting image based on the first electronic file, and the anti-counterfeiting image includes the unique identification and traceability information of the first electronic file; the embedding module 12 is used to embed the anti-counterfeiting image in the first electronic file to obtain a second electronic file; the first hash module 13 is used to hash the second electronic file to obtain a first hash value; the encryption module 14 is used to encrypt the first hash value based on a preset first asymmetric encryption private key to obtain an electronic signature; the embedding module 12 is also used to embed the electronic signature in the second electronic file to obtain a stored evidence file.

[0059] In one possible implementation, the first acquisition module 10 is also used to: obtain the timestamp information corresponding to the electronic signature; the encryption module 14 is also used to: encrypt the timestamp information based on a preset second asymmetric encryption private key, obtain the timestamp signature, and embed the timestamp signature into the evidence file.

[0060] In one possible implementation, an electronic document storage device also includes: an upload module, used to upload the anti-counterfeiting image, the first hash value and the electronic signature to the blockchain database.

[0061] In one possible implementation, an electronic document storage device further includes: a backup module, used to back up the storage document, the anti-counterfeiting image, the first hash value and the electronic signature to a server.

[0062] Figure 4 A schematic diagram of the structure of an electronic document verification device according to an embodiment of the present disclosure is shown. Figure 4 As shown, an electronic document verification device comprises: The second acquisition module 20 is used to acquire the target electronic file that needs to be verified; the scanning module 21 is used to scan the anti-counterfeiting image on the target electronic file to obtain the unique identification and traceability information of the target electronic file; the second acquisition module 20 is also used to acquire the corresponding evidence file from the server based on the unique identification; the decryption module 22 is used to decrypt the electronic signature in the evidence file based on the preset first asymmetric encryption public key to obtain a first hash value; the second hash module 23 is used to hash the target electronic file after removing the electronic signature to obtain a second hash value; the verification module 24 is used to compare the first hash value with the second hash value to obtain a first verification result.

[0063] In one possible implementation, the decryption module 22 is also used to: decrypt the timestamp signature in the target electronic file based on a preset second asymmetric encryption public key to obtain the timestamp information of the target electronic file; the verification module 24 is also used to: verify the timestamp information to obtain a second verification result indicating whether the timestamp information has been modified.

[0064] In one embodiment, the second acquisition module 20 is further used to: obtain a corresponding third hash value from the blockchain database based on the unique identifier; the verification module 24 is further used to: compare the third hash value with the second hash value to obtain a third verification result.

[0065] In one possible implementation, the verification module 24 is further used to: verify the source of the target electronic file based on the traceability information, and obtain a fourth verification result indicating whether the source of the target electronic file is legal.

[0066] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.

[0067] Figure 5A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0068] like Figure 5 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 to a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0069] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0070] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as an electronic document storage method and / or an electronic document verification method. For example, in some embodiments, an electronic document storage method and / or an electronic document verification method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of an electronic document storage method and / or an electronic document verification method described above may be executed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute an electronic document notarization method and / or an electronic document verification method in any other appropriate manner (eg, by means of firmware).

[0071] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0072] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0073] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0074] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0075] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0076] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0077] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0078] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0079] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An electronic document evidence storage method, characterized in that: The method comprises: Obtain the first electronic file that needs to be preserved; generating an anti-counterfeiting image based on the first electronic file, wherein the anti-counterfeiting image includes a unique identifier and traceability information of the first electronic file; Embedding the anti-counterfeiting image into the first electronic file to obtain a second electronic file; Performing hash processing on the second electronic file to obtain a first hash value; Based on a preset first asymmetric encryption private key, the first hash value is encrypted to obtain an electronic signature, and the electronic signature is embedded in the second electronic file to obtain an evidence file.

2. The method according to claim 1, characterized in that Also includes: Obtaining timestamp information corresponding to the electronic signature; Based on a preset second asymmetric encryption private key, the timestamp information is encrypted to obtain a timestamp signature, and the timestamp signature is embedded in the evidence file.

3. The method according to any one of claims 1 to 2, characterized in that: Also includes: The anti-counterfeiting image, the first hash value and the electronic signature are uploaded to a blockchain database.

4. The method according to any one of claims 1 to 2, characterized in that: Also includes: The stored evidence file, the anti-counterfeiting image, the first hash value and the electronic signature are backed up to a server.

5. An electronic document verification method, characterized in that: The method comprises: Obtain the target electronic file that needs to be verified; Scanning the anti-counterfeiting image on the target electronic file to obtain the unique identification and traceability information of the target electronic file; Obtaining a corresponding evidence file from a server based on the unique identifier; Decrypting the electronic signature in the stored document based on a preset first asymmetric encryption public key to obtain a first hash value; Performing hash processing on the target electronic file after the electronic signature is removed to obtain a second hash value; The first Hash value is compared with the second Hash value to obtain a first verification result.

6. The method according to claim 5, characterized in that Also includes: Decrypting the timestamp signature in the target electronic file based on a preset second asymmetric encryption public key to obtain timestamp information of the target electronic file; The timestamp information is verified to obtain a second verification result indicating whether the timestamp information is modified.

7. The method according to claim 5, characterized in that Also includes: Obtaining a corresponding third hash value from the blockchain database based on the unique identifier; The third Hash value is compared with the second Hash value to obtain a third verification result.

8. The method according to any one of claims 5 to 7, characterized in that: Also includes: Based on the traceability information, the source of the target electronic file is verified to obtain a fourth verification result indicating whether the source of the target electronic file is legal.

9. An electronic document storage device, characterized in that: The device comprises: A first acquisition module, used to acquire a first electronic file that needs to be stored as evidence; A generating module, configured to generate an anti-counterfeiting image based on the first electronic file, wherein the anti-counterfeiting image includes a unique identifier and traceability information of the first electronic file; An embedding module, used for embedding the anti-counterfeiting image into the first electronic file to obtain a second electronic file; A first hash module, configured to perform hash processing on the second electronic file to obtain a first hash value; An encryption module, used to encrypt the first hash value based on a preset first asymmetric encryption private key to obtain an electronic signature; The embedding module is further used to embed the electronic signature into the second electronic file to obtain a stored evidence file.

10. An electronic document verification device, characterized in that: The device comprises: The second acquisition module is used to acquire the target electronic file that needs to be verified; A scanning module, used to scan the anti-counterfeiting image on the target electronic file to obtain the unique identification and traceability information of the target electronic file; The second acquisition module is further used to acquire a corresponding evidence file from the server based on the unique identifier; A decryption module, used to decrypt the electronic signature in the stored document based on a preset first asymmetric encryption public key to obtain a first hash value; A second hash module, used to perform hash processing on the target electronic file after the electronic signature is removed to obtain a second hash value; The verification module is used to compare the first Hash value with the second Hash value to obtain a first verification result.

Citation Information

Patent Citations

  • Block chain-based steel ex-warehouse list anti-counterfeiting signature and verification method, and block chain-based steel ex-warehouse list anti-counterfeiting verification device

    CN114756900A

  • Electronic contract generation method based on format template

    CN114998922A

  • Electronic signature system and method taking PDF signature as core

    CN116842583A

  • Verification supporting server which supports verification of the stamp image inserted in the electronic document and the operating method thereof

    KR102417817B1

Cited By

  • Cross-domain transmission safety supervision method, system and device and storage medium

    CN121530754A