技术领域Technical Field
本申请涉及物业管理技术领域,尤其是涉及一种文件完整与文件重复处理方法、系统、设备及介质。The present application relates to the field of property management technology, and in particular to a method, system, device and medium for processing file integrity and file duplication.
背景技术Background Art
在物业管理行业中,日常工作的文件存证是确保服务质量、处理纠纷和进行工作审计的重要环节。然而,目前存证过程中存在文件完整性难以保证和重复存证的问题,这不仅浪费了存储空间,还降低了工作效率。In the property management industry, document storage for daily work is an important part of ensuring service quality, handling disputes and conducting work audits. However, in the current storage process, there are problems such as difficulty in ensuring document integrity and repeated storage, which not only wastes storage space but also reduces work efficiency.
目前,物业管理行业通常使用传统的文件管理系统进行存证,这些系统大多缺乏文件完整性校验和重复存证检测的功能。Currently, the property management industry usually uses traditional document management systems for evidence storage. Most of these systems lack the functions of document integrity verification and duplicate evidence detection.
由于传统方法无法有效确保待存证文件的完整性,也无法避免重复存证,因此导致文件的数据冗余,物业管理效率低下。Since traditional methods cannot effectively ensure the integrity of the documents to be deposited, nor can they avoid duplicate deposits, this leads to data redundancy in the documents and inefficient property management.
发明内容Summary of the invention
本申请目的一是提供一种文件完整与文件重复处理方法,能够使待存证文件在上传过程中不易被篡改,并尽量避免重复存证,提高物业管理工作中文件存证的效率和准确性。The first purpose of this application is to provide a method for processing file integrity and file duplication, which can prevent the files to be stored from being tampered with during the upload process, avoid duplicate storage as much as possible, and improve the efficiency and accuracy of file storage in property management work.
本申请提供一种文件完整与文件重复处理方法,采用如下的技术方案:This application provides a method for processing file integrity and file duplication, which adopts the following technical solutions:
一种文件完整与文件重复处理方法,包括:A method for processing file integrity and file duplication, comprising:
通过消息摘要算法,计算生成由用户上传到客户端的待存证文件生成的第一消息摘要;Using a message digest algorithm, a first message digest generated by the file to be stored uploaded by the user to the client is calculated;
将所述待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1;Submit the file to be stored and the first message digest to the server, obtain the second message digest generated by calculation in the server, and execute A1;
A1:根据所述第一消息摘要与第二消息摘要,判断待存证文件在上传过程中是否出现错误,若所述待存证文件上传过程中出现错误,则执行A2,若所述待存证文件上传过程中未出现错误,则执行A3;A1: judging whether an error occurs during the upload of the file to be stored according to the first message digest and the second message digest; if an error occurs during the upload of the file to be stored, executing A2; if no error occurs during the upload of the file to be stored, executing A3;
A2:提示用户重新上传;A2: Prompt the user to re-upload;
A3:通过存证库中已有的文件与所述待存证文件进行验证,判断所述待存证文件是否重复上传,若重复上传,则执行A4,若首次上传,则执行A5;A3: Verify the existing files in the evidence library with the file to be stored, and determine whether the file to be stored is uploaded repeatedly. If it is uploaded repeatedly, execute A4; if it is uploaded for the first time, execute A5;
A4:提示用户重复存证;A4: Prompt the user to save the certificate again;
A5:将所述待存证文件进行存证。A5: Store the document to be stored as evidence.
通过采用上述技术方案,采用消息摘要算法对待存证文件进行加密,提高文件存证的可信度,根据待存证文件在客户端计算生成的第一消息摘要和在服务器端生成的第二消息摘要进行验证,有效检测待存证文件在上传过程中的出现的错误或篡改行为,并通过存证库中已有的文件与待存证文件进行验证,尽量避免重复存证,进而提高物业管理工作中文件存证的效率和准确性。By adopting the above technical solution, a message digest algorithm is used to encrypt the file to be stored, thereby improving the credibility of the file storage. The file to be stored is verified based on the first message digest calculated on the client side and the second message digest generated on the server side. This effectively detects errors or tampering in the upload process of the file to be stored. The file to be stored is verified with the existing files in the storage library to avoid duplicate storage, thereby improving the efficiency and accuracy of file storage in property management work.
本申请在一较佳示例中可以进一步配置为:所述将所述待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1的步骤,包括:In a preferred example, the present application may be further configured as follows: submitting the to-be-stored file and the first message digest to the server, obtaining the second message digest generated by calculation in the server, and executing step A1, including:
获取由服务器端根据客户端上传的待存证文件;Obtain the file to be stored by the server based on the file uploaded by the client;
通过与计算第一消息摘要一致的消息摘要算法,获取所述由服务器端根据客户端上传的待存证文件计算生成的第二消息摘要。The second message digest calculated and generated by the server according to the file to be stored uploaded by the client is obtained through a message digest algorithm consistent with the one used to calculate the first message digest.
通过采用上述技术方案,客户端和服务器端均采用相同的消息摘要算法,有效检测文件在上传过程中的任何错误或篡改,确保文件的原始性和上传过程的准确性的同时,使得数据处理具有一致性和可验证性,提高了文件存证的安全性。By adopting the above technical solution, both the client and the server use the same message digest algorithm to effectively detect any errors or tampering in the file upload process, ensuring the originality of the file and the accuracy of the upload process, while making data processing consistent and verifiable, thereby improving the security of file storage.
本申请在一较佳示例中可以进一步配置为:所述A1,包括:In a preferred example, the present application can be further configured as follows: A1 includes:
将所述第一消息摘要和第二消息摘要进行匹配,判断第一消息摘要与第二消息摘要的内容是否一致,若一致,则判断为所述待存证文件上传过程中出现错误,执行A2,若不一致,则判断为所述待存证文件上传过程中未出现错误,执行A3。The first message digest and the second message digest are matched to determine whether the contents of the first message digest and the second message digest are consistent. If they are consistent, it is determined that an error occurred during the upload of the file to be stored, and A2 is executed. If they are inconsistent, it is determined that no error occurred during the upload of the file to be stored, and A3 is executed.
通过采用上述技术方案,对比采用同一消息摘要算法的计算生成的第一消息摘要和第二消息摘要的内容,作为待存证文件唯一性的标识,通过第一消息摘要和第二消息摘要的对比,判断待存证文件上传过程中是否出现错误,能够检测文件在上传过程中的错误或篡改,确保了文件的原始性和上传过程的准确性。By adopting the above technical solution, the contents of the first message digest and the second message digest generated by the same message digest algorithm are compared as the unique identification of the file to be stored. By comparing the first message digest and the second message digest, it is determined whether an error occurs during the upload of the file to be stored. This allows detection of errors or tampering during the upload process, thereby ensuring the originality of the file and the accuracy of the upload process.
本申请在一较佳示例中可以进一步配置为:所述A3,包括:In a preferred example, the present application can be further configured as follows: A3 includes:
判断所述存证库中是否存在与所述待存证文件一致的文件,若所述存证库中存在与待存证文件一致的文件,则执行A4,若所述存证库中不存在与第一消息摘要完全一致的记录,则执行A5。Determine whether there is a file consistent with the file to be stored in the evidence repository. If there is a file consistent with the file to be stored in the evidence repository, execute A4; if there is no record in the evidence repository that is completely consistent with the first message digest, execute A5.
通过采用上述技术方案,当存证库中存在于待存证文件一致的文件,意味着相同的文件内容已经被存证过,因此可以判定当前的待存证文件为重复存证,重复存证会占用额外的存储空间,导致存储资源的浪费,尽量避免重复存证。By adopting the above technical solution, when there is a file in the evidence library that is consistent with the file to be stored, it means that the same file content has been stored before. Therefore, it can be determined that the current file to be stored is a duplicate. Duplicate storage will take up additional storage space, resulting in a waste of storage resources. Duplicate storage should be avoided as much as possible.
本申请在一较佳示例中可以进一步配置为:所述判断所述存证库中是否存在与所述待存证文件一致的文件,若所述存证库中存在与待存证文件一致的文件,则执行A4,若所述存证库中不存在与第一消息摘要完全一致的记录,则执行A5的步骤,包括:In a preferred example, the present application may be further configured as follows: the step of determining whether there is a file in the evidence repository that is consistent with the file to be stored, if there is a file in the evidence repository that is consistent with the file to be stored, executing step A4; if there is no record in the evidence repository that is completely consistent with the first message digest, executing step A5 includes:
判断所述存证库中是否存在与第一消息摘要一致的消息摘要;Determining whether there is a message digest consistent with the first message digest in the evidence repository;
若所述存证库中存在与第一消息摘要一致的消息摘要的文件,则执行A4,若所述存证库中不存在与第一消息摘要一致的消息摘要的文件,则执行A5。If there is a file with a message digest that is consistent with the first message digest in the evidence repository, execute A4; if there is no file with a message digest that is consistent with the first message digest in the evidence repository, execute A5.
通过采用上述技术方案,在待存证文件进行存证之前,利用小数据量的第一消息摘要在存证库中检索与第一消息摘要一致的消息摘要的文件,在数据传输量较小的情况下完成对待存证文件是否重复上传进行判别,减少由于待存证文件的重复上传而造成数据的冗余,尽量避免重复存证,节省存储空间。By adopting the above technical solution, before the file to be stored is stored, a first message digest with a small data volume is used to retrieve a file with a message digest consistent with the first message digest in the storage library, so that when the data transmission volume is small, it is possible to determine whether the file to be stored is uploaded repeatedly, thereby reducing data redundancy caused by repeated uploading of the file to be stored, avoiding repeated storage as much as possible, and saving storage space.
本申请在一较佳示例中可以进一步配置为:所述A4之后,还包括:In a preferred example, the present application can be further configured as follows: after A4, it also includes:
判断所述待存证文件使用的存证条例是否与存证库中的文件一致,若所述存证条例与存证库中的文件不一致时,提示用户是否操作错误。Determine whether the evidence storage rules used by the file to be stored are consistent with the files in the evidence library. If the evidence storage rules are inconsistent with the files in the evidence library, prompt the user whether the operation is wrong.
通过采用上述技术方案,引入存证条例匹配判断,进一步提高存证操作的准确性,识别并处理因存证条例不一致导致的潜在问题,保护系统免受错误操作影响,增强系统的鲁棒性。By adopting the above technical solution and introducing the matching judgment of evidence regulations, the accuracy of evidence operations can be further improved, potential problems caused by inconsistent evidence regulations can be identified and handled, the system can be protected from erroneous operations, and the robustness of the system can be enhanced.
本申请在一较佳示例中可以进一步配置为:所述判断所述待存证文件使用的存证条例是否与存证库中的文件一致,若所述存证条例与存证库中的文件不一致时,提示用户是否操作错误的步骤,包括:In a preferred example, the present application can be further configured as follows: the step of determining whether the evidence storage rules used by the to-be-stored file are consistent with the files in the evidence storage library, and if the evidence storage rules are inconsistent with the files in the evidence storage library, prompting the user whether the operation is wrong, includes:
根据第一消息摘要,判断所述待存证文件的来源与存证库中消息摘要一致的文件的来源是否相同,若相同,则判断为所述待存证文件使用的存证条例与存证库中的文件一致,并提示用户是否操作错误。Based on the first message digest, determine whether the source of the file to be stored is the same as the source of the file with the same message digest in the storage library. If they are the same, it is determined that the storage regulations used by the file to be stored are consistent with the files in the storage library, and the user is prompted whether the operation is wrong.
通过采用上述技术方案,以文件的来源作为存证条例,减少由于用户由于获取的来源冲突而导致上传文件操作错误的问题,增强系统的鲁棒性。By adopting the above technical solution, the source of the file is used as the evidence, which can reduce the problem of errors in uploading files due to conflicts in the sources obtained by users, and enhance the robustness of the system.
第二方面,本申请提供一种文件完整与文件重复处理系统,采用如下的技术方案:In the second aspect, the present application provides a file integrity and file duplication processing system, which adopts the following technical solutions:
第一消息摘要计算模块:所述第一消息摘要计算模块用于通过消息摘要算法,计算生成由用户上传到客户端的待存证文件生成的第一消息摘要;First message digest calculation module: The first message digest calculation module is used to calculate and generate a first message digest generated by the file to be stored uploaded by the user to the client through a message digest algorithm;
第二消息摘要计算模块:所述第二消息摘要计算模块用于将所述待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1;Second message digest calculation module: The second message digest calculation module is used to submit the file to be stored and the first message digest to the server, obtain the second message digest generated by calculation in the server, and execute A1;
消息摘要匹配模块:所述消息摘要匹配模块用于执行A1:根据所述第一消息摘要与第二消息摘要,判断待存证文件在上传过程中是否出现错误,若所述待存证文件上传过程中出现错误,则执行A2,若所述待存证文件上传过程中未出现错误,则执行A3;Message digest matching module: The message digest matching module is used to execute A1: judging whether an error occurs during the uploading process of the file to be stored according to the first message digest and the second message digest; if an error occurs during the uploading process of the file to be stored, executing A2; if no error occurs during the uploading process of the file to be stored, executing A3;
第一提示模块:所述第一提示模块用于执行A2:提示用户重新上传;First prompt module: The first prompt module is used to execute A2: prompt the user to re-upload;
文件重复判断模块:所述文件重复判断模块执行A3:通过存证库中已有的文件与所述待存证文件进行验证,判断所述待存证文件是否重复上传,若重复上传,则执行A4,若首次上传,则执行A5;File duplication judgment module: The file duplication judgment module executes A3: verifies the file to be stored with the existing files in the evidence storage library to determine whether the file to be stored is uploaded repeatedly. If it is uploaded repeatedly, execute A4; if it is uploaded for the first time, execute A5;
第二提示模块:所述第二提示模块用于执行A4:提示用户重复存证;Second prompting module: The second prompting module is used to execute A4: prompt the user to store the evidence again;
文件存证模块:所述文件存证模块用于执行A5:将所述待存证文件进行存证。File storage module: The file storage module is used to execute A5: store the file to be stored.
第三方面,本申请提供一种电子设备,采用如下技术方案:In a third aspect, the present application provides an electronic device, which adopts the following technical solution:
一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的一种文件完整与文件重复处理方法的步骤。An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for processing file integrity and file duplication when executing the computer program.
第四方面,本申请提供一种计算机存储介质,如下技术方案:In a fourth aspect, the present application provides a computer storage medium, the following technical solution:
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述一种文件完整与文件重复处理方法的步骤。A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned file integrity and file duplication processing method are implemented.
综上所述,本申请具有以下有益技术效果:In summary, this application has the following beneficial technical effects:
本申请通过消息摘要算法对待存证文件进行加密,提高文件存证的可信度,以客户端计算生成的第一消息摘要,与服务器端生成的第二消息摘要进行匹配验证,尽量避免待存证文件在上传过程中可能发生的错误或篡改,此外,通过存证库中已有的文件与待存证文件进行验证,尽量避免发生重复存证的情况,从而提高物业管理工作中文件存证的效率和准确性。This application uses a message digest algorithm to encrypt the file to be stored, thereby improving the credibility of the file storage, and matches and verifies the first message digest calculated by the client with the second message digest generated by the server, so as to avoid errors or tampering that may occur in the upload process of the file to be stored. In addition, by verifying the existing files in the storage library with the file to be stored, duplicate storage is avoided as much as possible, thereby improving the efficiency and accuracy of file storage in property management work.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请其中一实施例中一种文件完整与文件重复处理方法结构的流程图。FIG. 1 is a flow chart of a file integrity and file duplication processing method structure in one embodiment of the present application.
图2是本申请其中一实施例中步骤S2的子步骤流程图。FIG. 2 is a flow chart of sub-steps of step S2 in one embodiment of the present application.
图3是本申请其中一实施例中步骤A1的子步骤流程图。FIG. 3 is a flow chart of sub-steps of step A1 in one embodiment of the present application.
图4是本申请其中一实施例中步骤A3的子步骤流程图。FIG. 4 is a flow chart of sub-steps of step A3 in one embodiment of the present application.
图5是本申请其中一实施例中步骤A30的子步骤流程图。FIG. 5 is a flowchart of sub-steps of step A30 in one embodiment of the present application.
图6是本申请其中一实施例中步骤A4之后增加的步骤流程图。FIG. 6 is a flowchart of steps added after step A4 in one embodiment of the present application.
图7是本申请其中一实施例中步骤A40的子步骤流程图。FIG. 7 is a flowchart of sub-steps of step A40 in one embodiment of the present application.
图8是本申请其中一实施例的一种文件完整与文件重复处理系统的结构示意图。FIG8 is a schematic diagram of the structure of a file integrity and file duplication processing system according to one embodiment of the present application.
图9是本申请其中一实施例中电子设备的原理框图。FIG. 9 is a functional block diagram of an electronic device in one embodiment of the present application.
附图标记:1、第一消息摘要计算模块;2、第二消息摘要计算模块;3、消息摘要匹配模块;4、第一提示模块;5、文件重复判断模块;6、第二提示模块;7、文件存证模块。Figure numerals: 1. First message digest calculation module; 2. Second message digest calculation module; 3. Message digest matching module; 4. First prompt module; 5. File duplication judgment module; 6. Second prompt module; 7. File evidence module.
具体实施方式DETAILED DESCRIPTION
以下结合附图1-9对本申请作进一步详细说明。The present application is further described in detail below in conjunction with Figures 1-9.
参考图1,一种文件完整与文件重复处理方法,具体包括:Referring to FIG1 , a method for processing file integrity and file duplication specifically includes:
一种文件完整与文件重复处理方法,包括:A method for processing file integrity and file duplication, comprising:
S1:通过消息摘要算法,计算生成由用户上传到客户端的待存证文件生成的第一消息摘要。S1: Calculate and generate a first message digest of the file to be stored uploaded by the user to the client through a message digest algorithm.
具体的,能够接收并处理包括文档、图片、视频在内的多种类型文件,满足广泛存证需求,如物业服务合同、电梯维保照片、危险警示标志拍照等。待存证文件在用户上传到客户端后,在客户端内通过计算生成第一消息摘要,实质上是对文件内容进行了一种加密处理。通过消息摘要算法计算生成的消息摘要具备高度敏感性,即使待存证文件发生细微变动,也会导致生成的第一消息摘要截然不同,因此,第一消息摘要可以作为验证文件唯一性标识,确保待存证文件的完整性和真实性。Specifically, it can receive and process various types of files including documents, pictures, and videos to meet a wide range of evidence needs, such as property service contracts, elevator maintenance photos, and photos of hazard warning signs. After the user uploads the file to be stored to the client, the first message digest is generated by calculation in the client, which is essentially an encryption of the file content. The message digest calculated by the message digest algorithm is highly sensitive. Even if there are slight changes in the file to be stored, the generated first message digest will be completely different. Therefore, the first message digest can be used as a unique identifier to verify the file and ensure the integrity and authenticity of the file to be stored.
S2:将待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1。S2: Submit the file to be stored and the first message digest to the server, obtain the second message digest generated by calculation in the server, and execute A1.
A1:根据第一消息摘要与第二消息摘要,判断待存证文件在上传过程中是否出现错误,若待存证文件上传过程中出现错误,则执行A2,若待存证文件上传过程中未出现错误,则执行A3。A1: According to the first message digest and the second message digest, determine whether an error occurs during the upload of the file to be stored; if an error occurs during the upload of the file to be stored, execute A2; if no error occurs during the upload of the file to be stored, execute A3.
具体的,能够实现客户端生成文件摘要并与服务器端验证的双保险机制,确保文件传输的完整性和安全性。Specifically, a double insurance mechanism can be implemented in which the client generates a file digest and verifies it with the server, thereby ensuring the integrity and security of file transmission.
A2:提示用户重新上传。A2: Prompt the user to upload again.
A3:通过存证库中已有的文件与待存证文件进行验证,判断待存证文件是否重复上传,若重复上传,则执行A4,若首次上传,则执行A5。A3: Verify the existing files in the evidence library with the files to be stored to determine whether the files to be stored are uploaded repeatedly. If they are uploaded repeatedly, execute A4; if they are uploaded for the first time, execute A5.
具体的,在文件进入到存证流程前,自动检测上传的待存证文件是否已存在于存证库中,实现尽量避免重复存储,节约存储空间的目的。Specifically, before the file enters the evidence storage process, it is automatically detected whether the uploaded file to be stored already exists in the evidence storage library, so as to avoid duplicate storage as much as possible and save storage space.
A4:提示用户重复存证。A4: Prompt the user to save the evidence again.
A5:将待存证文件进行存证。A5: Store the documents to be stored.
具体的,一旦确定用户上传的待存证文件为新存证,则自动执行的后续存证流程,包括长期存储配置、存证记录更新等,以软件代码或工作流程的形式体现。Specifically, once it is determined that the file to be stored uploaded by the user is a new evidence, the subsequent evidence process will be automatically executed, including long-term storage configuration, evidence record update, etc., which will be reflected in the form of software code or workflow.
在本实施例中,从用户上传待存证文件开始,到反馈存证结果的整个交互过程,包括错误提示与正确存证的反馈机制,体现了完整的用户交互流程。即时反馈上传状态,无论是文件重复还是上传错误,都能迅速通知用户,尽量避免无效操作,提高用户满意度。In this embodiment, the entire interactive process from the user uploading the file to be stored to the feedback of the storage result, including the feedback mechanism of error prompts and correct storage, embodies a complete user interaction process. Instant feedback of the upload status, whether it is a duplicate file or an upload error, can quickly notify the user, try to avoid invalid operations, and improve user satisfaction.
首先在采用消息摘要算法对待存证文件进行加密,提高文件存证的可信度。在上传物业服务合同的电子表格数据时,将合同编号、服务类型、服务对象通过消息摘要算法,计算生成第一消息摘要。具体的,合同编号由数字构成,而服务类型在客户端内具有固定的服务类型编号,需要对合同编号和服务类型编号转换为字符串服务对象由于是变化的、由中文构成的非ASCII字符,因此需要先进行编码生成字符串,再将上述的字符串按照与预设的统一的顺序合并为单一的字节序列,经过消息摘要算法生成第一消息摘要。第二消息摘要的生成亦是如此。First, the message digest algorithm is used to encrypt the evidentiary files to improve the credibility of the file evidence. When uploading the spreadsheet data of the property service contract, the contract number, service type, and service object are calculated through the message digest algorithm to generate the first message digest. Specifically, the contract number is composed of numbers, and the service type has a fixed service type number in the client. The contract number and service type number need to be converted into strings. Since the service object is a variable non-ASCII character composed of Chinese characters, it is necessary to encode it to generate a string first, and then merge the above strings into a single byte sequence in a preset unified order, and generate the first message digest through the message digest algorithm. The second message digest is generated in the same way.
根据待存证文件在客户端计算生成的第一消息摘要和在服务器端生成的第二消息摘要进行验证,有效检测待存证文件在上传过程中的错误或篡改,当出现了待存证文件上传错误的情况,此时错误的待存证文件还未进入存证流程,因此及时提示用户重新上传文件的步骤,能够提高用户上传正确的待存证文件的速率。Verification is performed based on the first message digest calculated on the client side and the second message digest generated on the server side for the file to be stored, so as to effectively detect errors or tampering in the upload process of the file to be stored. When an error occurs in uploading the file to be stored, the erroneous file to be stored has not yet entered the storage process. Therefore, the user is promptly prompted to re-upload the file, which can increase the rate at which the user uploads the correct file to be stored.
在待存证文件经过验证未发现错误后,通过存证库中已有的文件与待存证文件进行验证,以发现是否有文件重复上传的目的,尽量避免出现重复存证的情况,进而提高物业管理工作中文件存证的效率和准确性,当出现了待存证文件上传重复的情况,此时错误的待存证文件还未进入存证流程,因此及时提示用户重复文件的步骤,则能够告知用户该待存证文件在上传时并未出现数据篡改的问题,但已有相同的文件上传的情况。After the file to be deposited has been verified and no errors are found, the file to be deposited is verified with the existing files in the evidence library to find out whether there are any files uploaded repeatedly, so as to avoid duplicate evidence as much as possible, thereby improving the efficiency and accuracy of file evidence in property management work. When there is a duplicate upload of the file to be deposited, the erroneous file to be deposited has not yet entered the evidence process. Therefore, the user is promptly prompted to repeat the file steps, which can inform the user that there was no data tampering when uploading the file to be deposited, but the same file has already been uploaded.
在图片文件进行上传时,判断待存证文件是否为同一图像的同时,还要判断上传的图片的内容是否重复,比如说,用户待上传一张物业服务合同的图片,而存证库中可能存在由同一信息内容,但拍摄角度的不同物业服务合同的图片,此时待上传物业服务合同的图片视为重复存证的图片。When uploading an image file, in addition to determining whether the file to be stored is the same image, it is also necessary to determine whether the content of the uploaded image is repeated. For example, a user is going to upload a picture of a property service contract, but there may be pictures of property service contracts with the same information content but taken from different angles in the storage library. In this case, the picture of the property service contract to be uploaded is considered a duplicate picture for storage.
为判断待上传的图片是否为同一图像的同时判断图片的内容是否重复,需要提取图片的有效信息生成消息摘要进行对比。客户端需要获取拍摄的地理位置和时间信息,并且通过图像识别算法和光学识别算法,识别出图像中的特征点,获取当前图像的物体类型或文字内容,根据物体类型或文字内容、拍摄的地理位置和时间信息一同合并生成第一消息摘要,生成的消息摘要不仅更加复杂,增强了第一消息摘要的加密性,还携带了图片的特征信息。在A3的步骤中,当出现第一消息摘要与存证库中的消息摘要的情况时,则判断为当前的图片中已经存证过,包括与待存证文件一致特征信息的图像已经存证过,进而减少相同内容的图像的重复存证,提高物业管理工作中文件存证的效率和准确性。In order to determine whether the image to be uploaded is the same image and whether the content of the image is repeated, it is necessary to extract the effective information of the image and generate a message digest for comparison. The client needs to obtain the geographical location and time information of the shooting, and identify the feature points in the image through the image recognition algorithm and the optical recognition algorithm, obtain the object type or text content of the current image, and generate the first message digest based on the object type or text content, the geographical location and time information of the shooting. The generated message digest is not only more complex, but also enhances the encryption of the first message digest. It also carries the characteristic information of the image. In step A3, when the first message digest and the message digest in the evidence library are different, it is judged that the current image has been stored, including the image with the same characteristic information as the file to be stored, thereby reducing the repeated storage of images with the same content and improving the efficiency and accuracy of document storage in property management.
参考图2,进一步的,在其中一实施例中,步骤S2细化为以下子步骤:Referring to FIG. 2 , further, in one embodiment, step S2 is refined into the following sub-steps:
S20:获取由服务器端根据客户端上传的待存证文件。S20: Obtain the file to be stored uploaded by the server according to the client.
S21:通过与计算第一消息摘要一致的消息摘要算法,获取由服务器端根据客户端上传的待存证文件计算生成的第二消息摘要。S21: Obtain a second message digest generated by the server according to the file to be stored uploaded by the client, using a message digest algorithm consistent with the one used to calculate the first message digest.
具体的,针对不同类型的文件,采用特定的消息摘要算法进行计算的具体实现方式,相同类型的文件采用同一套消息摘要算法。Specifically, for different types of files, a specific message digest algorithm is used for calculation, and the same type of files use the same message digest algorithm.
例如,在客户端使用MD5算法摘要对待存证文件生成第一消息摘要、第三消息摘要,则在服务器端也使用MD5算法生成第二消息摘要、第四消息摘要,同样的,包括但不限于客户端和服务器端使用SHA-1算法摘要、SHA-256算法摘要生成等生成消息摘要。For example, if the MD5 algorithm digest is used on the client to generate the first message digest and the third message digest for the evidence file, the MD5 algorithm is also used on the server to generate the second message digest and the fourth message digest. Similarly, the client and server use the SHA-1 algorithm digest, SHA-256 algorithm digest, etc. to generate message digests.
当客户端或服务端的消息摘要算法被更改,二者生成的消息摘要就会不一致,因此必须统一客户端和服务端的消息摘要。When the message digest algorithm of the client or server is changed, the message digests generated by the two will be inconsistent, so the message digests of the client and server must be unified.
在本实施例中,客户端和服务器端均采用相同的消息摘要算法计算生成的消息摘要,在待存证文件未发生错误或篡改的情况下,在客户端和服务器端生成的消息摘要内容具有一致性和可验证性,为后续验证待存证文件在上传过程中是否发生错误或篡改提供了可靠的数据基础,进而提高文件存证的准确性和安全性。In this embodiment, both the client and the server use the same message digest algorithm to calculate the generated message digest. When there is no error or tampering in the file to be stored, the message digest content generated on the client and the server is consistent and verifiable, which provides a reliable data basis for subsequent verification of whether there is any error or tampering in the file to be stored during the upload process, thereby improving the accuracy and security of file storage.
此外,参考图3,进一步的,在其中一实施例中,步骤A1细化为以下子步骤:In addition, referring to FIG. 3 , further, in one embodiment, step A1 is refined into the following sub-steps:
A10:将第一消息摘要和第二消息摘要进行匹配,判断第一消息摘要与第二消息摘要的内容是否一致,若一致,则判断为待存证文件上传过程中出现错误,执行A2,若不一致,则判断为待存证文件上传过程中未出现错误,执行A3。A10: Match the first message digest with the second message digest to determine whether the contents of the first message digest and the second message digest are consistent. If they are consistent, it is determined that an error occurred during the upload of the file to be stored, and A2 is executed. If they are inconsistent, it is determined that no error occurred during the upload of the file to be stored, and A3 is executed.
在本实施例中,待存证文件的消息摘要具有唯一性,通过对比在客户端和服务器端采用同一消息摘要算法生成的第一消息摘要与第二消息摘要,能够有效判断待存证文件在上传过程中是否错误或篡改,使待存证文件内容具有原始性,在上传时具有准确性,从而保障了待存证文件的完整性和可信度。In this embodiment, the message digest of the file to be stored is unique. By comparing the first message digest and the second message digest generated by the same message digest algorithm on the client and the server, it can be effectively determined whether the file to be stored is erroneous or tampered with during the upload process, so that the content of the file to be stored is original and accurate when uploaded, thereby ensuring the integrity and credibility of the file to be stored.
此外,参考图4,进一步的,在其中一实施例中,步骤A3细化为以下子步骤:In addition, referring to FIG. 4 , further, in one embodiment, step A3 is further divided into the following sub-steps:
A30:判断存证库中是否存在与待存证文件一致的文件,若存证库中存在与待存证文件一致的文件,则执行A4,若存证库中不存在与第一消息摘要完全一致的记录,则执行A5。A30: Determine whether there is a file in the evidence repository that is consistent with the file to be stored. If there is a file in the evidence repository that is consistent with the file to be stored, execute A4. If there is no record in the evidence repository that is completely consistent with the first message digest, execute A5.
在本实施例中,设计存证库结构和算法,构建存证库,以实现对大量文件摘要的快速检索和精确匹配,在确认待存证文件在上传过程中未发现有错误或篡改后,利用存证库进行快速摘要比对,能够有效识别重复文件,减少不必要的存储资源消耗。In this embodiment, the evidence library structure and algorithm are designed to construct an evidence library to achieve rapid retrieval and accurate matching of a large number of file summaries. After confirming that no errors or tampering are found in the files to be stored during the upload process, the evidence library is used to perform rapid summary comparison, which can effectively identify duplicate files and reduce unnecessary storage resource consumption.
当存证库中已存在与当前待存证文件内容相同的记录,表明该文件信息已进行过存证,可确定当前的存证请求属于重复存证。重复存证不仅会占用存储空间,还可能造成存储资源的不必要浪费,因此采取措施尽量避免重复存证,有助于优化存储效率和节约资源,使存储空间得到合理利用,同时提升了待存证文件资源的管理效率。When there is already a record in the evidence library with the same content as the current file to be stored, it means that the file information has been stored before, and the current evidence request can be determined to be a duplicate evidence. Duplicate evidence not only takes up storage space, but also may cause unnecessary waste of storage resources. Therefore, taking measures to avoid duplicate evidence as much as possible helps optimize storage efficiency and save resources, making reasonable use of storage space, and improving the management efficiency of the resources of the files to be stored.
此外,参考图5,进一步的,在其中一实施例中,步骤A30细化为以下子步骤:In addition, referring to FIG. 5 , further, in one embodiment, step A30 is refined into the following sub-steps:
A300:判断存证库中是否存在与第一消息摘要一致的消息摘要。A300: Determine whether there is a message digest consistent with the first message digest in the evidence repository.
A301:若存证库中存在与第一消息摘要一致的消息摘要的文件,则执行A4,若存证库中不存在与第一消息摘要一致的消息摘要的文件,则执行A5。A301: If there is a file with a message digest that is consistent with the first message digest in the evidence repository, execute A4; if there is no file with a message digest that is consistent with the first message digest in the evidence repository, execute A5.
在本实施例中,在待存证文件进行存证前,利用消息摘要算法根据待存证文件生成的小数据量的第一消息摘要与存证库内已存证的文件的消息摘要进行精确匹配,实现快速检索是否存在与当前待存证文件一致的消息摘要的文件,以达到在数据传输量有限的场景下,能够迅速判断待存证文件是否重复上传的目的,尽量避免因重复存证导致的数据冗余和存储空间的浪费,优化了存证流程,提高了存储资源的利用效率,尽量避免不必要的存证操作。In this embodiment, before the file to be stored is stored, a message digest algorithm is used to accurately match a first message digest with a small amount of data generated based on the file to be stored with the message digest of the file already stored in the storage library, so as to quickly search whether there is a file with a message digest consistent with the current file to be stored. In this way, in a scenario where the amount of data transmission is limited, it is possible to quickly determine whether the file to be stored is uploaded repeatedly, avoid data redundancy and waste of storage space caused by repeated storage, optimize the storage process, improve the utilization efficiency of storage resources, and avoid unnecessary storage operations as much as possible.
此外,参考图6,进一步的,在其中一实施例中,步骤A4之后,增加有步骤A40:In addition, referring to FIG. 6 , further, in one embodiment, after step A4, step A40 is added:
A40:判断待存证文件使用的存证条例是否与存证库中的文件一致,若存证条例与存证库中的文件不一致时,提示用户是否操作错误。A40: Determine whether the evidence storage rules used by the file to be stored are consistent with the files in the evidence library. If the evidence storage rules are inconsistent with the files in the evidence library, prompt the user whether the operation is wrong.
在本实施例中,在待存证文件内与存证库中的文件匹配,即出现重复文件上传的情况的基础上,增加对存证条例的一致性检查,并在出现存证条例与存证库中的文件不一致时,提示用户是否操作错误,进而提升存证流程的严谨性,识别并处理因存证条例不一致导致的潜在问题,减少由于存证条例错误产生对操作的影响,增强系统的鲁棒性。In this embodiment, based on the matching of the file to be stored with the file in the storage library, that is, the occurrence of duplicate file uploads, a consistency check of the evidence regulations is added, and when the evidence regulations are inconsistent with the files in the storage library, the user is prompted whether the operation is wrong, thereby improving the rigor of the evidence process, identifying and handling potential problems caused by inconsistent evidence regulations, reducing the impact of errors in evidence regulations on operations, and enhancing the robustness of the system.
此外,参考图7,进一步的,在其中一实施例中,步骤A40细化为以下子步骤:In addition, referring to FIG. 7 , further, in one embodiment, step A40 is refined into the following sub-steps:
A400:根据第一消息摘要,判断待存证文件的来源与存证库中消息摘要一致的文件的来源是否相同,若相同,则判断为待存证文件使用的存证条例与存证库中的文件一致,并提示用户是否操作错误。A400: Based on the first message digest, determine whether the source of the file to be stored is the same as the source of the file with the same message digest in the evidence library. If they are the same, it is determined that the evidence regulations used by the file to be stored are consistent with the files in the evidence library, and the user is prompted whether the operation is wrong.
在本实施例中,以文件的来源作为存证条例,减少由于用户由于获取的来源冲突而导致上传文件操作错误的问题,增强系统的鲁棒性,例如,用户同时拥有消防员证和电工证两种其他证件,在文件进入存证过程时,用户不仅要上传待存证文件,还要上传身份证和一种其他证件,在识别到同一个人同时拥有两个其他证件,而身份证重复时,判断用户在上传该待存证文件时使用的其他证件,生成第一消息摘要,而后判断上传的其他证件类型与存证库中消息摘要一致的文件的其他证件类型是否相同,若相同,则判断为待存证文件使用的存证条例与存证库中的文件一致,并提示用户是否操作错误。In this embodiment, the source of the file is used as the evidence storage rule to reduce the problem of file upload operation errors caused by conflicts in the sources obtained by users and enhance the robustness of the system. For example, the user has two other certificates, a firefighter certificate and an electrician certificate. When the file enters the evidence storage process, the user must not only upload the file to be stored, but also upload the ID card and one other certificate. When it is recognized that the same person has two other certificates at the same time, and the ID card is repeated, the other certificate used by the user when uploading the file to be stored is determined, and a first message digest is generated. Then, it is determined whether the type of the other certificate uploaded is the same as the other certificate type of the file with the same message digest in the evidence library. If the same, it is determined that the evidence storage rule used by the file to be stored is consistent with the file in the evidence library, and the user is prompted whether the operation is wrong.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
本申请实施例还提供一种文件完整与文件重复处理系统,该文件完整与文件重复处理系统与实施例中文件完整与文件重复处理方法一一对应。The embodiment of the present application also provides a file integrity and file duplication processing system, which corresponds one-to-one to the file integrity and file duplication processing method in the embodiment.
参考图8,一种文件完整与文件重复处理系统包括:第一消息摘要计算模块1、第二消息摘要计算模块2、消息摘要匹配模块3、第一提示模块4、文件重复判断模块5、第二提示模块6、文件存证模块7。各功能模块详细说明如下:Referring to FIG8 , a file integrity and file duplication processing system includes: a first message digest calculation module 1, a second message digest calculation module 2, a message digest matching module 3, a first prompt module 4, a file duplication judgment module 5, a second prompt module 6, and a file evidence storage module 7. The functional modules are described in detail as follows:
第一消息摘要计算模块1:第一消息摘要计算模块1用于通过消息摘要算法,计算生成由用户上传到客户端的待存证文件生成的第一消息摘要。First message digest calculation module 1: The first message digest calculation module 1 is used to calculate and generate a first message digest of the file to be stored uploaded by the user to the client through a message digest algorithm.
第二消息摘要计算模块2:第二消息摘要计算模块2用于将待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1。Second message digest calculation module 2: The second message digest calculation module 2 is used to submit the file to be stored and the first message digest to the server, obtain the second message digest calculated and generated in the server, and execute A1.
消息摘要匹配模块3:消息摘要匹配模块3用于执行A1:根据第一消息摘要与第二消息摘要,判断待存证文件在上传过程中是否出现错误,若待存证文件上传过程中出现错误,则执行A2,若待存证文件上传过程中未出现错误,则执行A3。Message digest matching module 3: Message digest matching module 3 is used to execute A1: determine whether an error occurs during the upload of the file to be stored according to the first message digest and the second message digest; if an error occurs during the upload of the file to be stored, execute A2; if no error occurs during the upload of the file to be stored, execute A3.
第一提示模块4:第一提示模块4用于执行A2:提示用户重新上传。The first prompt module 4: The first prompt module 4 is used to execute A2: prompt the user to re-upload.
文件重复判断模块5:文件重复判断模块5执行A3:通过存证库中已有的文件与待存证文件进行验证,判断待存证文件是否重复上传,若重复上传,则执行A4,若首次上传,则执行A5。File duplication judgment module 5: The file duplication judgment module 5 executes A3: verifies the existing files in the evidence library with the files to be stored, and determines whether the files to be stored are uploaded repeatedly. If they are uploaded repeatedly, execute A4; if they are uploaded for the first time, execute A5.
第二提示模块6:第二提示模块6用于执行A4:提示用户重复存证。The second prompt module 6: The second prompt module 6 is used to execute A4: prompt the user to store the evidence again.
文件存证模块7:文件存证模块7用于执行A5:将待存证文件进行存证。File storage module 7: File storage module 7 is used to execute A5: store the file to be stored.
其中,第一消息摘要计算模块1先基于消息摘要算法,对上传至客户端的待存证文件进行计算,生成第一消息摘要,同时第二消息摘要计算模块2将客户端的待存证文件上传到服务器中,在服务器再生成第二消息摘要,通过消息摘要匹配模块3和获取的第一消息摘要、第二消息摘要,判断待存证文件在上传过程中是否出现错误,若出现错误,则通过第一提示模块4提示用户需要重新上传文件,若消息摘要匹配模块3判断待存证文件的上传未出现错误,文件重复判断模块5则对待存证文件是否出现重复存证进行判断,若待存证文件重复上传,则通过第二提示模块6提示用户重复存证,若待存证文件为首次上传,则将待存证文件进行存证,实现保护待存证文件的目的,使得待存证文件在上传过程中不易被篡改,并尽量避免出现重复存证,进而提高物业管理工作中文件存证的效率和准确性。Among them, the first message digest calculation module 1 first calculates the file to be stored uploaded to the client based on the message digest algorithm to generate a first message digest. At the same time, the second message digest calculation module 2 uploads the file to be stored of the client to the server, and generates a second message digest on the server. Through the message digest matching module 3 and the obtained first message digest and second message digest, it is judged whether there is an error in the uploading process of the file to be stored. If an error occurs, the first prompt module 4 prompts the user to re-upload the file. If the message digest matching module 3 determines that there is no error in the uploading of the file to be stored, the file duplication judgment module 5 judges whether there is a duplicate storage of the file to be stored. If the file to be stored is uploaded repeatedly, the second prompt module 6 prompts the user to repeat the storage. If the file to be stored is uploaded for the first time, the file to be stored is stored, so as to achieve the purpose of protecting the file to be stored, so that the file to be stored is not easily tampered with during the uploading process, and duplicate storage is avoided as much as possible, thereby improving the efficiency and accuracy of file storage in property management work.
关于文件完整与文件重复处理系统的具体限定可参见上下文中对文件完整与文件重复处理方法的限定,在此不再赘述。上述文件完整与文件重复处理系统中的各模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中的处理器中,也可以以软件形式存储于电子设备的存储器中,以便于处理器调用执行以上各模块对应的操作。在一个实施例中,提供了一种电子设备,该电子设备是用户端。参考图9,该电子设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的数据库用于存储检测数据表。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种文件完整与文件重复处理方法。For the specific definition of the file integrity and file duplication processing system, please refer to the definition of the file integrity and file duplication processing method in the context, which will not be repeated here. Each module in the above-mentioned file integrity and file duplication processing system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. In one embodiment, an electronic device is provided, which is a user end. Referring to Figure 9, the electronic device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store a detection data table. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a file integrity and file duplication processing method is implemented.
在一个实施例中,提供一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
S1:通过消息摘要算法,计算生成由用户上传到客户端的待存证文件生成的第一消息摘要。S1: Calculate and generate a first message digest of the file to be stored uploaded by the user to the client through a message digest algorithm.
S2:将待存证文件与第一消息摘要提交至服务器端,获取服务器端内计算生成第二消息摘要,执行A1。S2: Submit the file to be stored and the first message digest to the server, obtain the second message digest generated by calculation in the server, and execute A1.
A1:根据第一消息摘要与第二消息摘要,判断待存证文件在上传过程中是否出现错误,若待存证文件上传过程中出现错误,则执行A2,若待存证文件上传过程中未出现错误,则执行A3。A1: According to the first message digest and the second message digest, determine whether an error occurs during the upload of the file to be stored; if an error occurs during the upload of the file to be stored, execute A2; if no error occurs during the upload of the file to be stored, execute A3.
A2:提示用户重新上传。A2: Prompt the user to upload again.
A3:通过存证库中已有的文件与待存证文件进行验证,判断待存证文件是否重复上传,若重复上传,则执行A4,若首次上传,则执行A5。A3: Verify the existing files in the evidence library with the files to be stored to determine whether the files to be stored are uploaded repeatedly. If they are uploaded repeatedly, execute A4; if they are uploaded for the first time, execute A5.
A4:提示用户重复存证。A4: Prompt the user to save the evidence again.
A5:将待存证文件进行存证。A5: Store the documents to be stored.
在其中一实施例中,步骤S2细化的子步骤包括:In one embodiment, the sub-steps of step S2 include:
S20:获取由服务器端根据客户端上传的待存证文件。S20: Obtain the file to be stored uploaded by the server according to the client.
S21:通过与计算第一消息摘要一致的消息摘要算法,获取由服务器端根据客户端上传的待存证文件计算生成的第二消息摘要。S21: Obtain a second message digest generated by the server according to the file to be stored uploaded by the client, using a message digest algorithm consistent with the one used to calculate the first message digest.
在其中一实施例中,步骤A1细化的子步骤包括:In one embodiment, the sub-steps of step A1 include:
A10:将第一消息摘要和第二消息摘要进行匹配,判断第一消息摘要与第二消息摘要的内容是否一致,若一致,则判断为待存证文件上传过程中出现错误,执行A2,若不一致,则判断为待存证文件上传过程中未出现错误,执行A3。A10: Match the first message digest with the second message digest to determine whether the contents of the first message digest and the second message digest are consistent. If they are consistent, it is determined that an error occurred during the upload of the file to be stored, and A2 is executed. If they are inconsistent, it is determined that no error occurred during the upload of the file to be stored, and A3 is executed.
在其中一实施例中,步骤A3细化的子步骤包括:In one embodiment, the sub-steps of step A3 include:
A30:判断存证库中是否存在与待存证文件一致的文件,若存证库中存在与待存证文件一致的文件,则执行A4,若存证库中不存在与第一消息摘要完全一致的记录,则执行A5。A30: Determine whether there is a file in the evidence repository that is consistent with the file to be stored. If there is a file in the evidence repository that is consistent with the file to be stored, execute A4. If there is no record in the evidence repository that is completely consistent with the first message digest, execute A5.
在其中一实施例中,步骤A30细化的子步骤包括:In one embodiment, the sub-steps of step A30 include:
A300:判断存证库中是否存在与第一消息摘要一致的消息摘要。A300: Determine whether there is a message digest consistent with the first message digest in the evidence repository.
A301:若存证库中存在与第一消息摘要一致的消息摘要的文件,则执行A4,若存证库中不存在与第一消息摘要一致的消息摘要的文件,则执行A5。A301: If there is a file with a message digest that is consistent with the first message digest in the evidence repository, execute A4; if there is no file with a message digest that is consistent with the first message digest in the evidence repository, execute A5.
在其中一实施例中,步骤A4之后增加的步骤包括:In one embodiment, the steps added after step A4 include:
A40:判断待存证文件使用的存证条例是否与存证库中的文件一致,若存证条例与存证库中的文件不一致时,提示用户是否操作错误。A40: Determine whether the evidence storage rules used by the file to be stored are consistent with the files in the evidence library. If the evidence storage rules are inconsistent with the files in the evidence library, prompt the user whether the operation is wrong.
在其中一实施例中,步骤A40细化的子步骤包括:In one embodiment, the sub-steps of step A40 include:
A400:根据第一消息摘要,判断待存证文件的来源与存证库中消息摘要一致的文件的来源是否相同,若相同,则判断为待存证文件使用的存证条例与存证库中的文件一致,并提示用户是否操作错误。A400: Based on the first message digest, determine whether the source of the file to be stored is the same as the source of the file with the same message digest in the evidence library. If they are the same, it is determined that the evidence regulations used by the file to be stored are consistent with the files in the evidence library, and the user is prompted whether the operation is wrong.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411006395.6ACN118740828A (en) | 2024-07-25 | 2024-07-25 | A file integrity and file duplication processing method, system, device and medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411006395.6ACN118740828A (en) | 2024-07-25 | 2024-07-25 | A file integrity and file duplication processing method, system, device and medium |
| Publication Number | Publication Date |
|---|---|
| CN118740828Atrue CN118740828A (en) | 2024-10-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411006395.6APendingCN118740828A (en) | 2024-07-25 | 2024-07-25 | A file integrity and file duplication processing method, system, device and medium |
| Country | Link |
|---|---|
| CN (1) | CN118740828A (en) |
| Publication | Publication Date | Title |
|---|---|---|
| US11151236B2 (en) | File verification database system | |
| US12126730B2 (en) | Peer node recovery via approximate hash verification | |
| US12003647B2 (en) | Reduced-step blockchain verification of media file | |
| US20220292214A1 (en) | Blockchain endorsement with approximate hash verification | |
| US20230275743A1 (en) | Committing data to blockchain based on approximate hash verification | |
| US11526487B2 (en) | Database world state integrity validation | |
| US11689356B2 (en) | Approximate hash verification of unused blockchain output | |
| US11139960B2 (en) | File redaction database system | |
| US11025430B2 (en) | File provenance database system | |
| CN111428207A (en) | Digital copyright registration and transaction method based on blockchain technology | |
| US20200382309A1 (en) | Approximate hash verification for blockchain | |
| US20200286084A1 (en) | Auto-evolving database endorsement policies | |
| CN101308471B (en) | Method and device for data restoration | |
| CN112214456B (en) | House property data processing method and device and electronic equipment | |
| CN114564757A (en) | Data auditing method, device and equipment of block chain and readable storage medium | |
| US20200234375A1 (en) | Protecting against data loss | |
| US11106811B2 (en) | Object storage for guaranteed content for backup and retention | |
| CN111460436B (en) | A blockchain-based unstructured data operation method and system | |
| CN113326503A (en) | Certificate management method and computing device | |
| CN115220714A (en) | Application programming interface development method and device | |
| CN118740828A (en) | A file integrity and file duplication processing method, system, device and medium | |
| US12314244B1 (en) | Systems and methods for blockchain-based cloud storage document integrity | |
| CN118051958B (en) | Block chain-based accounting data modification method and system | |
| WO2020047736A1 (en) | Method and system for verifying integrity of website backend picture resource | |
| CN119046727A (en) | Internet asset data processing method, device, equipment, medium and program product |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |