File processing method and device and electronic equipment
By receiving and verifying the first character string and the first verification data in the target file information and generating the second verification data, the problem of low security in the electronic contract encryption transmission in the prior art is solved, and the accurate transmission of file content and accurate verification of user identity is achieved, ensuring the security and tamper-proof of file.
Patent Information
- Application Number
- CN202411802559.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-09
AI Technical Summary
In the prior art, the security of encrypting and transmitting electronic contracts by setting passwords is low, and it is easy to be cracked and tampered, resulting in low security of electronic contracts.
By receiving the target file information sent by the first user, including the file to be signed, the second user, the first character string and the first verification data, the correctness of these data is verified, and the second verification data is generated under the correct situation, and sent to the second user to identify and sign the file. Finally, whether there is an exception in the signed file is determined based on the second string, and stored in the database.
Through the verification of the first character string and the first verification data, the file content is ensured that the file content has not been tampered with, and through the generation and verification of the second verification data, the user identity of the file process is ensured to be accurate, and the security and tamper-proof of the file during the transmission process are realized.
Smart Images

Figure CN119830316A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security, and in particular to a file processing method, device and electronic device. Background Art
[0002] With the rapid development of network technology, the electronic contract market, which uses technical means such as electronic signatures to complete the signing and delivery of contracts under the Internet environment, is showing a rapid development trend.
[0003] In order to ensure the security and tamper-proofness of electronic contracts, the commonly used method is to encrypt the electronic contracts by setting passwords when transmitting and signing them. However, the security of simply encrypting and transmitting contract files is low. After cracking the password, the contents of the contract files can be tampered with, resulting in low security of electronic contracts and affecting the security of contract signing.
[0004] With regard to the problem of low security in encrypting and transmitting electronic contracts by setting passwords in related technologies, no effective solution has been proposed so far. Summary of the invention
[0005] The main purpose of the present application is to provide a file processing method, device and electronic device to solve the problem of low security in encrypting and transmitting electronic contracts by setting passwords in the related art.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for processing a file is provided. The method includes: receiving target file information sent by a first user through a first user terminal, wherein the target file information includes a file to be signed, a second user, a first string and a first verification data, wherein the first string is calculated by the file to be signed, and the first verification data is calculated by the first string; obtaining the first user information of the first user, and verifying whether the first string and the first verification data are correct according to the first user information and the file to be signed; if the first string and the first verification data are both correct, generating the second verification data according to the first string and the second user information of the second user, and sending the first string to the second user terminal; receiving the verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain an identification result; if the identification result is correct, sending the file to be signed and the first string to the second user terminal, and receiving feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second string; judging whether the signed file has an abnormality according to the second string, and if the signed file has no abnormality, storing the signed file in a database.
[0007] Optionally, the first user information includes a first ID identifier of the first user, and verifying whether the first character string and the first verification data are correct based on the first user information and the file to be signed includes: obtaining a first preset algorithm, and calculating the file to be signed based on the first preset algorithm to obtain an initial character string, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed; comparing the initial character string with the first character string, and determining that the first character string is correct if the initial character string and the first character string are the same; obtaining a second preset algorithm, and calculating the first ID identifier and the initial character string based on the second preset algorithm to obtain initial verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string; comparing the initial verification data with the first verification data, and determining that the first verification data is correct if the initial verification data and the first verification data are the same.
[0008] Optionally, generating second verification data based on the first character string and the second user information of the second user includes: obtaining a second ID identifier of the second user from the second user information; obtaining a second preset algorithm, and calculating the second ID identifier and the first character string according to the second preset algorithm to obtain second verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string.
[0009] Optionally, the verification file includes third verification data and biometric information, the third verification data is calculated from the first character string and the user identification of the second user, and identifying the verification file based on the second user information and the second verification data includes: comparing the second verification data and the third verification data, and when the second verification data and the third verification data are the same, obtaining the biometric verification information of the second user from the second user information; comparing the biometric verification information with the biometric information, and when the biometric verification information and the biometric information are the same, determining that the recognition result is correct.
[0010] Optionally, determining whether there is an abnormality in the signed file based on the second character string includes: obtaining a first preset algorithm, and calculating the signed file according to the first preset algorithm to obtain a candidate character string, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed; comparing the candidate character string with the second character string, and if the candidate character string is the same as the second character string, determining that there is no abnormality in the signed file; if the candidate character string is different from the second character string, determining that there is an abnormality in the signed file.
[0011] Optionally, after receiving the file to be signed and the first string, the second user terminal calculates the file to be signed according to the first preset algorithm to obtain a target string, and displays the file content of the file to be signed on the second user terminal if the target string is the same as the first string, wherein the first preset algorithm is used to calculate the first string based on the file to be signed.
[0012] Optionally, after the second user signs the file to be signed displayed on the second user terminal, a signed file is obtained, and the signed file is calculated according to the first preset algorithm to obtain a second string, and the second string and the signed file are combined into feedback information.
[0013] In order to achieve the above objective, according to another aspect of the present application, a file processing device is provided. The device comprises: a receiving unit, used for receiving target file information sent by a first user through a first user terminal, wherein the target file information comprises a file to be signed, a second user, a first character string and a first verification data, wherein the first character string is obtained by calculating the file to be signed, and the first verification data is obtained by calculating the first character string; an acquiring unit, used for acquiring the first user information of the first user, and verifying whether the first character string and the first verification data are correct according to the first user information and the file to be signed; a generating unit, used for generating the second verification data according to the first character string and the second user information of the second user when both the first character string and the first verification data are correct, and sending the first character string to the second user terminal; an identifying unit, used for receiving the verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain an identification result; a sending unit, used for sending the file to be signed and the first character string to the second user terminal when the identification result is correct, and receiving feedback information sent by the second user terminal, wherein the feedback information comprises the signed file and the second character string; a judging unit, used for judging whether there is an abnormality in the signed file according to the second character string, and storing the signed file in a database when there is no abnormality in the signed file.
[0014] In an embodiment of the present application, a method is adopted in which target file information sent by a first user through a first user terminal is received, wherein the target file information includes a file to be signed, a second user, a first string and a first verification data, the first string is calculated from the file to be signed, and the first verification data is calculated from the first string; the first user information of the first user is obtained, and the first string and the first verification data are verified to be correct based on the first user information and the file to be signed; if the first string and the first verification data are both correct, the second verification data is generated based on the first string and the second user information of the second user, and the first string is sent to the second user terminal; the verification file sent by the second user through the second user terminal is received, and the verification file is identified based on the second user information and the second verification data to obtain an identification result; if the identification result is correct, the file to be signed and the first string are sent to the second user terminal, and feedback information sent by the second user terminal is received, wherein the feedback information includes the signed file and the second string; it is determined whether there is an abnormality in the signed file based on the second string, and if there is no abnormality in the signed file, the signed file is stored in a database. By setting a first character string and a first verification data, the first character string is used to determine whether the file content has been tampered with, and the first verification data is used to determine whether the file processor is correct, thereby ensuring the accuracy of the file content while ensuring the accuracy of the identity of the user who processes the file, thereby achieving the technical effect of ensuring that the file will not be tampered with during the transmission process, ensuring the accurate transmission and accurate processing of the file, and thus solving the technical problem of low security in encrypting and transmitting electronic contracts by setting passwords in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a computer terminal for implementing a file processing method is shown;
[0017] Figure 2 is a flowchart of a method for processing a file provided in Example 1 of the present application;
[0018] Figure 3 is a schematic diagram of a file processing system provided according to Example 2 of the present application;
[0019] Figure 4 is a flowchart of the file processing flow provided according to Example 2 of the present application;
[0020] Figure 5is a schematic diagram of a file processing device provided in Example 3 of the present application;
[0021] Figure 6 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] It should be noted that the file processing method, device and electronic device determined in the present disclosure can be used in the field of information security, and can also be used in any field other than the field of information security. The application field of the file processing method, device and electronic device determined in the present disclosure is not limited.
[0026] It should be noted that the collected information, user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) used in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated. Corresponding operation entrances are provided for users to choose to authorize use or refuse use. If the user chooses to refuse, the expert decision-making process is entered. For example, an interface is set between this system and relevant users or institutions. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or institution through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or institution.
[0027] The embodiments or examples of the present disclosure are not exhaustive, but are only illustrative of some embodiments or examples, and are not intended to be specific limitations on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment or example can be implemented as an independent example, and the steps can be combined arbitrarily. For example, the scheme after removing some steps in a certain embodiment or example can also be implemented as an independent example, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain embodiment or example can be combined arbitrarily; in addition, the various embodiments or examples can be combined arbitrarily, for example, some or all steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional methods or optional examples of other embodiments or examples.
[0028] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0029] ARQC: (authenticate request cryptogram) is the application cryptogram generated by the IC card (Integrated Circuit Card, smart card) for online transaction processing. The card issuer verifies the validity of the card in the current transaction by verifying ARQC during the online card authentication process.
[0030] Electronic contract: An electronic contract is an agreement between two or more parties reached in electronic form through an electronic information network to establish, change or terminate property-related civil rights and obligations.
[0031] Electronic signature: refers to the data contained or attached in electronic form in a data message that is used to identify the signatory and indicate that the signatory approves the content.
[0032] Example 1
[0033] According to an embodiment of the present application, an embodiment of a file processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a file processing method. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0036] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the file processing method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned file processing method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0039] Under the above operating environment, this application provides Figure 2 The processing method of the file shown. Figure 2 It is a flowchart of the file processing method provided according to Example 1 of the present application.
[0040] Step S201, receiving target file information sent by a first user through a first user terminal, wherein the target file information includes a file to be signed, a second user, a first string and first verification data, the first string is calculated from the file to be signed, and the first verification data is calculated from the first string.
[0041] It should be noted that the executor of this embodiment may be a business system or a business platform in a financial institution. The system or platform may be connected to multiple user terminals, and each user terminal may serve as a contract provider or a contract signatory.
[0042] Specifically, when the first user is the contract provider, the first user needs to generate a file to be signed on the first user end, where the file to be signed can be a contract document that needs to be signed. Since the file needs to be prevented from being tampered with, when the first user end sends the file to be signed to the business platform, it is necessary to calculate a first character string based on the file content of the file to be signed, and calculate first verification data from the first character string and user information. Then, when the business platform receives the file to be signed, it can determine whether the file to be signed has been tampered with based on the first character string, and determine whether the user sending the file is the first user based on the first verification data, thereby ensuring the security of the file transfer operation.
[0043] It should be noted that since the security factors of different contract files are different, the contract files can be encrypted and transmitted according to the requirements of the contract files, so as to ensure that the contract files will not be viewed by other users during the transmission process. When some contract files do not need to be encrypted, they can be transmitted without encryption, and the file to be signed, the first character string and the first verification data can be directly sent to the business platform.
[0044] It should be noted that the target file information also includes the second user, so that the business platform can determine the user who needs to sign the file to be signed, and then process the file to be signed according to the user information of the second user, and then send the file to be signed securely to the second user, so that the second user can sign the accurate contract document, thereby ensuring the accuracy and security of the signing process.
[0045] Step S202: obtaining first user information of a first user, and verifying whether a first character string and first verification data are correct according to the first user information and the file to be signed.
[0046] Specifically, after receiving the target file information, it is necessary to confirm the first character string and the first verification data carried in the target file information to ensure that the file to be signed in the target file information has not been tampered with during transmission, and the user who sent the target file information is the first user.
[0047] It should be noted that when verifying the first string, the method adopted is to process the signature file in the same way as the signature file in the first user terminal, and then use the same method to process the signature file in the business platform to obtain the first string, and compare the first string obtained in the business platform with the first string sent by the first user terminal. If the two strings are the same, it can be determined that the file to be signed has not been tampered with.
[0048] It should be noted that, when the file to be signed has not been tampered with, since the user information of the first user, such as the bank card chip key of the first user, is used when generating the first verification data, the user information of the first user can be obtained on the business platform, and the user information and the first character string are calculated using the same calculation method to obtain the first verification data, and the first verification data obtained on the business platform is compared with the first verification data sent by the first user end. When the two first verification data are the same, it can be determined that the target file information is sent by the first user. At this time, it can be determined that the file to be signed is correct, so that the subsequent operation process can be carried out.
[0049] Step S203 , when the first character string and the first verification data are both correct, generate second verification data according to the first character string and the second user information of the second user, and send the first character string to the second user terminal.
[0050] It should be noted that when it is determined that the file to be signed is correct, the file to be signed can be sent to the second user based on the information of the second user carried in the target file information, so that after receiving the file to be signed, the second user can sign the file to be signed, thereby completing the signing operation of the contract document.
[0051] Specifically, when sending a file to be signed to a second user, in order to ensure the accuracy of the file to be signed, prevent the file to be signed from being tampered with during transmission, and ensure that the file to be signed is received by the second user, second verification data can be generated based on the first character string and the user information of the second user, and the first character string can be sent to the second user terminal, so that the verification information fed back by the second user based on the first character string can be accepted, and then it can be determined whether the second user terminal is operated by the second user based on the second verification data and the feedback information, thereby completing the operation process of confirming the identity of the second user.
[0052] Step S204: receiving a verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain an identification result.
[0053] Specifically, after sending the first character string to the second user terminal, the second user terminal will receive user information input by the second user. The user information may be unique identification information that can verify the identity of the second user. After the second user terminal receives the second user information of the second user, the second user information and the first character string can be used for calculation to obtain verification information, and the verification information is sent to the business platform as a verification file. At this time, after the business platform receives the verification file sent by the second user terminal, the verification information in the verification file can be compared with the second verification information calculated in the business platform, so as to determine that there is no abnormality in the identity of the second user when the verification information in the verification file and the second verification information calculated in the business platform are the same.
[0054] It should be noted that when confirming the identity of the second user based on the second verification information, the identity of the second user can also be further identified by combining the second user's biometric information with the second user information of the second user, such as voice information, fingerprint information, etc., thereby ensuring the accuracy of the signature operation.
[0055] Step S205, when the recognition result is correct, the file to be signed and the first character string are sent to the second user terminal, and feedback information sent by the second user terminal is received, wherein the feedback information includes the signed file and the second character string.
[0056] Specifically, when the identity of the second user is confirmed to be correct, the file to be signed can be transmitted to the second user terminal. At this time, the first character string needs to be carried so that after the second user terminal receives the file to be signed, it can determine whether the file to be signed has been tampered with during the transmission process based on the first character string. That is, the second user terminal uses the same calculation method as mentioned above to process the file content of the file to be signed, obtain a character string, and compare the character string with the first character string. Under the same circumstances, it is determined that the file to be signed has not been tampered with, and the signing operation can be performed on the file to be signed.
[0057] After the second user signs the file to be signed, the second user terminal will generate a second character string based on the signed file, and combine the signed file and the second character string into feedback information and send it to the business platform, so that the business platform can determine whether the signed file has been tampered with based on the second character string, thereby ensuring the secure transmission of the signed file.
[0058] Step S206, judging whether there is any abnormality in the signed file according to the second character string, and storing the signed file in the database if there is no abnormality in the signed file.
[0059] Specifically, when the second character string and the signed file are received, the same calculation method can be used to calculate the signed file to obtain the calculated character string, and the character string is compared with the second character string. In the same case, it is characterized that the signed file has not been tampered with during the transmission process. At this time, it can be determined that the signed file is correct, and the signed file is stored in the database, thereby completing the complete file processing flow of file signing and file storage, and by verifying the character string and verification data, the security and tamper-proofness of the file are guaranteed.
[0060] The file processing method provided by the embodiment of the present application is through receiving the target file information sent by the first user through the first user terminal, wherein the target file information includes the file to be signed, the second user, the first string and the first verification data, the first string is calculated by the file to be signed, and the first verification data is calculated by the first string; obtaining the first user information of the first user, and verifying whether the first string and the first verification data are correct according to the first user information and the file to be signed; if the first string and the first verification data are both correct, generating the second verification data according to the first string and the second user information of the second user, and sending the first string to the second user terminal; receiving the verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain the identification result; if the identification result is correct, sending the file to be signed and the first string to the second user terminal, and receiving the feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second string; judging whether there is an abnormality in the signed file according to the second string, and if there is no abnormality in the signed file, storing the signed file in the database. By setting a first character string and a first verification data, the first character string is used to determine whether the file content has been tampered with, and the first verification data is used to determine whether the file processor is correct, thereby ensuring the accuracy of the file content while ensuring the accuracy of the identity of the user who processes the file, thereby achieving the technical effect of ensuring that the file will not be tampered with during the transmission process, ensuring the accurate transmission and accurate processing of the file, and thus solving the technical problem of low security in encrypting and transmitting electronic contracts by setting passwords in related technologies.
[0061] Optionally, in the file processing method provided in the embodiment of the present application, the first user information includes the first ID identification of the first user, and verifying whether the first character string and the first verification data are correct based on the first user information and the file to be signed includes: obtaining a first preset algorithm, and calculating the file to be signed according to the first preset algorithm to obtain an initial character string, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed; comparing the initial character string with the first character string, and determining that the first character string is correct if the initial character string and the first character string are the same; obtaining a second preset algorithm, and calculating the first ID identification and the initial character string according to the second preset algorithm to obtain initial verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string; comparing the initial verification data with the first verification data, and determining that the first verification data is correct if the initial verification data and the first verification data are the same.
[0062] It should be noted that the first user information may include the first ID of the first user, which may be a unique identifier of the user, for example, a bank card key of a bank card used by the first user for transactions, which is not limited here.
[0063] Specifically, when determining whether the first character string and the first verification data are correct, it is necessary to first determine the first preset algorithm, and the first preset algorithm needs to be the same as the algorithm used in the first user terminal to calculate the first character string for the file to be signed. After obtaining the first preset algorithm, the first preset algorithm can be used to calculate the file to be signed received by the business platform to obtain an initial character string, and the initial character string is compared with the first character string. Since the initial character string and the first character string are both obtained by signing the file to be signed using the first preset algorithm, if the file to be signed has not been tampered with, the initial character string must be the same as the first character string. Therefore, if it is determined that the initial character string is the same as the first character string, it can be indicated that the file to be signed has not been tampered with during the process of being transmitted from the first user terminal to the business platform, thereby determining that there is no abnormality in the file to be signed.
[0064] Furthermore, when the initial character string is the same as the first character string, it is also necessary to determine whether the user using the first user terminal is the first user. At this time, a second preset algorithm can be obtained, and the initial character string and the first ID identifier can be calculated according to the second preset algorithm to obtain initial verification data, wherein, since the process and data used for calculating the initial verification data are the same as the process and data used when the first server calculates the first verification data, therefore, when the user ID identifier is accurate, the first verification data and the initial verification data must be the same. Therefore, when the first verification data and the initial verification data are the same, it can be determined that the file to be signed is sent by the first user through the first user terminal, thereby ensuring the accuracy and security of the file to be signed.
[0065] This embodiment confirms the first character string and the first verification data by using the first preset algorithm and the second preset algorithm, thereby ensuring the security and accuracy of the file to be signed.
[0066] Optionally, in the file processing method provided in the embodiment of the present application, generating second verification data based on the first character string and the second user information of the second user includes: obtaining a second ID identifier of the second user from the second user information; obtaining a second preset algorithm, and calculating the second ID identifier and the first character string according to the second preset algorithm to obtain second verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string.
[0067] Specifically, when generating the second verification data, since the content of the file to be signed has not changed, the first character string can continue to be used for calculation. At this time, it is necessary to replace the algorithm and use the second preset algorithm to calculate and process the first character string. At the same time, it is also necessary to obtain the second ID identifier in the second user information of the second user, so that the identity information of the second user on the second user end can be verified according to the calculated second verification data, thereby verifying the second user and ensuring the accuracy of the operation of signing the file to be signed.
[0068] It should be noted that when performing the calculation, a second preset algorithm can be obtained, and the first character string and the second ID identifier in the second user information can be calculated according to the second preset algorithm to obtain second verification information related to the second ID identifier, and then the identity of the second user is verified according to the second verification information to ensure that the identity of the second user is accurate.
[0069] In this embodiment, the second verification data is obtained by calculating the first character string and the second ID identification using the second preset algorithm, and the identity of the second user is verified using the second verification data related to the identity information of the second user, thereby ensuring the accuracy of the identity of the second user who receives the file to be signed.
[0070] Optionally, in the file processing method provided in the embodiment of the present application, the verification file includes third verification data and biometric information, the third verification data is calculated from the first character string and the user identification of the second user, and identifying the verification file based on the second user information and the second verification data includes: comparing the second verification data and the third verification data, and when the second verification data and the third verification data are the same, obtaining the biometric verification information of the second user from the second user information; comparing the biometric verification information with the biometric information, and when the biometric verification information and the biometric information are the same, determining that the recognition result is correct.
[0071] Specifically, when identifying the verification file, since the third verification data in the verification file is calculated from the first character string and the user identification of the second user, in order to ensure the accuracy of the identity of the second user, it is first necessary to compare the second verification data and the third verification data calculated in the above process. Since the second verification data and the third verification data are both calculated from the first character string, when the user information recorded in the business platform and the user information used by the second user are consistent, the second verification data and the third verification data are equal. At this time, it can be determined that the preliminary identity recognition result of the second user is passed.
[0072] Furthermore, in the case that the second verification data and the third verification data are the same, since the verification file also carries biometric information, it is necessary to further obtain the biometric verification information pre-stored by the second user from the user information, and determine whether the biometric information in the verification file is correct by comparing the biometric verification information with the biometric information in the verification file. In the case that the biometric information in the verification file is correct, the third verification data and the biometric information are both correct, thereby indicating that the verification file is correct. At this time, it can be determined that there is no abnormality in the identity of the second user, and the file to be signed can be transmitted to the second user terminal, and the second user terminal will display the content of the file to be signed to the second user.
[0073] This embodiment ensures that the second user indicated by the first user using the second user terminal is the same user by verifying the third verification data and biometric information in the verification file, thereby ensuring the security and accuracy of the signing operation of the file to be signed.
[0074] Optionally, in the file processing method provided in the embodiment of the present application, determining whether there is an abnormality in the signed file based on the second character string includes: obtaining a first preset algorithm, and calculating the signed file according to the first preset algorithm to obtain a candidate character string, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed; comparing the candidate character string with the second character string, and if the candidate character string is the same as the second character string, determining that there is no abnormality in the signed file; if the candidate character string is not the same as the second character string, determining that there is an abnormality in the signed file.
[0075] Specifically, when the business platform receives a signed file, it is necessary to determine whether there is an abnormality in the signed file based on the second character string. At this time, the first preset algorithm can be obtained, and the signed file can be calculated using the first preset algorithm to obtain a candidate character string. Since the second character string and the candidate character string are both obtained by processing the signed file through the first preset algorithm, therefore, when the signed file has not been tampered with, the second character string and the candidate character string should be equal. At this time, when the second character string and the candidate character string are equal, it can be determined that the signed file has not been tampered with. At this time, it can be determined that there is no abnormality in the signed file, thereby ensuring the accuracy of the signed file.
[0076] This embodiment achieves the technical effect of ensuring the accuracy of the signed file by comparing the second character string with the candidate character string.
[0077] Optionally, in the file processing method provided in the embodiment of the present application, after receiving the file to be signed and the first string, the second user terminal calculates the file to be signed according to the first preset algorithm to obtain a target string, and when the target string is the same as the first string, the file content of the file to be signed is displayed on the second user terminal, wherein the first preset algorithm is used to calculate the first string based on the file to be signed.
[0078] Specifically, after the second user terminal receives the file to be signed and the first character string, in order to ensure the accuracy of the received file to be signed, it is necessary to verify the file to be signed. At this time, the first preset algorithm can be used to calculate the file to be signed to obtain the target character string, and the target character string is compared with the first character string. When the target character string is equal to the first character string, it indicates that the file to be signed has not been tampered with. At this time, the file content of the file to be signed can be displayed on the second user terminal, so that the second user can perform a signing operation on the file to be signed, thereby ensuring the accuracy of the signed file.
[0079] This embodiment ensures the accuracy of the file to be signed by the second user by identifying the file to be signed at the second user end.
[0080] Optionally, in the file processing method provided in the embodiment of the present application, after the second user signs the file to be signed displayed on the second user terminal, a signed file is obtained, and the signed file is calculated according to the first preset algorithm to obtain a second string, and the second string and the signed file are combined into feedback information.
[0081] Specifically, in order to be able to verify the signed file on the business platform, the signed file can be calculated according to the first preset algorithm to obtain a second string, and the second string and the signed file can be sent to the business platform as feedback information, so that the business platform can calculate the signed file according to the first preset algorithm, and compare the obtained string with the second string, thereby ensuring the normal transmission of the signed file.
[0082] This embodiment uses the first preset algorithm to calculate the signed file to obtain the second character string, so that the service platform can verify the content of the signed file according to the second character string, thereby ensuring the security and accuracy of the transmission operation of the signed file.
[0083] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0084] Example 2
[0085] The embodiment of the present application also provides a file processing system. It should be noted that the file processing system of the embodiment of the present application can be used to execute the file processing method provided by the embodiment of the present application. Figure 3 is a schematic diagram of a file processing system provided in Example 2 of the present application, such as Figure 3 As shown, the system includes:
[0086] Multiple user terminals and a business platform connected to the multiple user terminals, wherein the multiple user terminals may be the first user terminal or the second user terminal involved in the above-mentioned file processing method, and each user terminal is connected and performs file transfer operations through the business platform.
[0087] Figure 4 is a flowchart of the file processing flow provided in Example 2 of the present application, such as Figure 4 As shown, when the file processing system processes the signature file, the file processing and interaction can be performed according to the following process:
[0088] First, the first user terminal calculates the file to be signed according to the first preset algorithm to obtain a first character string (HSTR1), and encrypts the first character string and the bank card key of the first user through ARQC technology according to the second preset algorithm to obtain a first ARQC encrypted string (ASTR1). At this time, the first user terminal sends the file to be signed, the user name of the second user, HSTR1 and ASTR1 to the business platform, wherein the first preset algorithm can be a hash encryption algorithm, and the obtained first character string can be a hash value.
[0089] After the business platform receives the file to be signed, the user name of the second user, HSTR1 and ASTR1, it calculates the file to be signed according to the first preset algorithm to obtain HSTR2, obtains the bank card key of the first user from the platform database, calculates HSTR2 and the bank card key of the first user according to the second preset algorithm to obtain ASTR2, and compares HSTR1 and ASTR1 with HSTR2 and ASTR2. When HSTR1 and HSTR2 are the same and ASTR1 and ASTR2 are exactly the same, it is determined that the file to be signed is correct. At this time, the operation of sending the file to be signed to the second user end is performed.
[0090] The business platform determines the second user terminal used by the second user based on the user name of the second user, and sends HSTR1 to the second user terminal. The second user swipes the card at the second user terminal, so that the second user terminal obtains the bank card key of the second user, and calculates HSTR1 and the bank card key of the second user in the second user terminal according to the second preset algorithm to obtain ASTR3, and sends ASTR3 to the business platform.
[0091] After receiving ASTR3, the business platform uses the bank card key of the second user stored in the business platform and HSTR1 to calculate and obtain ASTR4, and compares ASTR3 and ASTR4. If ASTR3 and ASTR4 are the same, it is determined that the second user is correct. At this time, the file to be signed and HSTR1 can be sent to the second user end.
[0092] The second user terminal calculates the file to be signed according to the first preset algorithm to obtain HSTR3, and compares HSTR3 with HSTR1. Under the same circumstances, it is determined that the file to be signed is correct. At this time, the second user performs a signing operation on the file to be signed displayed on the second user terminal to obtain a signed file, and calculates the signed file according to the first preset algorithm to obtain HSTR4, and feeds HSTR4 and the signed file back to the business platform.
[0093] After receiving HSTR4 and the signed file, the business platform calculates the signed file according to the first preset algorithm to obtain HSTR5, and compares HSTR4 and HSTR5. If they are the same, if it is determined that the signed file is correct, the signed file will be stored, thereby completing the file transfer and file signing operations, ensuring the accuracy of file transfer and operations.
[0094] Example 3
[0095] The present application also provides a file processing device. It should be noted that the file processing device of the present application can be used to execute the file processing method provided by the present application. The following is an introduction to the file processing device provided by the present application.
[0096] According to an embodiment of the present application, a device for implementing the above-mentioned file processing method is also provided. Figure 5 is a schematic diagram of a file processing device provided in Example 3 of the present application, such as Figure 5 As shown, the device comprises:
[0097] The receiving unit 51 is used to receive target file information sent by the first user through the first user terminal, wherein the target file information includes the file to be signed, the second user, the first string and the first verification data, the first string is calculated by the file to be signed, and the first verification data is calculated by the first string.
[0098] The acquisition unit 52 is used to acquire first user information of the first user, and verify whether the first character string and the first verification data are correct according to the first user information and the file to be signed.
[0099] The generating unit 53 is configured to generate second verification data according to the first character string and the second user information of the second user when both the first character string and the first verification data are correct, and send the first character string to the second user terminal.
[0100] The identification unit 54 is used to receive the verification file sent by the second user through the second user terminal, and identify the verification file according to the second user information and the second verification data to obtain an identification result.
[0101] The sending unit 55 is used to send the file to be signed and the first character string to the second user terminal when the recognition result is correct, and receive feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second character string.
[0102] The judging unit 56 is configured to judge whether there is any abnormality in the signed file according to the second character string, and if there is no abnormality in the signed file, store the signed file in the database.
[0103] The file processing device provided by the embodiment of the present application receives target file information sent by the first user through the first user terminal through the receiving unit 51, wherein the target file information includes the file to be signed, the second user, the first string and the first verification data, the first string is calculated by the file to be signed, and the first verification data is calculated by the first string; the obtaining unit 52 obtains the first user information of the first user, and verifies whether the first string and the first verification data are correct according to the first user information and the file to be signed; the generating unit 53 generates the second verification data according to the first string and the second user information of the second user when both the first string and the first verification data are correct, and sends the first string to the second user terminal; the identifying unit 54 receives the verification file sent by the second user through the second user terminal, and identifies the verification file according to the second user information and the second verification data to obtain the identification result; the sending unit 55 sends the file to be signed and the first string to the second user terminal when the identification result is correct, and receives the feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second string; the judging unit 56 judges whether there is an abnormality in the signed file according to the second string, and stores the signed file in the database when there is no abnormality in the signed file. By setting a first character string and a first verification data, the first character string is used to determine whether the file content has been tampered with, and the first verification data is used to determine whether the file processor is correct, thereby ensuring the accuracy of the file content while ensuring the accuracy of the identity of the user who processes the file, thereby achieving the technical effect of ensuring that the file will not be tampered with during the transmission process, ensuring the accurate transmission and accurate processing of the file, and thus solving the technical problem of low security in encrypting and transmitting electronic contracts by setting passwords in related technologies.
[0104] Optionally, in the file processing device provided in the embodiment of the present application, the first user information includes a first ID identifier of the first user, and the acquisition unit 52 includes: a first acquisition module, used to obtain a first preset algorithm, and calculate the file to be signed according to the first preset algorithm to obtain an initial string, wherein the first preset algorithm is used to calculate the first string according to the file to be signed; a first determination module, used to compare the initial string with the first string, and determine that the first string is correct if the initial string and the first string are the same; a second acquisition module, used to obtain a second preset algorithm, and calculate the first ID identifier and the initial string according to the second preset algorithm to obtain initial verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first string; a second determination module, used to compare the initial verification data with the first verification data, and determine that the first verification data is correct if the initial verification data and the first verification data are the same.
[0105] Optionally, in the file processing device provided in the embodiment of the present application, the generation unit 53 includes: a third acquisition module, used to obtain a second ID identifier of the second user from the second user information; a calculation module, used to obtain a second preset algorithm, and calculate the second ID identifier and the first character string according to the second preset algorithm to obtain second verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string.
[0106] Optionally, in the file processing device provided in the embodiment of the present application, the verification file includes third verification data and biometric information, the third verification data is calculated by the first character string and the user identification of the second user, and the identification unit 54 includes: a first comparison module, used to compare the second verification data and the third verification data, and when the second verification data and the third verification data are the same, obtain the biometric verification information of the second user from the second user information; a third determination module, used to compare the biometric verification information with the biometric information, and when the biometric verification information and the biometric information are the same, determine that the recognition result is correct.
[0107] Optionally, in the file processing device provided in the embodiment of the present application, the judgment unit 56 includes: a fourth acquisition module, used to obtain a first preset algorithm, and calculate the signed file according to the first preset algorithm to obtain a candidate string, wherein the first preset algorithm is used to calculate the first string based on the file to be signed; a second comparison module, used to compare the candidate string with the second string, and when the candidate string is the same as the second string, determine that there is no abnormality in the signed file; a fourth determination module, used to determine that there is an abnormality in the signed file when the candidate string is different from the second string.
[0108] Optionally, in the file processing device provided in the embodiment of the present application, after receiving the file to be signed and the first string, the second user terminal calculates the file to be signed according to the first preset algorithm to obtain a target string, and when the target string is the same as the first string, the file content of the file to be signed is displayed on the second user terminal, wherein the first preset algorithm is used to calculate the first string based on the file to be signed.
[0109] Optionally, in the file processing device provided in the embodiment of the present application, after the second user signs the file to be signed displayed on the second user terminal, a signed file is obtained, and the signed file is calculated according to the first preset algorithm to obtain a second character string, and the second character string and the signed file are combined into feedback information.
[0110] It should be noted that the receiving unit 51, the acquiring unit 52, the generating unit 53, the identifying unit 54, the sending unit 55, and the judging unit 56 correspond to steps S201 to S206 in Embodiment 1, and the two modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules or units may be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the modules may also be part of a device and run in the computer terminal 10 provided in Embodiment 1.
[0111] Example 4
[0112] An embodiment of the present application may provide an electronic device, Figure 6 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 6 As shown, the electronic device may include: one or more ( Figure 6 (only one is shown) processor 1002, memory 1004, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0113] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0114] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: receiving the target file information sent by the first user through the first user terminal, wherein the target file information includes the file to be signed, the second user, the first string and the first verification data, the first string is calculated by the file to be signed, and the first verification data is calculated by the first string; obtaining the first user information of the first user, and verifying whether the first string and the first verification data are correct according to the first user information and the file to be signed; if the first string and the first verification data are both correct, generating the second verification data according to the first string and the second user information of the second user, and sending the first string to the second user terminal; receiving the verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain an identification result; if the identification result is correct, sending the file to be signed and the first string to the second user terminal, and receiving feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second string; judging whether there is an abnormality in the signed file according to the second string, and if there is no abnormality in the signed file, storing the signed file in the database.
[0115] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain a first preset algorithm, and calculate the file to be signed according to the first preset algorithm to obtain an initial string, wherein the first preset algorithm is used to calculate the first string according to the file to be signed; compare the initial string with the first string, and determine that the first string is correct when the initial string and the first string are the same; obtain a second preset algorithm, and calculate the first ID identification and the initial string according to the second preset algorithm to obtain initial verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first string; compare the initial verification data with the first verification data, and determine that the first verification data is correct when the initial verification data and the first verification data are the same.
[0116] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain the second ID identifier of the second user from the second user information; obtain the second preset algorithm, and calculate the second ID identifier and the first character string according to the second preset algorithm to obtain the second verification data, wherein the second preset algorithm is used to calculate the first verification data based on the first character string.
[0117] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: the verification file includes third verification data and biometric information, the third verification data is calculated by the first character string and the user identification of the second user, and identifying the verification file according to the second user information and the second verification data includes: comparing the second verification data and the third verification data, and when the second verification data and the third verification data are the same, obtaining the biometric verification information of the second user from the second user information; comparing the biometric verification information with the biometric information, and when the biometric verification information and the biometric information are the same, determining that the recognition result is correct.
[0118] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: obtain a first preset algorithm, and calculate the signed file according to the first preset algorithm to obtain a candidate string, wherein the first preset algorithm is used to calculate the first string based on the file to be signed; compare the candidate string with the second string, and when the candidate string is the same as the second string, determine that there is no abnormality in the signed file; when the candidate string is different from the second string, determine that there is an abnormality in the signed file.
[0119] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: after receiving the file to be signed and the first character string, the second user terminal calculates the file to be signed according to the first preset algorithm to obtain the target character string, and when the target character string is the same as the first character string, the file content of the file to be signed is displayed on the second user terminal, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed.
[0120] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: after the second user signs the file to be signed displayed on the second user terminal, a signed file is obtained, and the signed file is calculated according to the first preset algorithm to obtain a second character string, and the second character string and the signed file are combined into feedback information.
[0121] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 6 The structure of the electronic device is not limited. Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 6Different configurations are shown.
[0122] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0123] Example 5
[0124] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the file processing method provided in the first embodiment.
[0125] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0126] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the file processing method.
[0127] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0128] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0129] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0131] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0133] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for processing a file, characterized in that: include: Receiving target file information sent by a first user through a first user terminal, wherein the target file information includes a file to be signed, a second user, a first string and first verification data, wherein the first string is calculated from the file to be signed, and the first verification data is calculated from the first string; Acquire first user information of the first user, and verify whether the first character string and the first verification data are correct according to the first user information and the file to be signed; If the first character string and the first verification data are both correct, generating second verification data according to the first character string and second user information of the second user, and sending the first character string to the second user terminal; receiving a verification file sent by the second user through the second user terminal, and identifying the verification file according to the second user information and the second verification data to obtain an identification result; If the recognition result is correct, the file to be signed and the first character string are sent to the second user terminal, and feedback information sent by the second user terminal is received, wherein the feedback information includes the signed file and the second character string; It is determined whether the signed file has any abnormality according to the second character string, and if the signed file has no abnormality, the signed file is stored in a database.
2. The method according to claim 1, characterized in that The first user information includes a first ID of the first user, and verifying whether the first character string and the first verification data are correct according to the first user information and the file to be signed includes: Obtaining a first preset algorithm, and calculating the file to be signed according to the first preset algorithm to obtain an initial string, wherein the first preset algorithm is used to calculate the first string according to the file to be signed; Comparing the initial character string with the first character string, and determining that the first character string is correct if the initial character string and the first character string are the same; Obtaining a second preset algorithm, and calculating the first ID identifier and the initial string according to the second preset algorithm to obtain initial verification data, wherein the second preset algorithm is used to calculate the first verification data according to the first string; The initial verification data and the first verification data are compared, and if the initial verification data and the first verification data are the same, it is determined that the first verification data is correct.
3. The method according to claim 1, characterized in that Generating second verification data according to the first character string and second user information of the second user includes: Acquire a second ID of the second user from the second user information; A second preset algorithm is obtained, and the second ID identification and the first character string are calculated according to the second preset algorithm to obtain the second verification data, wherein the second preset algorithm is used to calculate the first verification data according to the first character string.
4. The method according to claim 3, characterized in that The verification file includes third verification data and biometric information, the third verification data is calculated from the first character string and the user identification of the second user, and identifying the verification file according to the second user information and the second verification data includes: comparing the second verification data with the third verification data, and acquiring the biometric verification information of the second user from the second user information if the second verification data and the third verification data are the same; The biometric verification information is compared with the biometric information, and when the biometric verification information is identical to the biometric information, the recognition result is determined to be correct.
5. The method according to claim 1, characterized in that Judging whether the signed file is abnormal according to the second character string includes: Obtaining a first preset algorithm, and calculating the signed file according to the first preset algorithm to obtain a candidate string, wherein the first preset algorithm is used to calculate the first string according to the file to be signed; Comparing the candidate string with the second string, and determining that there is no abnormality in the signed file when the candidate string is identical to the second string; When the candidate character string is different from the second character string, it is determined that an abnormality exists in the signed file.
6. The method according to claim 1, characterized in that After receiving the file to be signed and the first character string, the second user terminal calculates the file to be signed according to a first preset algorithm to obtain a target character string, and displays the file content of the file to be signed on the second user terminal when the target character string is the same as the first character string, wherein the first preset algorithm is used to calculate the first character string based on the file to be signed.
7. The method according to claim 1, characterized in that After the second user signs the file to be signed displayed on the second user terminal, the signed file is obtained, and the signed file is calculated according to a first preset algorithm to obtain the second character string, and the second character string and the signed file are combined into the feedback information.
8. A file processing device, characterized in that: include: a receiving unit, configured to receive target file information sent by a first user through a first user terminal, wherein the target file information includes a file to be signed, a second user, a first string, and first verification data, wherein the first string is calculated from the file to be signed, and the first verification data is calculated from the first string; an acquiring unit, configured to acquire first user information of the first user, and verify whether the first character string and the first verification data are correct according to the first user information and the file to be signed; a generating unit, configured to generate second verification data according to the first character string and second user information of the second user when the first character string and the first verification data are both correct, and send the first character string to a second user terminal; an identification unit, configured to receive a verification file sent by the second user through the second user terminal, and identify the verification file according to the second user information and the second verification data to obtain an identification result; a sending unit, configured to send the file to be signed and the first character string to the second user terminal if the recognition result is correct, and receive feedback information sent by the second user terminal, wherein the feedback information includes the signed file and the second character string; The judging unit is configured to judge whether the signed file has any abnormality according to the second character string, and store the signed file in a database if the signed file has no abnormality.
9. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the file processing method described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program executes the file processing method described in any one of claims 1 to 7 when running.
Citation Information
Patent Citations
Electronic equipment, signature verification system and signature verification method thereof
CN102801525A
Electronic signature file processing method, client, computer device and medium
CN110490004A
Method and device for digital contract signature, electronic equipment and storage medium
CN117061121A
File encryption method and system
CN118764231A
Digital Signature Method, Signature Information Verification Method, Related Apparatus and Electronic Device
US20210377048A1