A paper document tampering detection method and device

By receiving paper documents uploaded by users, performing identity verification and hash value comparison, the problem of low accuracy and efficiency in paper document tampering detection is solved, achieving efficient and secure tampering detection and traceability.

CN119337346BActive Publication Date: 2025-12-09HEFEI DONGLIN SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411253595.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-06
Publication Date
2025-12-09
Estimated Expiration
2044-09-06

AI Technical Summary

Technical Problem

Existing technologies for detecting paper document tampering have low accuracy and efficiency, making it difficult to effectively identify illegal tampering of paper documents.

Method used

By receiving user-uploaded files to be tested, verifying identity, extracting file content page by page, calculating a set of hash values ​​using a preset algorithm, and comparing it with the pre-stored original file to detect whether the file has been tampered with, verifying user identity by combining biometrics and document information, and collecting modification proof information to determine the type of tampering and the level of impact.

Benefits of technology

It improves the accuracy and efficiency of paper document tampering detection, achieves document security and reliability, and enables the tracing of tampering behavior and the verification of its legitimacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119337346B_ABST
    Figure CN119337346B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of image detection, and discloses a paper document tampering detection method and device, which comprises the following steps: receiving a user-uploaded document to be detected, and performing identity recognition verification on the user; when the identity verification result indicates that the user meets preset identity requirements, the document content of the document to be detected is extracted page by page; a preset target algorithm is used to calculate the document content to be detected, so that a set of hash values to be detected corresponding to the document content to be detected is obtained; an original document corresponding to the document to be detected is screened from a preset document database according to the document to be detected; and whether the document to be detected is tampered with is detected according to the original document and the set of hash values to be detected. It can be seen that the application can improve the accuracy and efficiency of the tampering detection of the paper document, and the identity of the user is verified, so that the tampering can be traced back when the document is tampered with, and the safety and reliability of the document are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of image detection, in particular to a paper document tampering detection method and device. BACKGROUND

[0002] Important documents such as contracts, legal documents, and identification documents of paper carriers are widely used as proof of contracts. However, with the rapid development and popularization of digital technology and image printing and copying technology, the authenticity and integrity of paper documents have been unprecedentedly challenged. Illegal tampering of paper documents has a bad impact on social organizations and individuals.

[0003] Currently, the ways of illegal tampering of paper documents include contract page printing, text excavation and superimposed copying modification, and scanning modification and re-printing. In the prior art, the solution to the above problems is mainly to manually compare each page to determine whether the paper document has been tampered with, but the efficiency and accuracy are low. Alternatively, the paper document is subjected to OCR recognition, and then the text content is compared with the original text. However, this method relies too much on the OCR recognition result, and there are many false positives, and the recognition accuracy is also low. Therefore, it is particularly important to propose a technical solution that can improve the accuracy and efficiency of text tampering detection. SUMMARY

[0004] The present application provides a paper document tampering detection method and device, which can improve the accuracy and efficiency of text tampering detection.

[0005] To solve the above technical problems, the present application discloses a paper document tampering detection method in the first aspect, the method comprises:

[0006] Receiving a user uploaded file to be detected, and identifying and verifying the user to obtain an identity verification result corresponding to the user;

[0007] When the identity verification result indicates that the user meets the preset identity requirements, the content of the file to be detected is extracted from the file to be detected page by page, the content of the file to be detected includes a file to be detected identifier and a text to be detected;

[0008] The text to be detected is calculated by a preset target algorithm to obtain a set of hash values corresponding to the text to be detected, the set of hash values includes at least one hash value corresponding to the text to be detected;

[0009] According to the file to be detected identifier, the original file corresponding to the file to be detected is screened from the preset file database, and according to the original file and the set of hash values, it is detected whether the file to be detected is tampered with.

[0010] As an optional implementation, in the first aspect of the present application, the method further comprises:

[0011] extracting a file image of the original file corresponding to the to-be-detected file, and performing image enhancement processing on the file image to obtain a target image;

[0012] extracting original file content corresponding to the target image by paging, the original file content including original file identification and original text content corresponding to the original file;

[0013] calculating the original text content by a preset target algorithm to obtain a set of original hash values corresponding to the original text content;

[0014] encrypting and storing the original file content and the set of original hash values into a preset file database.

[0015] As an optional implementation, in the first aspect of the present application, the detecting whether the to-be-detected file is tampered according to the original file and the set of to-be-detected hash values comprises:

[0016] for each to-be-detected hash value in the set of to-be-detected hash values, determining an original hash value corresponding to the to-be-detected hash value in the set of original hash values corresponding to the original file;

[0017] for each to-be-detected hash value, detecting whether the to-be-detected hash value matches the original hash value, when the to-be-detected hash value matches the original hash value, determining that the to-be-detected text content corresponding to the to-be-detected hash value is not tampered, and when the to-be-detected hash value does not match the original hash value, determining that the to-be-detected text content corresponding to the to-be-detected hash value is tampered.

[0018] As an optional implementation, in the first aspect of the present application, the set of to-be-detected hash values further includes a position code corresponding to each to-be-detected hash value;

[0019] The method further comprises:

[0020] for each to-be-detected hash value, when the to-be-detected hash value does not match the original hash value, generating a private key according to the original hash value, and decrypting the original file according to the private key and the position code to obtain original text content in the original file corresponding to the original hash value;

[0021] For each of the to-be-detected hash values, the to-be-detected literal content corresponding to the to-be-detected hash value is compared with the original literal content corresponding to the original hash value, to obtain a literal content difference between the to-be-detected literal content and the original literal content, and annotation is performed in the to-be-detected file according to the literal content difference.

[0022] As an optional implementation form, in the first aspect of the present application, the identity verification of the user is performed to obtain an identity verification result corresponding to the user, and the identity verification of the user comprises:

[0023] Identity verification information of the user is collected, the identity verification information comprising identity document information and biometric information of the user;

[0024] It is judged whether the identity document information and the biometric information of the user match, and when the identity document information and the biometric information of the user match, an association relationship between the user and the to-be-detected file is determined in a preset file database;

[0025] When the association relationship indicates that the user does not have processing authority for the to-be-detected file, it is determined that the user does not meet a preset identity requirement, and when the association relationship indicates that the user has processing authority for the to-be-detected file, it is determined that the user meets the preset identity requirement.

[0026] As an optional implementation form, in the first aspect of the present application, the method further comprises:

[0027] For each of the literal content differences, modification proof information of the user for the literal content difference is collected, the modification proof information comprising at least one of a proof text, a proof number and a proof seal;

[0028] For each of the literal content differences, when the modification proof information of the user for the literal content difference is collected, the modification proof information is analyzed to judge whether the modification proof information can prove that the literal content difference meets a preset modification legality condition;

[0029] For each of the literal content differences, when the modification proof information can prove that the literal content difference meets the preset modification legality condition, the to-be-detected literal content corresponding to the literal content difference is updated into the file database;

