Method and device for verifying encrypted bidding file
Through the method of analyzing digital certificate information and regional verification rules for encrypted bidding documents, a comprehensive verification of the bidding documents for bidding documents was realized, the problem of decryption and waste bidding for bidding documents was solved, and the bid process was made smoothly.
Patent Information
- Application Number
- CN202411626310.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-01-28
AI Technical Summary
During the bidding process, the bidding documents cannot be verified in advance after being encrypted, resulting in the failure of decryption during bid opening, which may cause the bidding unit to cancel the bid.
By obtaining an encrypted bidding document and digital certificate CA lock, analyze the digital certificate information and match the CA lock, analyze the regional verification rules of the area after decryption, and use these rules to comprehensively verify the decryption files. exhibit.
The comprehensive verification of the bidding of the encrypted bidding documents is realized to ensure that the CA lock availability and content synthesis of the file can be avoided to avoid decryption failure and waste bids during bid opening.
Smart Images

Figure CN119378020A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for verifying encrypted bidding documents. Background Art
[0002] During the bidding process, the bidding unit needs to encrypt the bidding documents and upload them to the bidding transaction platform. The bidding documents will be decrypted through the bidder decryption link on the day of bid opening. During the decryption process, decryption failure may occur. The reasons for failure may include: the CA used for encryption and decryption is inconsistent, the CA password is wrong, the encrypted bidding documents are damaged or lost, the production of the encrypted bidding documents does not meet the bidding requirements, the bidder's hardware equipment fails, etc. When the bidder's decryption fails, the bidding unit will be disqualified.
[0003] In the existing technology, it is impossible to know in advance whether the encrypted bidding documents are damaged, whether the local CA driver is available, and whether the compiled content and fields are compliant (for example, whether there are illegal field lengths and formats, whether there are repeated field IDs, whether there are inconsistencies with the core fields of the bidding documents, etc.); such problems can only be verified during the decryption during the formal bidding opening. Once a problem occurs, it means that the decryption has failed, which may result in the bidding unit's bid being cancelled, which is extremely risky.
[0004] Therefore, how to conduct a comprehensive verification of the encrypted bidding documents before decryption at the bid opening to avoid the situation of bid rejection has become a technical problem that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a method and device for verifying encrypted bidding documents, which can perform comprehensive, efficient and accurate pre-bid verification on encrypted bidding documents, thereby preventing the occurrence of bid rejection.
[0006] According to one aspect of the present invention, a method for verifying an encrypted bidding document is provided, the method comprising: Obtaining an encrypted bidding document and a digital certificate CA lock used to encrypt the encrypted bidding document; Parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; Parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information; The decrypted bidding document is verified using the regional verification rules, and the verification results are displayed visually.
[0007] Optionally, the step of parsing digital certificate information from the encrypted bidding document and, when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document by using the digital certificate CA lock to obtain a decrypted bidding document comprises: Obtaining a first digital certificate code contained in the digital certificate information; Parsing the second digital certificate code and the digital certificate password from the CA lock; Determining whether the first digital certificate code and the second digital certificate code are consistent; If so, the encrypted bidding document is decrypted using the digital certificate password to obtain the decrypted bidding document.
[0008] Optionally, parsing the region information from the decrypted bidding document and obtaining a region verification rule corresponding to the region information includes: Determining whether the file name suffix of the decrypted bidding document meets the preset format rule; If yes, then parse the target character used to represent the region from the file name suffix using the preset format rule; Determine the region information corresponding to the target character by using a preset mapping table; Acquire a regional verification rule corresponding to the regional information from a cloud server; wherein the regional verification rules for different regions are stored in the cloud server.
[0009] Optionally, before verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result, the method further includes: Obtaining a bidding document corresponding to the encrypted bidding document; The first project basic information is parsed from the bidding document; wherein the first project basic information includes at least one of the following: project name, project ID.
[0010] Optionally, the verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result includes: Parsing a bidding detail file from the decrypted bidding file, and parsing the second project basic information from the bidding detail file; Determining whether the first project basic information is consistent with the second project basic information; If yes, then use the regional verification rule to verify the field value of each bidding field in the bidding details file according to a preset verification method, and visualize the verification result; The bidding fields include at least one of the following: bidding price, project leader, project duration, and project quality requirements; The preset verification method includes at least one of the following: field value non-empty verification, field value unit verification, field value format verification, and field value numerical type verification.
[0011] Optionally, the verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result also includes: Parsing a bidding attachment file from the decrypted bidding file; Traversing each bid attachment in the bid attachment file in turn, and calculating the currently traversed bid attachment using an information digest algorithm to obtain a corresponding reference attachment information digest value; Parsing the summary values of each standard attachment information from the bidding details document; Compare whether the summary values of each standard attachment information in the bidding details document are consistent with the calculated summary values of each reference attachment information, and visualize the comparison results.
[0012] Optionally, the verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result also includes: Parsing a bidding price package file from the decrypted bidding file; Determine whether there are repeated fields in the bidding price combination file, and visualize the determination result.
[0013] In order to achieve the above object, the present invention also provides a device for verifying an encrypted bidding document, the device comprising: An acquisition module, used for acquiring an encrypted bidding document and a digital certificate CA lock used for encrypting the encrypted bidding document; A matching module, used for parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; A parsing module, used to parse the region information from the decrypted bidding document and obtain the region verification rule corresponding to the region information; The verification module is used to verify the decrypted bidding document using the regional verification rules and to visually display the verification results.
[0014] In order to achieve the above-mentioned purpose, the present invention also provides a computer device, which specifically includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method for verifying encrypted bidding documents when executing the computer program.
[0015] In order to achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for verifying an encrypted bidding document introduced above are implemented.
[0016] The method and device for verifying the encrypted bidding document provided by the present invention can verify the availability of the CA lock and the compliance of the content of the encrypted bidding document before the bid opening, and generate a visual verification result report based on the verification result, so that the bidder can find problems in time and avoid the situation of bid rejection during the bid opening. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 An optional flow chart of the method for verifying an encrypted bidding document provided in Example 1; Figure 2 A schematic diagram of the regionalized verification provided in Example 1; Figure 3 A schematic diagram of parsing a bidding document provided in Example 1; Figure 4 Another optional flow chart of the method for verifying the encrypted bidding document provided in the second embodiment; Figure 5 A schematic diagram of an optional composition structure of the device for verifying the encrypted bidding document provided in the third embodiment; Figure 6 A schematic diagram of an optional hardware architecture of a computer device provided in Example 4. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0019] Embodiment 1 The embodiment of the present invention provides a method for verifying an encrypted bidding document. Figure 1 As shown, the method specifically comprises the following steps: Step S101: Obtain an encrypted bidding document and a digital certificate CA lock used to encrypt the encrypted bidding document.
[0020] Among them, the encrypted bidding document is the encrypted bidding document that the bidder needs to upload to the bidding transaction platform when opening the bid; the CA lock is a digital certificate security authentication lock (Certificate Authority Lock), which is an electronic authentication tool, usually used to provide identity authentication, data encryption and digital signature functions in the bidding environment.
[0021] In this embodiment, the encrypted bidding documents and CA locks are obtained in advance before the formal bidding, and the availability of the CA locks and the integrity and compliance of the encrypted bidding documents are pre-verified to ensure a smooth bidding process.
[0022] Step S102: parsing the digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document.
[0023] When a CA lock is used to encrypt a bidding document, a digital certificate information corresponding to the CA lock will be generated in the encrypted bidding document; that is, the digital certificate information is used to represent the identity information of the CA lock. In addition, the CA lock can encrypt a bidding document and can also decrypt the encrypted bidding document when the bid is opened.
[0024] In addition, since the bidder may have multiple CA locks, in order to prevent the bidder from using the wrong CA lock, it is necessary to verify the availability of the CA lock before verifying the encrypted bid document; in this embodiment, the digital certificate information parsed from the encrypted bid document will be matched with the CA lock, and when the two match, the encrypted bid document will be decrypted through the CA lock to obtain the decrypted bid document; when the two do not match, the decryption fails, and an alarm message is sent to the bidder for the bidder to re-determine the CA lock for matching.
[0025] Step S103: parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information.
[0026] Since each region has different requirements for bidding documents, for example, different regions have different requirements for the name usage, length requirements, and format requirements for each field in the bidding documents; therefore, in this embodiment, different regional verification rules are set in advance for different regions, and the regional verification rules of a region meet the requirements of the region for bidding documents.
[0027] Step S104: Verify the decrypted bidding document using the regional verification rule, and visualize the verification result.
[0028] In this embodiment, the availability of the CA lock and the compliance of the encrypted bidding document content will be verified before the bid opening, and a visual verification result report will be generated based on the verification results to allow bidders to discover problems in a timely manner and avoid bid rejection during the bid opening.
[0029] Specifically, the step of parsing the digital certificate information from the encrypted bidding document in step S102, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document by using the digital certificate CA lock to obtain the decrypted bidding document includes: Step A1: Obtain the first digital certificate code contained in the digital certificate information; Step A2: parsing the second digital certificate code and the digital certificate password from the CA lock; Step A3: Determine whether the first digital certificate code is consistent with the second digital certificate code; Step A4: If yes, the encrypted bidding document is decrypted using the digital certificate password to obtain the decrypted bidding document.
[0030] In this embodiment, when the encrypted bidding document is verified by the CA lock, the encrypted bidding document and the CA lock are parsed respectively to obtain the CA code in the encrypted bidding document and the CA code and password in the CA lock. When the CA codes of the two match, the encrypted bidding document is decrypted by the password of the CA lock; if they do not match, the verification fails and the user needs to re-match the CA lock. By verifying whether the CA lock of the encrypted bidding document is invalid before the bid opening, the CA lock problem can be discovered in advance before the bid opening, avoiding the situation where the encrypted bidding document cannot be decrypted at the bid opening site.
[0031] In addition, the digital certificate information includes not only the first digital certificate code but also the first company name information; the CA lock includes not only the second digital certificate code and the digital certificate password but also the second company name information; at this time, only when the first digital certificate code is consistent with the second digital certificate code and the first company name information is consistent with the second company name information, the encrypted bidding document is decrypted by the digital certificate password.
[0032] Specifically, the step of parsing the region information from the decrypted bidding document and obtaining the region verification rule corresponding to the region information in step S103 includes: Step B1: Determine whether the file name suffix of the decrypted bidding document meets the preset format rule; Step B2: If yes, then parse the target character used to represent the region from the file name suffix using the preset format rule; Step B3: using a preset mapping table to determine the region information corresponding to the target character; Step B4: Acquire the regional verification rules corresponding to the regional information from the cloud server; wherein the regional verification rules for different regions are stored in the cloud server.
[0033] In this embodiment, the preset format rule is: the file name suffix includes two regional characters for representing the region and three file characters for representing the bidding document. For example, if the file name of an encrypted bidding document is "Bidding Test File.BJTbs", then the file name suffix of the document is "BJTbs", where "BJ" is the regional character and "Tbs" is the file character.
[0034] In addition, since each region has a corresponding regional verification rule, different regional verification rules have different provisions on the field name, length, and format in the bidding document. Therefore, in this embodiment, Figure 2 As shown, cloud storage is used to store the regional verification rules of each region. By using a cloud server, it can be ensured that the regional verification rules of each region can be updated in a timely manner, and the regional verification rules can be used by multiple parties.
[0035] Specifically, the step of verifying the decrypted bidding document using the regional verification rule and visually displaying the verification result in step S104 includes: Step C1: parsing the bid details file from the decrypted bid file; The bidding details file is a file in XML format, and all information of the bidding process is recorded in the bidding details file.
[0036] Step C2: using the regional verification rules to verify the field values of each bidding field in the bidding details file in accordance with a preset verification method, and visually displaying the verification results; The bidding fields include at least one of the following: bidding price, project leader, project duration, and project quality requirements; The preset verification method includes at least one of the following: field value non-empty verification, field value unit verification, field value format verification, and field value numerical type verification.
[0037] In this embodiment, the bid details file includes multiple bid fields and the field value of each bid field; in order to ensure the correctness of the field value of the key bid field in the bid details file, corresponding verification methods are set in advance for different key bid fields to verify whether the field value of the key bid field is compliant through the verification method.
[0038] Furthermore, the step of verifying the decrypted bidding document using the regional verification rule and visually displaying the verification result in step S104 further includes: Step D1: parsing the bid attachment file from the decrypted bid file; Step D2: traversing each bid attachment in the bid attachment file in turn, and calculating the currently traversed bid attachment using an information digest algorithm to obtain a corresponding reference attachment information digest value; Step D3: parsing the summary values of each standard attachment information from the bidding details document; Step D4: Compare the summary values of each standard attachment information in the bidding details document to see whether they are consistent with the calculated summary values of each reference attachment information, and visualize the comparison results.
[0039] like Figure 3 As shown, the bid details file (i.e., Figure 3 Bidding documents in the tender documents), tender attachment documents (i.e. Figure 3 Attachments to the Bid) and Bid Price Composition Documents (i.e. Figure 3 The bidding details document includes the relevant content information of the bidding attachments and the bidding price combination document.
[0040] The bid attachment file includes multiple bid attachments, but the bid details file only includes the MD5 value of each bid attachment. The MD5 algorithm (Message-Digest Algorithm 5) is a widely used cryptographic hash function that generates a 128-bit (16-byte) hash value and is usually used in non-security-critical applications. In this embodiment, the consistency between the bid details file and the bid attachment file is determined by using the MD5 algorithm, thereby ensuring the integrity of the bid file.
[0041] Furthermore, the step of verifying the decrypted bidding document using the regional verification rule and visually displaying the verification result in step S104 also includes: Step E1: parsing the bid price package file from the decrypted bid file; Step E2: Determine whether there are repeated fields in the bidding price composition file, and visualize the determination result.
[0042] In this embodiment, the fields in the bid price composition document are checked according to the regional verification rules to verify the compliance of the encrypted bid document and reduce the risk of bid rejection during the bid opening process.
[0043] Through this embodiment, based on the preset regional verification rules and field comparison verification methods, the encrypted bidding documents are fully verified before the bid opening to verify whether the CA driver is available, check the region to which it belongs, and verify the integrity and availability of the encrypted bidding documents. By referring to the bidding process, a comprehensive verification is performed on the encrypted bidding documents to help bidders find errors in the bidding documents in a timely manner and reduce the probability of bid rejection. Bidders can verify the validity of the prepared bidding documents and the correctness of the CA environment in a timely manner, thereby ensuring that all work preparations before the bid evaluation are correct, thereby reducing the risk of bid rejection during the bid opening process.
[0044] Embodiment 2 The embodiment of the present invention also provides a method for verifying an encrypted bidding document, such as Figure 4 As shown, the method specifically comprises the following steps: Step S201: Obtain an encrypted bidding document to be uploaded to a bidding transaction platform, and a CA lock used to encrypt the encrypted bidding document.
[0045] Step S202: Obtain the bidding document corresponding to the encrypted bidding document.
[0046] Step S203: Obtain the file name suffix of the encrypted bidding document, and determine whether the file name suffix meets the preset format rule; if so, execute step S204, if not, send an alarm message.
[0047] Specifically, the determining whether the file name suffix satisfies a preset format rule includes: It is determined whether the file name suffix includes two regional characters for representing a region and three file characters for representing a bidding document.
[0048] Step S204: parse the digital certificate information from the encrypted bidding document, and determine whether the digital certificate information matches the digital certificate CA lock; if so, execute step S205, if not, send an alarm message.
[0049] Specifically, the determining whether the digital certificate information matches the digital certificate CA lock includes: Step A1: Obtain the first digital certificate code contained in the digital certificate information; Step A2: parsing the second digital certificate code and the digital certificate password from the CA lock; Step A3: Determine whether the first digital certificate code is consistent with the second digital certificate code.
[0050] Step S205: decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document.
[0051] Specifically, step S205 includes: The encrypted bidding document is decrypted using the digital certificate password to obtain the decrypted bidding document.
[0052] Step S206: parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information.
[0053] Specifically, step S206 includes: Step B1: parsing the target character used to represent the region from the file name suffix using the preset format rule; Step B2: using a preset mapping table to determine the region information corresponding to the target character; Step B3: Acquire the regional verification rules corresponding to the regional information from the cloud server; wherein the regional verification rules for different regions are stored in the cloud server.
[0054] Step S207: parsing the decrypted bidding document to obtain a bidding detail file, a bidding attachment file and a bidding price package file.
[0055] Step S208: Perform detail verification on the bidding detail document using the regional verification rule.
[0056] Specifically, step S208 includes: Step C1: parsing the basic information of the first project from the bidding document; Step C2: parsing the basic information of the second project from the bidding details document; Step C3: determining whether the first project basic information is consistent with the second project basic information; if so, executing step C4; if not, sending an alarm message; Step C4: using the regional verification rules, respectively verify the field values of each bidding field in the bidding details file in accordance with a preset verification method.
[0057] Among them, the basic project information includes at least one of the following: project name, project ID; The bidding fields include at least one of the following: bidding price, project leader, project duration, and project quality requirements; The preset verification method includes at least one of the following: field value non-empty verification, field value unit verification, field value format verification, and field value numerical type verification.
[0058] Step S209: Perform attachment verification on the bid attachment file using the regional verification rule.
[0059] Specifically, step S209 includes: Step D1: traverse each bid attachment in the bid attachment file in turn, and use the MD5 algorithm to calculate the currently traversed bid attachment to obtain the corresponding reference attachment MD5 value; Step D2: parsing the MD5 value of each standard attachment from the bidding details document; Step D3: Compare the MD5 values of each standard attachment in the bidding details document to see if they are consistent with the calculated MD5 values of each reference attachment.
[0060] Step S210: Perform price verification on the bid price file using the regional verification rule.
[0061] Specifically, step S210 includes: Determine whether there are repeated fields in the bidding price combination file.
[0062] Step S211: Visually display the detailed verification results, attachment verification results, and group price verification results.
[0063] Furthermore, the method further comprises: The device information of the device used to generate the encrypted bidding document is parsed from the decrypted bidding document, and the device information is visually displayed.
[0064] The device information includes at least one of the following: device serial number, MAC address, and disk serial number.
[0065] In this embodiment, when uploading the bidding document, the project name and project ID of the bidding document need to be matched with the corresponding information in the parsed bidding document. If the match is successful, the verification is successful; if not, the verification fails. By verifying the information of the bidding document with the information of the decrypted bidding document, the risk of bid rejection is reduced.
[0066] Through this embodiment, based on the preset regional verification rules and field comparison verification methods, the encrypted bidding documents are fully verified before the bid opening to verify whether the CA driver is available, check the region to which it belongs, verify the integrity and availability of the encrypted bidding documents and the bidding documents. By referring to the bidding process, a comprehensive verification is performed on the encrypted bidding documents to help bidders find errors in the bidding documents in a timely manner and reduce the probability of bid rejection. Bidders can verify the validity of the prepared bidding documents and the correctness of the CA environment in a timely manner, thereby ensuring that all work preparations before the bid evaluation are correct, thereby reducing the risk of bid rejection during the bid opening process.
[0067] Embodiment 3 The embodiment of the present invention provides a device for verifying an encrypted bidding document, such as Figure 5 The device specifically comprises the following components: The acquisition module 501 is used to acquire the encrypted bidding document and the digital certificate CA lock used to encrypt the encrypted bidding document; A matching module 502 is used to parse the digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, the encrypted bidding document is decrypted by the digital certificate CA lock to obtain a decrypted bidding document; The parsing module 503 is used to parse the region information from the decrypted bidding document and obtain the region verification rule corresponding to the region information; The verification module 504 is used to verify the decrypted bidding document using the regional verification rules and to visually display the verification results.
[0068] Specifically, the matching module 502 is used to: Obtaining a first digital certificate code contained in the digital certificate information; Parsing the second digital certificate code and the digital certificate password from the CA lock; Determining whether the first digital certificate code and the second digital certificate code are consistent; If so, the encrypted bidding document is decrypted using the digital certificate password to obtain the decrypted bidding document.
[0069] Specifically, the parsing module 503 is used to: Determining whether the file name suffix of the decrypted bidding document meets the preset format rule; If yes, then parse the target character used to represent the region from the file name suffix using the preset format rule; Determine the region information corresponding to the target character by using a preset mapping table; Acquire a regional verification rule corresponding to the regional information from a cloud server; wherein the regional verification rules for different regions are stored in the cloud server.
[0070] Furthermore, the acquisition module 501 is also used for: Obtaining a bidding document corresponding to the encrypted bidding document; The first project basic information is parsed from the bidding document; wherein the first project basic information includes at least one of the following: project name, project ID.
[0071] Furthermore, the verification module 504 is specifically used for: Parsing a bidding detail file from the decrypted bidding file, and parsing the second project basic information from the bidding detail file; Determining whether the first project basic information is consistent with the second project basic information; If yes, then use the regional verification rule to verify the field value of each bidding field in the bidding details file according to a preset verification method, and visualize the verification result; The bidding fields include at least one of the following: bidding price, project leader, project duration, and project quality requirements; The preset verification method includes at least one of the following: field value non-empty verification, field value unit verification, field value format verification, and field value numerical type verification.
[0072] Furthermore, the verification module 504 is further specifically configured to: Parsing a bidding attachment file from the decrypted bidding file; Traversing each bid attachment in the bid attachment file in turn, and calculating the currently traversed bid attachment using an information digest algorithm to obtain a corresponding reference attachment information digest value; Parsing the summary values of each standard attachment information from the bidding details document; Compare whether the summary values of each standard attachment information in the bidding details document are consistent with the calculated summary values of each reference attachment information, and visualize the comparison results.
[0073] Furthermore, the verification module 504 is further specifically configured to: Parsing a bidding price package file from the decrypted bidding file; Determine whether there are repeated fields in the bidding price combination file, and visualize the determination result.
[0074] Embodiment 4 This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 6 As shown, the computer device 60 of this embodiment includes at least but not limited to: a memory 601 and a processor 602 that can communicate with each other via a system bus. It should be noted that Figure 6 Only computer device 60 is shown with components 601 - 602 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0075] In this embodiment, the memory 601 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 601 can be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. In other embodiments, the memory 601 can also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device 60. Of course, the memory 601 can also include both the internal storage unit of the computer device 60 and its external storage device. In this embodiment, the memory 601 is generally used to store the operating system and various application software installed on the computer device 60. In addition, the memory 601 can also be used to temporarily store various types of data that have been output or are to be output.
[0076] In some embodiments, the processor 602 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 602 is generally used to control the overall operation of the computer device 60 .
[0077] Specifically, in this embodiment, the processor 602 is used to execute the program of the text recognition method stored in the memory 601. When the program of the text recognition method is executed, the following steps are implemented: Obtaining an encrypted bidding document and a digital certificate CA lock used to encrypt the encrypted bidding document; Parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; Parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information; The decrypted bidding document is verified using the regional verification rules, and the verification results are displayed visually.
[0078] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.
[0079] Embodiment 5 This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the following method steps are implemented: Obtaining an encrypted bidding document and a digital certificate CA lock used to encrypt the encrypted bidding document; Parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; Parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information; The decrypted bidding document is verified using the regional verification rules, and the verification results are displayed visually.
[0080] The specific implementation process of the above method steps can be found in Example 1, and this embodiment will not be repeated here.
[0081] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0082] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0084] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for verifying an encrypted bidding document, characterized in that: The method comprises: Obtaining an encrypted bidding document and a digital certificate CA lock used to encrypt the encrypted bidding document; Parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; Parsing the region information from the decrypted bidding document, and obtaining the region verification rule corresponding to the region information; The decrypted bidding document is verified using the regional verification rules, and the verification results are displayed visually.
2. The method for verifying an encrypted bidding document according to claim 1, characterized in that: The step of parsing the digital certificate information from the encrypted bidding document and decrypting the encrypted bidding document by using the digital certificate CA lock to obtain a decrypted bidding document when the digital certificate information matches the digital certificate CA lock includes: Obtaining a first digital certificate code contained in the digital certificate information; Parsing the second digital certificate code and the digital certificate password from the CA lock; Determining whether the first digital certificate code and the second digital certificate code are consistent; If so, the encrypted bidding document is decrypted using the digital certificate password to obtain the decrypted bidding document.
3. The method for verifying an encrypted bidding document according to claim 1, characterized in that: The step of parsing the region information from the decrypted bidding document and obtaining the region verification rule corresponding to the region information includes: Determining whether the file name suffix of the decrypted bidding document meets the preset format rule; If yes, then parse the target character used to represent the region from the file name suffix using the preset format rule; Determine the region information corresponding to the target character by using a preset mapping table; Acquire a regional verification rule corresponding to the regional information from a cloud server; wherein the regional verification rules for different regions are stored in the cloud server.
4. The method for verifying an encrypted bidding document according to claim 1, characterized in that: Before verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result, the method further includes: Obtaining a bidding document corresponding to the encrypted bidding document; The first project basic information is parsed from the bidding document; wherein the first project basic information includes at least one of the following: project name, project ID.
5. The method for verifying an encrypted bidding document according to claim 4, characterized in that: The method of verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result includes: Parsing a bidding detail file from the decrypted bidding file, and parsing the second project basic information from the bidding detail file; Determining whether the first project basic information is consistent with the second project basic information; If yes, then use the regional verification rule to verify the field value of each bidding field in the bidding details file according to a preset verification method, and visualize the verification result; The bidding fields include at least one of the following: bidding price, project leader, project duration, and project quality requirements; The preset verification method includes at least one of the following: field value non-empty verification, field value unit verification, field value format verification, and field value numerical type verification.
6. The method for verifying an encrypted bidding document according to claim 4, characterized in that: The verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result also includes: Parsing a bidding attachment file from the decrypted bidding file; Traversing each bid attachment in the bid attachment file in turn, and calculating the currently traversed bid attachment using an information digest algorithm to obtain a corresponding reference attachment information digest value; Parsing the summary values of each standard attachment information from the bidding details document; Compare whether the summary values of each standard attachment information in the bidding details document are consistent with the calculated summary values of each reference attachment information, and visualize the comparison results.
7. The method for verifying an encrypted bidding document according to claim 4, characterized in that: The verifying the decrypted bidding document by using the regional verification rule and visually displaying the verification result also includes: Parsing a bidding price package file from the decrypted bidding file; Determine whether there are repeated fields in the bidding price combination file, and visualize the determination result.
8. A device for verifying an encrypted bidding document, characterized in that: The device comprises: An acquisition module, used for acquiring an encrypted bidding document and a digital certificate CA lock used for encrypting the encrypted bidding document; A matching module, used for parsing digital certificate information from the encrypted bidding document, and when the digital certificate information matches the digital certificate CA lock, decrypting the encrypted bidding document through the digital certificate CA lock to obtain a decrypted bidding document; A parsing module, used to parse the region information from the decrypted bidding document and obtain the region verification rule corresponding to the region information; The verification module is used to verify the decrypted bidding document using the regional verification rules and to visually display the verification results.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.