[0030] For each of the literal content differences, when the modification proof information of the user for the literal content difference is not collected, or when the modification proof information cannot prove that the literal content difference meets the preset modification legality condition, the operation of performing annotation in the to-be-detected file according to the literal content difference is triggered to be executed.

[0031] As an optional implementation, in the first aspect of the present application, the method further comprises:

[0032] For each of the text content differences, a text tampering type is analyzed according to the text content difference in the to-be-detected file, and the text tampering type includes at least one of a text addition type, a text modification type, and a text deletion type.

[0033] For each of the text content differences, a tampering influence coefficient of the to-be-detected text content in the to-be-detected file relative to the original text content corresponding to the original hash value is determined according to the text content difference and the text tampering type.

[0034] According to the tampering influence coefficient of each of the text content differences, a file tampering influence level corresponding to the to-be-detected file is determined, and a file tampering reminder is given to a related person corresponding to the file tampering influence level.

[0035] The second aspect of the present application discloses a paper file tampering detection device, the device comprises:

[0036] The receiving module is configured to receive a to-be-detected file uploaded by a user, and perform identity recognition verification on the user to obtain an identity verification result corresponding to the user.

[0037] The extraction module is configured to, when the identity verification result indicates that the user meets a preset identity requirement, extract to-be-detected file content of the to-be-detected file page by page, wherein the to-be-detected file content includes a to-be-detected file identifier and to-be-detected text content.

[0038] The calculation module is configured to calculate the to-be-detected text content by using a preset target algorithm to obtain a to-be-detected hash value set corresponding to the to-be-detected text content, wherein the to-be-detected hash value set includes at least one to-be-detected hash value corresponding to the to-be-detected text content.

[0039] The screening module is configured to screen an original file corresponding to the to-be-detected file in a preset file database according to the to-be-detected file identifier, and detect whether the to-be-detected file is tampered with according to the original file and the to-be-detected hash value set.

[0040] As an optional implementation, in the second aspect of the present application, the extraction module is further configured to extract a file image of the original file corresponding to the to-be-detected file, and perform image enhancement processing on the file image to obtain a target image.

[0041] The extraction module is further configured to extract, in pages, original file content corresponding to the target image, the original file content including original file identification and original text content corresponding to the original file;

[0042] The calculation module is further configured to calculate the original text content by using a preset target algorithm to obtain a set of original hash values corresponding to the original text content.

[0043] The device further comprises:

[0044] The storage module is configured to encrypt and store the original file content and the set of original hash values into a preset file database.

[0045] As an optional implementation, in the second aspect of the present application, the manner in which the screening module detects whether the to-be-detected file is tampered with according to the original file and the set of to-be-detected hash values specifically comprises:

[0046] For each to-be-detected hash value in the set of to-be-detected hash values, an original hash value corresponding to the to-be-detected hash value is determined in the set of original hash values corresponding to the original file.

[0047] For each to-be-detected hash value, it is detected whether the to-be-detected hash value matches the original hash value, when the to-be-detected hash value matches the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is not tampered with, and when the to-be-detected hash value does not match the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is tampered with.

[0048] As an optional implementation, in the second aspect of the present application, the set of to-be-detected hash values further includes a position code corresponding to each to-be-detected hash value.

[0049] The device further comprises:

[0050] The generation module is configured to, for each to-be-detected hash value, when the to-be-detected hash value does not match the original hash value, generate a private key according to the original hash value, and decrypt the original file according to the private key and the position code to obtain original text content in the original file corresponding to the original hash value.

[0051] The comparison module is configured to, for each to-be-detected hash value, compare to-be-detected text content corresponding to the to-be-detected hash value with original text content corresponding to the original hash value to obtain a text content difference between the to-be-detected text content and the original text content, and mark in the to-be-detected file according to the text content difference.

[0052] As an optional implementation, in the second aspect of the present application, the manner that the receiving module performs identity verification on the user to obtain the identity verification result corresponding to the user specifically comprises:

[0053] collecting identity verification information of the user, the identity verification information comprising identity document information and biometric information of the user;

[0054] determining whether the identity document information and the biometric information of the user match, and when the identity document information and the biometric information of the user match, determining the association relationship between the user and the to-be-detected file in a preset file database;

[0055] when the association relationship indicates that the user does not have processing authority for the to-be-detected file, determining that the user does not meet the preset identity requirement, and when the association relationship indicates that the user has processing authority for the to-be-detected file, determining that the user meets the preset identity requirement.

[0056] As an optional implementation, in the second aspect of the present application, the device further comprises:

[0057] a collecting module configured to collect modification proof information of the user for each of the textual content differences, the modification proof information comprising at least one of proof text, proof number, and proof seal;

[0058] a first analyzing module configured to analyze the modification proof information for each of the textual content differences when the modification proof information of the user for the textual content difference is collected, and determine whether the modification proof information can prove that the textual content difference meets a preset modification legality condition;

[0059] an updating module configured to update the to-be-detected textual content corresponding to each of the textual content differences into the file database when the modification proof information can prove that the textual content difference meets the preset modification legality condition, and trigger the comparing module to perform the operation of marking in the to-be-detected file according to the textual content difference when the modification proof information of the user for the textual content difference is not collected or when the modification proof information cannot prove that the textual content difference meets the preset modification legality condition.

[0060] As an optional implementation, in the second aspect of the present application, the device further comprises:

[0061] a second analysis module configured to analyze, for each of the text content differences, a text tampering type in the to-be-detected file according to the text content difference, the text tampering type including at least one of a text addition type, a text modification type, and a text deletion type;

[0062] a determination module configured to determine, for each of the text content differences, a tampering influence coefficient of to-be-detected text content in the to-be-detected file relative to original text content corresponding to the original hash value according to the text content difference and the text tampering type;

[0063] The determination module is further configured to determine a file tampering influence level corresponding to the to-be-detected file according to the tampering influence coefficient of each of the text content differences, and to perform file tampering reminding on a relevant person corresponding to the file tampering influence level.

[0064] A third aspect of the present application discloses another paper file tampering detection device, the device comprising:

[0065] a memory storing executable program codes;

[0066] a processor coupled to the memory;

[0067] The processor invokes the executable program codes stored in the memory to execute the paper file tampering detection method disclosed in the first aspect of the present application.

[0068] A fourth aspect of the present application discloses a computer storage medium storing computer instructions, the computer instructions being invoked to execute the paper file tampering detection method disclosed in the first aspect of the present application.

[0069] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0070] In the embodiments of the present application, a to-be-detected file uploaded by a user is received, and the user is identified and verified, and when the identity verification result indicates that the user meets a preset identity requirement, to-be-detected file content of the to-be-detected file is extracted page by page, the to-be-detected text content is calculated through a preset target algorithm to obtain a to-be-detected hash value set corresponding to the to-be-detected text content, an original file corresponding to the to-be-detected file is filtered in a preset file database according to a to-be-detected file identifier, and whether the to-be-detected file is tampered with is detected according to the original file and the to-be-detected hash value set. It can be seen that the present application can improve the accuracy and efficiency of paper file tampering detection, and the identity of the user is verified, so that tampering can be traced back when the file is tampered with, thereby improving the security and reliability of the file. BRIEF DESCRIPTION OF DRAWINGS

[0071] In order to make the technical solution in the embodiments of the present application clearer, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some of the embodiments of the present application, and all other drawings obtained by those skilled in the art without creative effort based on these drawings also belong to the protection scope of the present application.

[0072] Figure 1 is a flow diagram of a paper document tamper detection method disclosed by an embodiment of the present application;

[0073] Figure 2 is a flow diagram of another paper document tamper detection method disclosed by an embodiment of the present application;

[0074] Figure 3 is a structural diagram of a paper document tamper detection device disclosed by an embodiment of the present application;

[0075] Figure 4 is a structural diagram of another paper document tamper detection device disclosed by an embodiment of the present application;

[0076] Figure 5 is a structural diagram of another paper document tamper detection device disclosed by an embodiment of the present application. DETAILED DESCRIPTION

[0077] In order to make the technical solution in the embodiments of the present application clearer, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some of the embodiments of the present application, and all other drawings obtained by those skilled in the art without creative effort based on these drawings also belong to the protection scope of the present application.

[0078] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, and are not used to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or end.

[0079] Reference to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase "in an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is expressly understood that any of the embodiments described herein can be combined with any of the other embodiments unless specifically noted otherwise.

[0080] The application discloses a paper file tampering detection method and device, which can improve the accuracy and efficiency of paper file tampering detection, and can verify the identity of a user, so that tampering can be traced and the safety and reliability of a file can be improved when the file is tampered with. The following will be described in detail.

[0081] Embodiment one

[0082] Please refer to Figure 1 , Figure 1 is a flowchart of a paper file tampering detection method disclosed by an embodiment of the application. Wherein, Figure 1 The paper file tampering detection method described can be applied to a paper file tampering detection device, wherein the paper file tampering detection device can include an intelligent device for collecting a paper file image and performing tampering detection on the collected image. The intelligent device can include any one of an intelligent shooting device, an intelligent server or an intelligent platform. The intelligent shooting device includes at least one of an intelligent mobile phone (such as an Android mobile phone or an iOS mobile phone), a camera, an intelligent printing device and the like, and the intelligent server includes a local server or a cloud server. The application embodiment is not limited. As shown in Figure 1 The paper file tampering detection method can include the following operations:

[0083] 101. Receive a user-uploaded file to be detected, and perform identity recognition verification on the user to obtain an identity verification result corresponding to the user.

[0084] In the embodiment of the application, optionally, the user can upload the file to be detected through a mobile phone, a camera, an intelligent printing device and the like. Specifically, the user can obtain a document image corresponding to a paper file by photographing or scanning the paper file. When the user-uploaded file to be detected is received, identity recognition verification is performed on the user to obtain an identity verification result corresponding to the user. The identity verification result corresponding to the user includes that the user meets a preset identity requirement, or the user does not meet the preset identity requirement, and the application is not limited.

[0085] 102. When the identity verification result indicates that the user meets the preset identity requirement, the file content of the file to be detected is extracted by page, and the file content of the file to be detected includes a file to be detected identifier and a file to be detected text content.

[0086] In the embodiment of the present application, optionally, when the identity verification result indicates that the user meets the preset identity requirement, the page extracts the to-be-detected file content of the to-be-detected file. The to-be-detected file content can include a to-be-detected file identifier and to-be-detected text content. The to-be-detected file identifier can include a unique identifier corresponding to the to-be-detected file, and can also include a page number identifier corresponding to each page of the to-be-detected file. The to-be-detected text content can include one or more of text, tables, seals, signatures, dates, data, etc. corresponding to each page of the to-be-detected file. The present application does not make any limitation.

[0087] 103. Calculate the to-be-detected text content by a preset target algorithm to obtain a to-be-detected hash value set corresponding to the to-be-detected text content.

[0088] In the embodiment of the present application, optionally, the preset target algorithm can include the SM3 algorithm. The SM3 algorithm is a hash algorithm designed by a Chinese cryptographer, and is one of the national cryptographic algorithms and one of the candidate algorithms of the SHA-3 algorithm. The design goal of the SM3 algorithm is to provide a high-security and high-efficiency hash algorithm suitable for scenarios such as digital signature, authentication, and data integrity verification. The to-be-detected hash value set corresponding to the to-be-detected text content can include at least one to-be-detected hash value corresponding to the to-be-detected text content. Each to-be-detected hash value can correspond to a piece of to-be-detected text content, such as a piece of text, a table, a seal, etc. or a keyword in a piece of to-be-detected text content, such as a key term or a key word. The present application does not make any limitation.

[0089] 104. According to the to-be-detected file identifier, the original file corresponding to the to-be-detected file is screened in the preset file database, and according to the original file and the to-be-detected hash value set, it is detected whether the to-be-detected file is tampered.

[0090] In the embodiment of the present application, optionally, the original file is pre-encrypted and stored in the preset file database. The original file has the same file identifier as the to-be-detected file. The original file is a file stored in the file database at a first time, and the to-be-detected file is the original file at a second time. The first time is earlier than the second time. According to the to-be-detected file identifier and the preset public key, the original file corresponding to the to-be-detected file is screened in the preset file database, and the original file is decrypted by the public key to obtain the original file. According to the original file and the to-be-detected hash value set, it is detected whether the to-be-detected file is tampered. The present application does not make any limitation.

[0091] It can be seen that the implementation Figure 1The described paper document tamper detection method can receive a user uploaded document to be detected, and perform identity verification on the user. When the identity verification result indicates that the user meets the preset identity requirements, the page extracts the content of the document to be detected, calculates the content of the document to be detected by a preset target algorithm, obtains a set of hash values corresponding to the content of the document to be detected, filters the original file corresponding to the document to be detected in the preset file database according to the document to be detected file identifier, and detects whether the document to be detected is tampered according to the original file and the set of hash values. The tamper detection accuracy and efficiency of paper documents can be improved, and the identity of the user is verified, so that the tamper can be traced back when the document is tampered, and the security and reliability of the document are improved.

[0092] In an optional embodiment, the identity verification of the user to obtain the identity verification result corresponding to the user can include the following operations:

[0093] Collecting identity verification information of the user, the identity verification information including identity document information and biometric information of the user;

[0094] Determining whether the identity document information and the biometric information of the user match, and when the identity document information and the biometric information of the user match, determining the association relationship between the user and the document to be detected in the preset file database;

[0095] When the association relationship indicates that the user does not have the processing authority of the document to be detected, it is determined that the user does not meet the preset identity requirements, and when the association relationship indicates that the user has the processing authority of the document to be detected, it is determined that the user meets the preset identity requirements.

[0096] In the optional embodiment, optionally, the identity verification information of the user can include the identity document information and the biometric information of the user, wherein the identity document information of the user can be collected by uploading pictures by the user, the identity document information of the user can include an ID card, a work card, etc., and the biometric information of the user can be collected by a biometric information collection device, the biometric information of the user can include one or more of face information, iris information, fingerprint information, etc., and the present embodiment is not limited thereto.

[0097] In the optional embodiment, optionally, it is judged whether the identity certificate information of the user matches the biometric information, when the identity certificate information of the user matches the biometric information, the association relationship between the user and the to-be-detected file is determined in the preset file database, the association relationship between the user and the to-be-detected file can be used to represent the processing authority of the user for the to-be-detected file and the original file corresponding to the to-be-detected file, when the association relationship represents that the user does not have the processing authority for the to-be-detected file, it is determined that the user does not meet the preset identity requirement, when the association relationship represents that the user has the processing authority for the to-be-detected file, it is determined that the user meets the preset identity requirement, and the embodiment is not limited.

[0098] It can be seen that by implementing the optional embodiment, the identity authentication information of the user can be collected, the identity authentication information includes the identity certificate information and the biometric information of the user, whether the identity certificate information of the user matches the biometric information is judged, when the identity certificate information of the user matches the biometric information, the association relationship between the user and the to-be-detected file is determined in the preset file database, when the association relationship represents that the user does not have the processing authority for the to-be-detected file, it is determined that the user does not meet the preset identity requirement, when the association relationship represents that the user has the processing authority for the to-be-detected file, it is determined that the user meets the preset identity requirement, the user can be authenticated based on the certificate information and the biometric information, the accuracy of the identity authentication is improved, the processing authority of the user for the to-be-detected file is judged, the file security is improved, the tampering trace is realized when the file is tampered, and the security and reliability of the file are improved.

[0099] Embodiment two

[0100] Please refer to Figure 2 , Figure 2 is a flowchart of a paper file tampering detection method disclosed by the embodiment of the application. Wherein, Figure 2 The paper file tampering detection method described can be applied to a paper file tampering detection device, wherein the paper file tampering detection device can include an intelligent device for collecting a paper file image and performing tampering detection on the collected image, the intelligent device can include any one of an intelligent shooting device, an intelligent server or an intelligent platform, the intelligent shooting device includes at least one of an intelligent mobile phone (an Android mobile phone, an iOS mobile phone, etc.), a camera and an intelligent printing device, etc., the intelligent server includes a local server or a cloud server, and the embodiment of the application is not limited. As shown in Figure 2 The paper file tampering detection method can include the following operations:

[0101] 201, receiving a to-be-detected file uploaded by a user, and performing identity recognition verification on the user to obtain an identity authentication result corresponding to the user.

[0102] 202. When the authentication result indicates that the user meets the preset identity requirements, extract the content of the file to be tested in pages. The content of the file to be tested includes the identifier of the file to be tested and the text content to be tested.

[0103] 203. The target algorithm is used to calculate the text content to be detected, and the set of hash values ​​corresponding to the text content to be detected is obtained.

[0104] 204. Extract the original file image corresponding to the file to be detected, and perform image enhancement processing on the file image to obtain the target image.

[0105] In this embodiment of the invention, optionally, the original document image corresponding to the document to be detected can be extracted using a mobile phone, camera, or smart printing device. Specifically, the user can extract the original document image corresponding to the document to be detected by taking a picture or scanning a paper document. The document image can include the image corresponding to each page of the original document. The document image can be enhanced using artificial intelligence technologies such as CNN, GAN, and deep learning to obtain the target image. Among them, Convolutional Neural Network (CNN) is an artificial neural network model that has been widely used in the field of image processing in recent years. The CNN model performs feature extraction and image classification operations on images through a combination of multiple convolutional layers, pooling layers, and fully connected layers, and mines the inherent features inside the image. In the field of image enhancement, the CNN model can effectively handle complex image scenes and enhance image details, contrast, and other features. Generative Adversarial Network (GAN) is an artificial intelligence technology used for image enhancement and synthesis. GAN technology uses one network as a generator and another network as a discriminator, and achieves image enhancement through adversarial learning between the two networks.

[0106] 205. Extract the original file content corresponding to the target image in pages. The original file content includes the original file identifier and the original text content.

[0107] In this embodiment of the invention, optionally, intelligent OCR recognition can be performed on each page of target image to extract the original file content corresponding to the target image. The original file content may include the original file identifier and the original text content corresponding to the original file. This embodiment does not limit this.

[0108] 206. Calculate the original text content using a preset target algorithm to obtain the original hash value set corresponding to the original text content, and encrypt and store the original file content and the original hash value set in a preset file database.

[0109] Optionally, the preset target algorithm can include a national secret SM3 algorithm, and the original hash value set can include at least one original hash value corresponding to the original literal content.

[0110] 207. According to the file identifier, the original file corresponding to the to-be-detected file is screened in the preset file database, and according to the original file and the to-be-detected hash value set, whether the to-be-detected file is tampered with is detected.

[0111] In the embodiment of the application, for other descriptions of steps 201-203 and step 207, please refer to the detailed description of steps 101-104 in embodiment one, and the embodiment of the application will not be repeated here.

[0112] It can be seen that the implementation Figure 2 The described paper file tamper detection method can receive a to-be-detected file uploaded by a user, and perform identity recognition verification on the user. When the identity verification result indicates that the user meets the preset identity requirement, the to-be-detected file content of the to-be-detected file is extracted page by page, the to-be-detected literal content is calculated through a preset target algorithm to obtain a to-be-detected hash value set corresponding to the to-be-detected literal content, the file image of the original file corresponding to the to-be-detected file is extracted, and the file image is subjected to image enhancement processing to obtain a target image. The original file content corresponding to the target image is extracted page by page, the original literal content is calculated through a preset target algorithm to obtain an original hash value set corresponding to the original literal content, and the original file content and the original hash value set are stored in a preset file database. The original file can be identified and saved in advance, and the accuracy and efficiency of subsequent file tamper detection are improved. According to the file identifier, the original file corresponding to the to-be-detected file is screened in the preset file database, and according to the original file and the to-be-detected hash value set, whether the to-be-detected file is tampered with is detected. The accuracy and efficiency of the tamper detection of the paper file are improved, and the identity of the user is verified. When the file is tampered with, tamper tracing can be realized, and the security and reliability of the file are improved.

[0113] In an optional embodiment, according to the original file and the to-be-detected hash value set, whether the to-be-detected file is tampered with can include the following operations:

[0114] For each to-be-detected hash value in the to-be-detected hash value set, an original hash value corresponding to the to-be-detected hash value is determined in the original hash value set corresponding to the original file.

[0115] For each to-be-detected hash value, it is detected whether the to-be-detected hash value matches the original hash value, when the to-be-detected hash value matches the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is not tampered with, when the to-be-detected hash value does not match the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is tampered with.

[0116] In the optional embodiment, optionally, the set of to-be-detected hash values corresponds to the set of original hash values, specifically, each to-be-detected hash value in the set of to-be-detected hash values corresponds to an original hash value in the set of original hash values in one-to-one correspondence, the original hash value corresponding to the to-be-detected hash value can be determined in the set of original hash values corresponding to the original file, and it is detected whether the to-be-detected hash value matches the original hash value, when the to-be-detected hash value matches the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is not tampered with, when the to-be-detected hash value does not match the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is tampered with.

[0117] It can be seen that by implementing the optional embodiment, the original hash value corresponding to the to-be-detected hash value can be determined in the set of original hash values corresponding to the original file, it is detected whether the to-be-detected hash value matches the original hash value, when the to-be-detected hash value matches the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is not tampered with, when the to-be-detected hash value does not match the original hash value, it is determined that the to-be-detected text content corresponding to the to-be-detected hash value is tampered with, whether the file is tampered with is determined through matching of hash values, and the determination efficiency and accuracy are improved.

[0118] In another optional embodiment, the set of to-be-detected hash values further includes a position code corresponding to each to-be-detected hash value;

[0119] The paper file tamper detection method can further include the following operations:

[0120] For each to-be-detected hash value, when the to-be-detected hash value does not match the original hash value, a private key is generated according to the original hash value, and the original file is decrypted according to the private key and the position code to obtain the original text content in the original file corresponding to the original hash value;

[0121] For each to-be-detected hash value, the to-be-detected text content corresponding to the to-be-detected hash value is compared with the original text content corresponding to the original hash value, a text content difference between the to-be-detected text content and the original text content is obtained, and the to-be-detected file is marked according to the text content difference.

[0122] In the optional embodiment, optionally, the set of to-be-detected hash values can further include a position code corresponding to each to-be-detected hash value, and the position code can be used to indicate the page number and the specific coordinates, such as the row number and the column number, of the to-be-detected literal content corresponding to the to-be-detected hash value in the to-be-detected file. For each to-be-detected hash value, when the to-be-detected hash value does not match the original hash value, a private key can be generated according to the original hash value, and the original file is decrypted according to the private key and the position code. Specifically, the private key can be generated based on the SM2 algorithm of the national cryptography according to the original hash value. The SM2 algorithm is a public key cryptography algorithm based on the elliptic curve cryptography system, which is used in scenarios such as digital signature, key agreement, and encryption. The present embodiment is not limited in this regard.

[0123] In the optional embodiment, optionally, for each to-be-detected hash value, the to-be-detected literal content corresponding to the to-be-detected hash value is compared with the original literal content corresponding to the original hash value to obtain a literal content difference between the to-be-detected literal content and the original literal content. The literal content difference can include one or more of a literal content missing difference, a literal content increasing difference, and a literal content replacing difference. The to-be-detected file is marked according to the literal content difference. Specifically, the marking method can include one or more of literal marking, symbol marking, color marking, and the like. The present embodiment is not limited in this regard.

[0124] As can be seen, by implementing the optional embodiment, for each to-be-detected hash value, when the to-be-detected hash value does not match the original hash value, a private key is generated according to the original hash value, and the original file is decrypted according to the private key and the position code to obtain the original literal content corresponding to the original hash value in the original file. For each to-be-detected hash value, the to-be-detected literal content corresponding to the to-be-detected hash value is compared with the original literal content corresponding to the original hash value to obtain a literal content difference between the to-be-detected literal content and the original literal content. The to-be-detected file is marked according to the literal content difference. When the file hash values do not match, the file content difference can be determined by comparing the file contents corresponding to the non-matching hash values, thereby reducing the comparison workload, improving the determination efficiency of the file content difference, and improving the determination accuracy of the file content difference.

[0125] In yet another optional embodiment, the paper file tampering detection method can further include the following operations:

[0126] For each literal content difference, the modification proof information of the user for the literal content difference is collected, and the modification proof information includes at least one of a proof literal, a proof number, and a proof seal.

[0127] For each text content difference, when the modification proof information of the user for the text content difference is collected, the modification proof information is analyzed to determine whether the modification proof information can prove that the text content difference meets the preset modification legality condition;

[0128] For each text content difference, when the modification proof information can prove that the text content difference meets the preset modification legality condition, the to-be-detected text content corresponding to the text content difference is updated to the file database;

[0129] For each text content difference, when the modification proof information of the user for the text content difference is not collected, or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, an operation of marking in the to-be-detected file according to the text content difference is triggered to be performed.

[0130] In the optional embodiment, optionally, the modification proof information of the user for the text content difference can include at least one of proof text, proof number, and proof seal, and the modification proof information can be used to prove the legality of the file modification operation of the user corresponding to the text content difference. For each text content difference, when the modification proof information of the user for the text content difference is collected, the modification proof information is analyzed to determine whether the modification proof information can prove that the text content difference meets the preset modification legality condition. For example, when the text content difference is a modification of an amount in a contract, the user needs to upload a proof file of the modification of the amount, such as a supplementary contract of the modification of the amount, to prove the legality of the modification of the amount, which is not limited in the embodiment.

[0131] In the optional embodiment, optionally, for each text content difference, when the modification proof information can prove that the text content difference meets the preset modification legality condition, the to-be-detected text content corresponding to the text content difference is updated to the file database, that is, the to-be-detected text content corresponding to the text content difference is replaced with the original text content stored in the file database. For each text content difference, when the modification proof information of the user for the text content difference is not collected, or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, it is determined that the text content difference is illegal modification, that is, the to-be-detected file is tampered, and then an operation of marking in the to-be-detected file according to the text content difference is triggered to be performed, which is not limited in the embodiment.

[0132] It can be seen that the optional embodiment can collect modification proof information of the user for each text content difference, analyze the modification proof information for each text content difference when the modification proof information of the user for the text content difference is collected, determine whether the modification proof information can prove that the text content difference meets the preset modification legality condition, update the to-be-detected text content corresponding to the text content difference to the file database when the modification proof information can prove that the text content difference meets the preset modification legality condition, trigger the operation of marking in the to-be-detected file according to the text content difference when the modification proof information of the user for the text content difference is not collected or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, can update the modified content to the database when the user legally modifies the file, determine that the file content is tampered with and mark the tampered part when the modification is illegal, improve the flexibility and accuracy of file tamper detection, and improve the user experience.

[0133] In yet another optional embodiment, the paper file tamper detection method can further include the following operations:

[0134] For each text content difference, the text tampering type in the to-be-detected file is analyzed according to the text content difference, and the text tampering type includes at least one of a text addition type, a text modification type, and a text deletion type;

[0135] For each text content difference, the tampering influence coefficient of the to-be-detected text content in the to-be-detected file relative to the original text content corresponding to the original hash value is determined according to the text content difference and the text tampering type;

[0136] According to the tampering influence coefficient of each text content difference, the file tamper influence level corresponding to the to-be-detected file is determined, and the related personnel corresponding to the file tamper influence level are reminded of the file tamper.

[0137] In the optional embodiment, optionally, the text tampering type can include at least one of a text addition type, a text modification type, and a text deletion type, wherein the text addition type can indicate that new text, a table, a seal, a signature, a date, data, or the like is added in the to-be-detected file, the text modification type can include that one or more of text, a table, a seal, a signature, a date, data, or the like in the to-be-detected file is modified or replaced, and the text deletion type can include that one or more of text, a table, a seal, a signature, a date, data, or the like in the to-be-detected file is deleted, and the present embodiment is not limited thereto.

[0138] In the optional embodiment, optionally, for each text content difference, a tampering influence coefficient of the to-be-detected text content in the to-be-detected file relative to original text content corresponding to the original hash value is determined according to the text content difference and the text tampering type, that is, a tampering influence coefficient of a difference in content meaning between the tampered text content in the to-be-detected file and the original text content in the original file is determined. For example, compared with the original file, some stains appear in the blank part in the to-be-detected file, and at this time, the tampering influence coefficient is low. Compared with the original file, the data "1100" in the to-be-detected file is changed to "11000", and at this time, the tampering influence coefficient is high. According to the tampering influence coefficient of each text content difference, a file tampering influence level corresponding to the to-be-detected file is determined. The file tampering influence level can be customized by a user, for example, low, medium and high levels, or first, second and third levels, and each level can correspond to a related person. The more serious the level, the higher the level or processing authority of the related person. The related person corresponding to the file tampering influence level is reminded of the file tampering, and the next step is processed by the related person. This embodiment is not limited.

[0139] It can be seen that by implementing the optional embodiment, for each text content difference, the text tampering type in the to-be-detected file is analyzed according to the text content difference, for each text content difference, a tampering influence coefficient of the to-be-detected text content in the to-be-detected file relative to original text content corresponding to the original hash value is determined according to the text content difference and the text tampering type, a file tampering influence level corresponding to the to-be-detected file is determined according to the tampering influence coefficient of each text content difference, and the related person corresponding to the file tampering influence level is reminded of the file tampering. The influence coefficient of the tampered part can be determined, and then the tampering influence level of the entire file is determined, and the related person is notified. The tampered file is processed in stages, and the processing accuracy and efficiency of the file after being tampered are improved.

[0140] Embodiment three

[0141] Please refer to Figure 3 , Figure 3 is a structural schematic diagram of a paper file tampering detection device disclosed by an embodiment of the application. Wherein, Figure 3 The paper file tampering detection device described can include an intelligent device for collecting a paper file image and performing tampering detection on the collected image. The intelligent device can include any one of an intelligent shooting device, an intelligent server or an intelligent platform. The intelligent shooting device includes at least one of an intelligent mobile phone (such as an Android mobile phone or an iOS mobile phone), a camera and an intelligent printing device, but is not limited thereto. The intelligent server includes a local server or a cloud server. The embodiments of the application are not limited.

[0142] As Figure 3As shown, the paper file tamper detection device can include:

[0143] The receiving module 301 is configured to receive a user-uploaded file to be detected and perform identity verification on the user to obtain an identity verification result corresponding to the user.

[0144] The extraction module 302 is configured to, when the identity verification result indicates that the user meets a preset identity requirement, extract file content to be detected of the file to be detected page by page, the file content to be detected including a file to be detected identifier and detected text content.

[0145] The calculation module 303 is configured to calculate the detected text content by using a preset target algorithm to obtain a detected hash value set corresponding to the detected text content, the detected hash value set including at least one detected hash value corresponding to the detected text content.

[0146] The screening module 304 is configured to screen an original file corresponding to the file to be detected in a preset file database according to the file to be detected identifier, and detect whether the file to be detected is tampered with according to the original file and the detected hash value set.

[0147] It can be seen that the implementation Figure 3 The paper file tamper detection device described herein can receive a user-uploaded file to be detected and perform identity verification on the user, extract file content to be detected of the file to be detected page by page when the identity verification result indicates that the user meets a preset identity requirement, calculate the detected text content by using a preset target algorithm to obtain a detected hash value set corresponding to the detected text content, screen an original file corresponding to the file to be detected in a preset file database according to the file to be detected identifier, and detect whether the file to be detected is tampered with according to the original file and the detected hash value set, thereby improving the accuracy and efficiency of tamper detection of paper files, and performing identity verification on the user to enable tamper tracing when the file is tampered with, thereby improving the security and reliability of the file.

[0148] In an optional embodiment, as shown in Figure 4 The extraction module 302 is further configured to extract a file image of the original file corresponding to the file to be detected, and perform image enhancement processing on the file image to obtain a target image.

[0149] The extraction module 302 is further configured to extract original file content corresponding to the target image page by page, the original file content including an original file identifier corresponding to the original file and original text content.

[0150] The calculation module 303 is further configured to calculate the original text content by using a preset target algorithm to obtain an original hash value set corresponding to the original text content.

[0151] The paper document tamper detection device can further include:

[0152] The storage module 305 is configured to encrypt and store the original file content and the original hash value set into a preset file database.

[0153] It can be seen that, in the embodiments Figure 4 The described paper document tamper detection device can receive a user-uploaded file to be detected, and perform identity verification on the user. When the identity verification result indicates that the user meets the preset identity requirements, the content of the file to be detected is extracted from the file to be detected page by page, the target algorithm is used to calculate the content of the file to be detected, and a hash value set corresponding to the content of the file to be detected is obtained. The file image corresponding to the original file is extracted, and the image enhancement processing is performed on the file image to obtain a target image. The content of the original file corresponding to the target image is extracted page by page, the target algorithm is used to calculate the content of the original file, and a hash value set corresponding to the content of the original file is obtained. The content of the original file and the hash value set are encrypted and stored in a preset file database. The original file can be identified and saved in advance, and the accuracy and efficiency of subsequent file tamper detection are improved. The original file corresponding to the file to be detected is screened from the preset file database according to the identification of the file to be detected, and whether the file to be detected is tampered with is detected according to the original file and the hash value set. The accuracy and efficiency of the tamper detection of the paper document are improved, and the identity of the user is verified. When the file is tampered with, the tamper tracing can be realized, and the security and reliability of the file are improved.

[0154] In another optional embodiment, as Figure 4 shown, the screening module 304 detects whether the file to be detected is tampered with according to the original file and the hash value set of the file to be detected in the following specific manner:

[0155] For each hash value to be detected in the hash value set to be detected, an original hash value corresponding to the hash value to be detected is determined in the original hash value set corresponding to the original file;

[0156] For each hash value to be detected, it is detected whether the hash value to be detected matches the original hash value. When the hash value to be detected matches the original hash value, it is determined that the content of the file to be detected corresponding to the hash value to be detected is not tampered with. When the hash value to be detected does not match the original hash value, it is determined that the content of the file to be detected corresponding to the hash value to be detected is tampered with.

[0157] It can be seen that, in the embodiments Figure 4The described paper document tampering detection device can determine the original hash value corresponding to the hash value to be detected from the set of original hash values ​​corresponding to the original document, and detect whether the hash value to be detected matches the original hash value. When the hash value to be detected matches the original hash value, it is determined that the text content to be detected corresponding to the hash value to be detected has not been tampered with. When the hash value to be detected does not match the original hash value, it is determined that the text content to be detected corresponding to the hash value to be detected has been tampered with. By matching hash values, the device can determine whether the document has been tampered with, thereby improving the efficiency and accuracy of the determination.

[0158] In yet another alternative embodiment, such as Figure 4 As shown, the set of hash values ​​to be detected also includes the position code corresponding to each hash value to be detected;

[0159] The paper document tampering detection device may also include:

[0160] The generation module 306 is used to generate a private key based on the original hash value when the hash value to be detected does not match the original hash value for each hash value to be detected, and to decrypt the original file based on the private key and the position code to obtain the original text content in the original file corresponding to the original hash value.

[0161] The comparison module 307 is used to compare the text content to be detected corresponding to each hash value to be detected with the original text content corresponding to the original hash value, obtain the text content difference between the text content to be detected and the original text content, and mark the text content difference in the file to be detected.

[0162] It is evident that implementation Figure 4 The described paper document tampering detection device can, for each hash value to be detected, generate a private key based on the original hash value when the hash value to be detected does not match the original hash value, and decrypt the original document based on the private key and location code to obtain the original text content in the original document corresponding to the original hash value. For each hash value to be detected, the device compares the text content to be detected corresponding to the hash value to the original text content corresponding to the original hash value to obtain the text content difference between the text content to be detected and the original text content, and marks the text content difference in the document to be detected. When it is determined that the document hash values ​​do not match, the device can determine the document content difference by comparing the document content corresponding to the mismatched hash values, thereby reducing the comparison workload, improving the efficiency of determining the document content difference, and improving the accuracy of determining the document content difference.

[0163] In yet another alternative embodiment, such as Figure 4As shown, the receiving module 301 performs identity verification on the user, and the specific manner of obtaining the identity verification result corresponding to the user includes:

[0164] The identity verification information of the user is collected, and the identity verification information includes the identity document information and the biometric information of the user.

[0165] It is determined whether the identity document information and the biometric information of the user match, and when the identity document information and the biometric information of the user match, the association relationship between the user and the to-be-detected file is determined in a preset file database.

[0166] When the association relationship indicates that the user does not have the processing authority for the to-be-detected file, it is determined that the user does not meet the preset identity requirement, and when the association relationship indicates that the user has the processing authority for the to-be-detected file, it is determined that the user meets the preset identity requirement.

[0167] It can be seen that the implementation Figure 4 The paper file tampering detection device described herein can collect the identity verification information of the user, the identity verification information includes the identity document information and the biometric information of the user, determine whether the identity document information and the biometric information of the user match, when the identity document information and the biometric information of the user match, determine the association relationship between the user and the to-be-detected file in a preset file database, when the association relationship indicates that the user does not have the processing authority for the to-be-detected file, it is determined that the user does not meet the preset identity requirement, and when the association relationship indicates that the user has the processing authority for the to-be-detected file, it is determined that the user meets the preset identity requirement, which can perform identity verification on the user based on the identity document information and the biometric information, improve the accuracy of identity verification, and determine the processing authority of the user for the to-be-detected file, improve the security of the file, realize tampering traceability when the file is tampered with, and improve the security and reliability of the file.

[0168] In yet another optional embodiment, as Figure 4 As shown, the paper file tampering detection device can further include:

[0169] The collection module 308 is configured to, for each text content difference, collect modification proof information of the user for the text content difference, and the modification proof information includes at least one of proof text, proof number, and proof seal.

[0170] The first analysis module 309 is configured to, for each text content difference, when the modification proof information of the user for the text content difference is collected, analyze the modification proof information, and determine whether the modification proof information can prove that the text content difference meets the preset modification legality condition.

[0171] The updating module 310 is configured to: for each text content difference, when the modification proof information can prove that the text content difference meets the preset modification legality condition, update the to-be-detected text content corresponding to the text content difference into the file database; for each text content difference, when no modification proof information of the user for the text content difference is collected, or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, trigger the comparison module 307 to perform the operation of marking in the to-be-detected file according to the text content difference.

[0172] It can be seen that the paper file tampering detection device Figure 4 The paper file tampering detection device described herein can collect modification proof information of the user for each text content difference, analyze the modification proof information when the modification proof information of the user for each text content difference is collected, determine whether the modification proof information can prove that the text content difference meets the preset modification legality condition, update the to-be-detected text content corresponding to the text content difference into the file database when the modification proof information can prove that the text content difference meets the preset modification legality condition, trigger the operation of marking in the to-be-detected file according to the text content difference when no modification proof information of the user for the text content difference is collected or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, update the modified content into the database when the user makes a legal modification to the file, determine that the file content is tampered with and mark the tampered part when the modification is illegal, improve the flexibility and accuracy of file tampering detection, and improve the user experience.

[0173] In yet another optional embodiment, as Figure 4 shown, the paper file tampering detection device can further include:

[0174] The second analysis module 311 is configured to: for each text content difference, analyze the text tampering type in the to-be-detected file according to the text content difference, the text tampering type including at least one of a text addition type, a text modification type, and a text deletion type;

[0175] The determination module 312 is configured to: for each text content difference, determine the tampering influence coefficient of the to-be-detected text content in the to-be-detected file relative to the original text content corresponding to the original hash value according to the text content difference and the text tampering type;

[0176] The determination module 312 is further configured to determine the file tampering influence level corresponding to the to-be-detected file according to the tampering influence coefficient of each text content difference, and perform file tampering reminding on the relevant personnel corresponding to the file tampering influence level.

[0177] It can be seen that the implementation Figure 5 The paper file tampering detection device described can analyze the type of text tampering in the to-be-detected file according to each text content difference, determine the tampering influence coefficient of the to-be-detected text content in the to-be-detected file corresponding to the original text content of the original hash value according to the text content difference and the type of text tampering for each text content difference, determine the file tampering influence level corresponding to the to-be-detected file according to the tampering influence coefficient of each text content difference, and remind relevant personnel of file tampering corresponding to the file tampering influence level, which can determine the influence coefficient of the tampered part, and further determine the tampering influence level of the entire file, and notify relevant personnel, so that the tampered file can be processed in stages, and the processing accuracy and efficiency after the file is tampered with can be improved.

[0178] Embodiment four

[0179] Please refer to Figure 5 , Figure 5 is another structure diagram of a paper file tampering detection device disclosed by the embodiment of the application. As ​ shown, the paper file tampering detection device can include:

[0180] The memory 401 stores executable program codes.

[0181] The processor 402 is coupled to the memory 401.

[0182] The processor 402 calls the executable program codes stored in the memory 401 to execute the steps in the paper file tampering detection method described in the embodiment one or the embodiment two of the application.

[0183] Embodiment five

[0184] The embodiment of the application discloses a computer storage medium, which stores computer instructions, and the computer instructions are used to execute the steps in the paper file tampering detection method described in the embodiment one or the embodiment two of the application when called.

[0185] Embodiment six

[0186] The embodiment of the application discloses a computer program product, which includes a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to make a computer execute the steps in the paper file tampering detection method described in the embodiment one or the embodiment two.

[0187] The apparatus embodiments described above are only illustrative, wherein the modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, i.e., can be located in one place or distributed to multiple network modules. Part or all of the modules can be selected to achieve the purposes of the embodiments according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0188] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software and necessary general hardware platform, and of course can also be realized by hardware. Based on such understanding, the above technical solutions can be embodied in the form of software products, and the computer software products can be stored in a computer readable storage medium, including a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, a magnetic disk storage, a magnetic tape storage, or any other computer readable medium that can be used to carry or store data.

[0189] Finally, it should be noted that: the paper file tampering detection method and device disclosed by the embodiments of the present application are only the preferred embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that; it can still modify the technical solutions recorded in the foregoing embodiments, or replace some technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A paper document tamper detection method characterized by, The method comprises: receiving a user uploaded file to be detected, and performing identity verification on the user to obtain an identity verification result corresponding to the user; when the identity verification result indicates that the user meets a preset identity requirement, extracting file content to be detected of the file to be detected in pages, the file content to be detected comprising a file to be detected identifier and content to be detected; calculating the content to be detected by a preset target algorithm to obtain a set of hash values to be detected corresponding to the content to be detected, the set of hash values to be detected comprising at least one hash value to be detected corresponding to the content to be detected; and screening an original file corresponding to the file to be detected from a preset file database according to the file to be detected identifier, and detecting whether the file to be detected is tampered with according to the original file and the set of hash values to be detected. The method further comprises: extracting a file image of the original file corresponding to the file to be detected, and performing image enhancement processing on the file image to obtain a target image; extracting original file content corresponding to the target image in pages, the original file content comprising an original file identifier corresponding to the original file and original content; calculating the original content by a preset target algorithm to obtain a set of original hash values corresponding to the original content; and encrypting and storing the original file content and the set of original hash values into a preset file database. The detection of whether the file to be detected is tampered with according to the original file and the set of hash values to be detected comprises: for each hash value to be detected in the set of hash values to be detected, determining an original hash value corresponding to the hash value to be detected in the set of original hash values corresponding to the original file; for each hash value to be detected, detecting whether the hash value to be detected matches the original hash value, when the hash value to be detected matches the original hash value, determining that the content to be detected corresponding to the hash value to be detected is not tampered with, and when the hash value to be detected does not match the original hash value, determining that the content to be detected corresponding to the hash value to be detected is tampered with. The set of hash values to be detected further comprises a position code corresponding to each hash value to be detected; the method further comprises: for each hash value to be detected, when the hash value to be detected does not match the original hash value, generating a private key according to the original hash value, and decrypting the original file according to the private key and the position code to obtain original content corresponding to the original hash value in the original file; for each hash value to be detected, comparing the content to be detected corresponding to the hash value to be detected with the original content corresponding to the original hash value to obtain a content difference between the content to be detected and the original content, and marking in the file to be detected according to the content difference. The method further comprises: for each of the text content differences, collecting modification proof information of the user for the text content difference, the modification proof information comprising at least one of proof text, proof number and proof seal; for each of the text content differences, when the modification proof information of the user for the text content difference is collected, analyzing the modification proof information to determine whether the modification proof information can prove that the text content difference meets a preset modification legality condition; for each of the text content differences, when the modification proof information can prove that the text content difference meets the preset modification legality condition, updating the to-be-detected text content corresponding to the text content difference into the file database; for each of the text content differences, when the modification proof information of the user for the text content difference is not collected, or when the modification proof information cannot prove that the text content difference meets the preset modification legality condition, triggering the operation of marking in the to-be-detected file according to the text content difference.

2. The paper document tamper detection method according to claim 1, characterized by, The method further comprises: for each of the text content differences, analyzing a text tampering type in the to-be-detected file according to the text content difference, the text tampering type comprising at least one of a text addition type, a text modification type and a text deletion type; for each of the text content differences, determining a tampering influence coefficient of to-be-detected text content in the to-be-detected file relative to original text content corresponding to the original hash value according to the text content difference and the text tampering type; determining a file tampering influence level corresponding to the to-be-detected file according to the tampering influence coefficient of each of the text content differences, and reminding a relevant person of the file tampering influence level.

3. The paper document tamper detection method according to claim 2, characterized in that, The identity recognition verification of the user comprises: collecting identity verification information of the user, the identity verification information comprising identity document information and biological recognition information of the user; determining whether the identity document information and the biological recognition information of the user match; when the identity document information and the biological recognition information of the user match, determining an association relationship between the user and the to-be-detected file in a preset file database; when the association relationship indicates that the user does not have a processing right of the to-be-detected file, determining that the user does not meet a preset identity requirement; and when the association relationship indicates that the user has the processing right of the to-be-detected file, determining that the user meets the preset identity requirement.

4. A paper document tamper detection apparatus for implementing the paper document tamper detection method according to any one of claims 1 to 3, characterized by, The device comprises: a receiving module, configured to receive a user-uploaded file to be detected, and to perform identity verification on the user to obtain an identity verification result corresponding to the user; an extracting module, configured to extract, when the identity verification result indicates that the user meets preset identity requirements, file content of the file to be detected, the file content comprising a file to be detected identifier and to-be-detected text content; a calculating module, configured to calculate the to-be-detected text content by using a preset target algorithm to obtain a to-be-detected hash value set corresponding to the to-be-detected text content, the to-be-detected hash value set comprising at least one to-be-detected hash value corresponding to the to-be-detected text content; and a screening module, configured to screen, according to the file to be detected identifier, an original file corresponding to the file to be detected in a preset file database, and to detect, according to the original file and the to-be-detected hash value set, whether the file to be detected is tampered with.

5. A paper document tamper detection device, characterized by, The device comprises: a memory storing executable program code; a processor coupled to the memory; the processor invokes the executable program code stored in the memory to execute the paper file tamper detection method according to any one of claims 1-3.

6. A computer storage medium, characterized in that, The computer storage medium stores computer instructions, which are invoked to execute the paper file tamper detection method according to any one of claims 1-3.

Citation Information

Patent Citations

  • Cross-platform official document anti-counterfeiting printing management system used in local area network

    CN113157223A

  • Paging-oriented block chain authentication method and system

    CN117768092A