A method, system, computer, and readable storage medium for verifying electronic guarantees.

By encrypting the data and QR codes of electronic guarantees, the inconvenience of verifying electronic guarantees and the problem of information security have been solved, and an efficient and secure verification process has been achieved.

CN117251839BActive Publication Date: 2026-11-17JIANGXI HUAZHANG HANCHEN GUARANTEE GRP CO LTD +5
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311150857.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2026-11-17
Estimated Expiration
2043-09-07

Smart Images

  • Figure CN117251839B_ABST
    Figure CN117251839B_ABST
Patent Text Reader

Abstract

This invention provides a method, system, computer, and readable storage medium for verifying electronic guarantees. The method includes: encrypting the electronic guarantee to be verified to obtain encrypted information of the electronic guarantee; acquiring feature information of the electronic guarantee; generating a verification QR code based on the encrypted information and the feature information; determining an encryption key using a preset encryption algorithm; encrypting the verification QR code based on the encryption key to obtain an encrypted QR code; and decrypting and recognizing the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee. This invention simplifies the verification process and improves the efficiency of verification. Furthermore, by encrypting the electronic guarantee and the verification QR code during the verification process, it ensures the uniqueness and security of the electronic guarantee.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of electronic guarantees, specifically relating to a method, system, device, and readable storage medium for verifying electronic guarantees. Background Technology

[0002] Currently, electronic guarantee documents are widely used in bidding, project performance and other fields to replace the payment of security deposits, allowing beneficiaries to verify the authenticity of the electronic guarantee document online upon receipt.

[0003] Currently, the traditional way to verify the authenticity of electronic guarantees is to upload the electronic guarantee to a blockchain platform and verify its authenticity through file hash value or check whether the signature technology in the electronic file is genuine. This method is very inconvenient in contactless closed bidding and the verification process is quite complicated. Summary of the Invention

[0004] To address the aforementioned technical problems, this invention provides an electronic guarantee verification method, system, device, and readable storage medium to resolve the technical issues existing in the prior art.

[0005] In a first aspect, the invention provides the following technical solution: a method for verifying electronic guarantees, the method comprising: The electronic guarantee to be verified is encrypted to obtain the encrypted information of the electronic guarantee to be verified. Obtain the characteristic information of the electronic guarantee to be verified, the characteristic information including at least the guarantee business number, project information, signatory information and content information of the electronic guarantee to be verified; A verification QR code is generated based on the encrypted information and the feature information; An encryption key is determined using a preset encryption algorithm, and the verification QR code is encrypted based on the encryption key to obtain an encrypted QR code. The encrypted QR code is decrypted and identified based on the encryption key to obtain the verification result of the electronic guarantee to be verified. The step of encrypting the electronic guarantee to be verified to obtain the encrypted information of the electronic guarantee includes: Identify the document content and keyword information of the electronic guarantee to be verified; The file content information and the keyword information are encrypted using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; The encrypted content information and the encrypted keyword information are integrated to obtain the encrypted information of the electronic guarantee to be verified.

[0006] Compared with existing technologies, the beneficial effects of this application are as follows: This application first encrypts the electronic guarantee to be verified to obtain its encrypted information. By encrypting the electronic guarantee, it ensures that all guarantee project information is in encrypted form before the project bidding, preventing leakage of the electronic guarantee's content. Then, it obtains the characteristic information of the electronic guarantee to be verified, which includes at least the guarantee business number, project information, signatory information, and content information. Based on the encrypted information and the characteristic information, a verification QR code is generated, and a preset encryption algorithm is used to encrypt the verification QR code. The QR code is encrypted to prevent unauthorized personnel from identifying the guarantee information and thus avoid information leakage. Furthermore, the pre-set encryption algorithm prevents attackers from easily cracking the key, significantly enhancing the security of the guarantee information. After obtaining the encryption key, the bidding agency decrypts the encrypted QR code to obtain the verification QR code. The information obtained after scanning the verification QR code is compared with the electronic guarantee document provided by the bidding party to obtain the corresponding verification result. This invention simplifies the verification process and improves efficiency. Simultaneously, by encrypting the electronic guarantee and the verification QR code during the verification process, the uniqueness and security of the electronic guarantee are guaranteed.

[0007] Preferably, the step of obtaining the feature information of the genuine electronic guarantee to be verified includes: Obtain the electronic guarantee issuance request issued by the first requester, and generate the guarantee business number and project information of the electronic guarantee to be verified based on the electronic guarantee issuance request; The signatory identity of the electronic guarantee to be verified has been identified, and the signatory information of the electronic guarantee to be verified has been obtained; The contents of the electronic guarantee to be verified are identified using OCR technology to obtain the content information of the electronic guarantee to be verified.

[0008] Preferably, the step of generating a verification QR code based on the encryption information and the feature information includes: The system uses Spring Cloud to generate QR codes and employs ZXing and a Java-based multi-format 1D / 2D barcode image processing library to generate a recognition QR code based on the encrypted information and the feature information. The recognition QR code is then processed using the QR code processing library zbar to generate a verification QR code with a unique identifier.

[0009] Preferably, the step of determining an encryption key using a preset encryption algorithm and encrypting the verification QR code based on the encryption key to obtain an encrypted QR code includes: Randomly generate three distinct random numbers. , , Calculate the dot product of three random numbers. and the corresponding Euler totient function : ; ; In the formula, Let be a random positive number, and ; Randomly select an integer and make and ,in, The greatest common divisor; like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ; Based on the encrypted number Determine the encryption key and based on the encryption key For the verification QR code Encryption is performed to obtain an encrypted QR code. : ; ; In the formula, Represents the modulus.

[0010] Preferably, the step of decrypting and recognizing the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee to be verified includes: Based on the encryption key The encrypted QR code Decrypt to obtain the verification QR code. : ; Scan and recognize the verification QR code In order to obtain the guarantee information of the electronic guarantee to be verified; Determine whether the guarantee information matches the information entered by the company; If the guarantee information matches the information entered by the company, the electronic guarantee to be verified will pass verification; if the guarantee information does not match the information entered by the company, the electronic guarantee to be verified will fail verification.

[0011] Preferably, before the step of decrypting and recognizing the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee to be verified, the method further includes: Receive a verification request from the second requester, obtain the identity information of the second requester based on the verification request, and determine whether the identity information corresponds to the feature information; If the identity information corresponds to the feature information, then the step of decrypting the encrypted QR code based on the encryption key and recognizing the encrypted QR code is performed to obtain the verification result of the electronic guarantee to be verified. If the identity information does not correspond to the feature information, then the verification request is terminated.

[0012] Secondly, the invention provides the following technical solution: an electronic guarantee verification system, the system comprising: The first encryption module is used to encrypt the data of the electronic guarantee to be verified in order to obtain the encrypted information of the electronic guarantee to be verified. The acquisition module is used to acquire the feature information of the electronic guarantee to be verified, and the feature information includes at least the guarantee business number, project information, signatory information and content information of the electronic guarantee to be verified; The QR code generation module is used to generate a verification QR code based on the encrypted information and the feature information. The second encryption module uses a preset encryption algorithm to determine the encryption key, and encrypts the verification QR code based on the encryption key to obtain an encrypted QR code. The verification result generation module is used to decrypt the encrypted QR code based on the encryption key and identify the encrypted QR code to obtain the verification result of the electronic guarantee to be verified. The first encryption module includes: The identification submodule is used to identify the document content and keyword information of the electronic guarantee to be verified; The encryption submodule is used to encrypt the file content information and the keyword information using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; The integration submodule is used to integrate the encrypted content information with the encrypted keyword information to obtain the encrypted information of the electronic guarantee to be verified.

[0013] Preferably, the system further includes: The receiving module is used to receive a verification request sent by the second requester, obtain the identity information of the second requester based on the verification request, and determine whether the identity information corresponds to the feature information. The termination module is used to control the verification result generation module to perform the step of decrypting the encrypted QR code based on the encryption key and recognizing the encrypted QR code to obtain the verification result of the electronic guarantee to be verified if the identity information corresponds to the feature information; and to terminate the verification request if the identity information does not correspond to the feature information.

[0014] Thirdly, the invention provides the following technical solution: a computer, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned method for verifying electronic guarantees.

[0015] Fourthly, the invention provides the following technical solution: a readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned method for verifying electronic guarantees. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 A flowchart of the electronic guarantee verification method provided in the first embodiment of the present invention; Figure 2 This is a detailed flowchart of step S1 in the electronic guarantee verification method provided in the first embodiment of the present invention; Figure 3 A detailed flowchart of step S2 in the electronic guarantee verification method provided in the first embodiment of the present invention; Figure 4 A detailed flowchart of step S4 in the electronic guarantee verification method provided in the first embodiment of the present invention; Figure 5 This is a detailed flowchart of step S5 in the electronic guarantee verification method provided in the first embodiment of the present invention; Figure 6 A detailed flowchart of the electronic guarantee verification method provided in the second embodiment of the present invention; Figure 7 This is a structural block diagram of the electronic guarantee verification system provided in the third embodiment of the present invention; Figure 8 This is a hardware structure block diagram of a computer provided for another embodiment of the present invention.

[0018] The embodiments of the present invention will be further described below with reference to the accompanying drawings. Detailed Implementation

[0019] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain embodiments of the present invention, and should not be construed as limiting the present invention.

[0020] Example 1 like Figure 1 As shown, in the first embodiment of the present invention, the invention provides the following technical solution: a method for verifying electronic guarantees, the method comprising: S1. Encrypt the electronic guarantee to be verified to obtain the encrypted information of the electronic guarantee to be verified. Specifically, in this step, the electronic guarantee to be verified is encrypted, ensuring that all information regarding the guarantee is in a ciphertext state before the project bidding. In the event of a leak of the electronic guarantee, no one can access its contents without decryption. Failure to decrypt the electronic guarantee will result in it being unopenable or displaying garbled text, thus demonstrating the security of the electronic guarantee.

[0021] like Figure 2 As shown, step S1 includes the following steps: S11. Identify the document content and keyword information of the electronic guarantee to be verified; Specifically, to identify the document content and keywords of the electronic guarantee to be verified, optical text scanning can be performed on the electronic guarantee to obtain its document content. After obtaining the document content, repeatedly occurring phrases in the document content are identified, and the phrases with the most repetitions are used as the keywords of the electronic guarantee. At the same time, when identifying repeated phrases, frequently occurring common words and modal particles should be deleted to avoid common words and modal particles affecting the final keyword encryption. S12. The file content information and the keyword information are encrypted using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; Specifically, the national cryptographic algorithm is one or more of SM1, SM2, SM3, SM4, SM7, and SM9; S13. Integrate the encrypted content information with the encrypted keyword information to obtain the encrypted information of the electronic guarantee to be verified. Specifically, by integrating the encrypted content information with the encrypted keyword information, encrypted information about the electronic guarantee to be verified can be obtained. At the same time, the use of dual encryption of content and keywords in this step can further enhance the security of the electronic guarantee.

[0022] S2. Obtain the feature information of the electronic guarantee to be verified, wherein the feature information includes at least the guarantee business number, project information, signatory information, and content information of the electronic guarantee to be verified; Specifically, by acquiring the characteristic information of the electronic guarantee to be verified, this characteristic information can represent the electronic guarantee to be verified. The guarantee business number of the electronic guarantee to be verified can be generated by the system based on the electronic guarantee application request issued by the user. The electronic guarantee to be verified can be found by using the guarantee business number. The project information of the electronic guarantee to be verified represents the specific bidding project information of the electronic guarantee to be verified. The signatory information of the electronic guarantee to be verified represents the signature, fingerprint, identity information, etc. of the signatory of the electronic guarantee to be verified. The content information of the electronic guarantee to be verified represents the specific content of the electronic guarantee to be verified. like Figure 3 As shown, step S2 includes the following steps: S21. Obtain the electronic guarantee issuance request issued by the first requester, and generate the guarantee business number and project information of the electronic guarantee to be verified based on the electronic guarantee issuance request. Specifically, after receiving the electronic guarantee issuance request from the first requester, the first requester will simultaneously upload the required electronic guarantee information, thus automatically generating a unique guarantee business number and corresponding project information for the electronic guarantee to be verified. S22. The signatory identity of the electronic guarantee to be verified is identified, and the signatory information of the electronic guarantee to be verified is obtained; Specifically, after the first requester issues a letter of request, the signatory information of the electronic guarantee will be automatically identified. The signatory can be the first requester or someone else, and the signatory’s ID card information, fingerprint information, signature and other signatory information that can prove the signatory’s identity will be obtained accordingly. S23. Use OCR technology to identify the contents of the electronic guarantee to be verified in order to obtain the content information of the electronic guarantee to be verified. Specifically, OCR technology is an abbreviation for Optical Character Recognition. It mainly converts text into image information through optical input methods such as scanning, and then uses character recognition technology to convert the image information into usable computer input technology. It scans and recognizes the specific content of the electronic guarantee to be verified, thus obtaining the content information of the electronic guarantee to be verified.

[0023] S3. Generate a verification QR code based on the encrypted information and the feature information; Specifically, in step S3, a QR code is generated using Spring Cloud technology and a multi-format 1D / 2D barcode image processing library written in Java, using ZXing. Based on the encryption information and the feature information, a recognition QR code is generated. The recognition QR code is then processed using the QR code processing library zbar to generate a verification QR code with a unique identifier. It is worth noting that the verification QR code is generated by encrypting the unique encrypted information and feature information of the electronic guarantee to be verified. The code cleverly utilizes the concept of "0" and "1" bit streams that form the basis of computer internal logic, and uses several geometric shapes corresponding to binary to represent textual and numerical information. It can be automatically read by image input devices or photoelectric scanning devices to achieve automatic information processing. The verification QR code has some common characteristics of barcode technology. Each code system has its specific character set, each character occupies a certain width, and has certain verification functions, etc.

[0024] S4. Determine the encryption key using a preset encryption algorithm, and encrypt the verification QR code based on the encryption key to obtain an encrypted QR code; Specifically, the content of the electronic guarantee has been encrypted in the above steps. However, in order to further ensure the security of the electronic guarantee information, a preset encryption algorithm is used to encrypt the verification QR code in this step to prevent unauthorized personnel from directly scanning the verification QR code and thus cracking the content of the electronic guarantee and the information of the guarantor, which would lead to information leakage.

[0025] like Figure 4 As shown, step S4 includes: S41. Randomly generate three distinct random numbers. , , Calculate the dot product of three random numbers. and the corresponding Euler totient function : ; ; In the formula, Let be a random positive number, and ; Among them, the three unequal random numbers are prime numbers, and the three are all different. The random integer is generally 1.

[0026] S42. Randomly select an integer. and make and ,in, The greatest common divisor; in, Specifically represented as and The greatest common divisor is 1.

[0027] S43, if ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. .

[0028] S44, Based on the encrypted number Determine the encryption key and based on the encryption key For the verification QR code Encryption is performed to obtain an encrypted QR code. : ; ; In the formula, Represents the modulus; Specifically, the preset encryption algorithm includes two steps: generating a key and encrypting a message. Two keys are generated, one of which is the encryption key. The other is a public key. The encryption key is used to encrypt the verification QR code and decrypt the encrypted QR code. The public key is a public message, which makes part of the verification QR code information public so that the type of QR code can be identified when scanning the QR code, thereby reducing the waiting time for scanning and recognition.

[0029] S5. Identify the verification QR code to obtain the verification result of the electronic guarantee to be verified; Specifically, by scanning and recognizing the verification QR code using an image input device or photoelectric scanning device, the characteristic information and encryption information of the electronic guarantee to be verified can be obtained. By comparing the electronic guarantee to be verified with the electronic guarantee at the user's location, the final verification result can be obtained.

[0030] like Figure 5 As shown, step S5 includes the following steps: S51, Based on the encryption key The encrypted QR code Decrypt to obtain the verification QR code. : .

[0031] S52. Scan and recognize the verification QR code. In order to obtain the guarantee information of the electronic guarantee to be verified; Specifically, the guarantee information includes the characteristic information of the electronic guarantee to be verified; S53. Determine whether the guarantee information matches the information entered by the enterprise; S54. If the guarantee information matches the information entered by the enterprise, the electronic guarantee to be verified will pass the verification; if the guarantee information does not match the information entered by the enterprise, the electronic guarantee to be verified will fail the verification. Specifically, the information entered by the enterprise includes the electronic guarantee received by the user and various characteristic information of the electronic guarantee. That is, the tendering agency compares the guarantee information obtained after scanning the verification QR code with the electronic guarantee document provided by the enterprise signatory. If the scan finds that the information is incorrect or the enterprise information is abnormal, it will prompt that the guarantee verification fails. The verified electronic guarantee will display project information, signatory information, guarantee information, etc. The guarantee information obtained by scanning the verification QR code can be compared with the guarantee information in the enterprise's entered information to obtain the final verification result.

[0032] The advantages of this first embodiment are as follows: First, the electronic guarantee to be verified is encrypted to obtain its encrypted information. This encryption ensures that all guarantee information remains encrypted before the project bidding process, preventing leakage of the electronic guarantee's content. Then, the characteristic information of the electronic guarantee to be verified is obtained. This characteristic information includes at least the guarantee business number, project information, signatory information, and content information. Based on the encrypted information and the characteristic information, a verification QR code is generated, and this QR code is further encrypted using a preset encryption algorithm. This invention prevents unauthorized individuals from identifying the guarantee information through the verification QR code, thus avoiding information leakage. Furthermore, the pre-set encryption algorithm prevents attackers from easily cracking the key, significantly enhancing the security of the guarantee information. After obtaining the encryption key, the bidding agency decrypts the encrypted QR code to obtain the verification QR code and compares the information obtained after scanning the verification QR code with the electronic guarantee document provided by the bidding party to obtain the corresponding verification result. This invention simplifies the verification process and improves verification efficiency. Simultaneously, by encrypting the electronic guarantee and the verification QR code during the verification process, the uniqueness and security of the electronic guarantee are guaranteed.

[0033] Example 2 like Figure 6 As shown, in the second embodiment of the present invention, the invention provides the following technical solution: a method for verifying electronic guarantees: S10. Encrypt the electronic guarantee to be verified to obtain the encrypted information of the electronic guarantee to be verified. S20. Obtain the feature information of the electronic guarantee to be verified, wherein the feature information includes at least the guarantee business number, project information, signatory information, and content information of the electronic guarantee to be verified; S30. The encrypted information and the feature information are used to generate a verification QR code; S40. Use a preset encryption algorithm to determine the encryption key, and encrypt the verification QR code based on the encryption key to obtain an encrypted QR code; S50. Based on the verification request received from the second requester, and based on the verification request, obtain the identity information of the second requester, and determine whether the identity information corresponds to the feature information; Specifically, the second requester in this second embodiment can be the first requester in the first embodiment, or it can be someone else. However, since the electronic guarantee to be verified is encrypted, only people related to the signatory can obtain the decoding tool corresponding to the encrypted information. In this step, by determining whether the identity information of the second requester corresponds to the feature information, the identity of the second requester is identified to prevent unauthorized personnel from maliciously viewing the contents of the electronic guarantee and to further ensure its security. S60. If the identity information corresponds to the feature information, the encrypted information is decrypted, and the encrypted QR code is decrypted and identified based on the encryption key to obtain the verification result of the electronic guarantee to be verified. If the identity information does not correspond to the feature information, the verification request is terminated. Specifically, the process of using a decoding tool to decode encrypted information and recognize the verification QR code is only permitted when the identity information and characteristic information of the second requester match. If the identity information and characteristic information of the second requester do not match, the second requester is deemed to be an irrelevant person and will not be able to recognize the verification QR code. When scanning the verification QR code, the second requester will not be able to view the verification result or the contents of the electronic guarantee. S70. Decrypt the encrypted QR code based on the encryption key and identify the encrypted QR code to obtain the verification result of the electronic guarantee to be verified.

[0034] Steps S10, S20, S30, S40, and S60 in this embodiment are the same as S1, S2, S3, S4, and S5 in Embodiment 1, except for steps S50 and S60.

[0035] The advantage of this second embodiment compared to the first embodiment is that by adding a process to identify the second requester, this embodiment further ensures the content of the electronic guarantee and prevents unauthorized personnel from obtaining the content information of the electronic guarantee.

[0036] Example 3 like Figure 7 As shown, a third embodiment of the present invention provides an electronic guarantee verification system, the system comprising: Secondly, the invention provides the following technical solution: an electronic guarantee verification system, the system comprising: The encryption module 10 is used to encrypt the data of the electronic guarantee to be verified in order to obtain the encrypted information of the electronic guarantee to be verified. The acquisition module 20 is used to acquire the feature information of the electronic guarantee to be verified, the feature information including at least the guarantee business number, project information, signatory information and content information of the electronic guarantee to be verified; The QR code generation module 30 is used to generate a verification QR code based on the encrypted information and the feature information. The second encryption module 40 uses a preset encryption algorithm to determine the encryption key, and encrypts the verification QR code based on the encryption key to obtain an encrypted QR code. The receiving module 50 is used to receive a verification request sent by the second requester, obtain the identity information of the second requester based on the verification request, and determine whether the identity information corresponds to the feature information. The termination module 60 is used to control the verification result generation module to perform the step of decrypting the encrypted QR code based on the encryption key and recognizing the encrypted QR code to obtain the verification result of the electronic guarantee to be verified if the identity information corresponds to the feature information; and to terminate the verification request if the identity information does not correspond to the feature information.

[0037] The verification result generation module 70 is used to decrypt and recognize the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee to be verified.

[0038] The encryption module 10 includes: The identification submodule is used to identify the document content and keyword information of the electronic guarantee to be verified; The encryption submodule is used to encrypt the file content information and the keyword information using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; The integration submodule is used to integrate the encrypted content information with the encrypted keyword information to obtain the encrypted information of the electronic guarantee to be verified.

[0039] The acquisition module 20 includes: The first acquisition submodule is used to acquire the electronic guarantee issuance request issued by the first requester, and generate the guarantee business number and project information of the electronic guarantee to be verified based on the electronic guarantee issuance request. The second acquisition submodule is used to identify the signatory of the electronic guarantee to be verified and obtain the signatory information of the electronic guarantee to be verified. The third acquisition submodule is used to identify the contents of the electronic guarantee to be verified using OCR technology, so as to obtain the content information of the electronic guarantee to be verified.

[0040] The second encryption module 40 includes: The random number submodule is used to randomly generate three distinct random numbers. , , Calculate the dot product of three random numbers. and the corresponding Euler totient function : ; ; In the formula, Let be a random positive number, and ; The integer submodule is used to randomly select an integer. and make and ,in, The greatest common divisor; The solver submodule is used for... ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ; The QR code encryption submodule is used to base the encryption data on... Determine the encryption key and based on the encryption key For the verification QR code Encryption is performed to obtain an encrypted QR code. : ; ; In the formula, Represents the modulus.

[0041] The verification result generation module 70 includes: The QR code decryption submodule is used to decrypt the QR code based on the encryption key. The encrypted QR code Decrypt to obtain the verification QR code. : ; The identification submodule is used to scan and identify the verification QR code. In order to obtain the guarantee information of the electronic guarantee to be verified; The information judgment submodule is used to determine whether the guarantee information matches the information entered by the enterprise; The matching submodule is used to verify the electronic guarantee if the guarantee information matches the information entered by the enterprise, and to verify the electronic guarantee if the guarantee information does not match the information entered by the enterprise.

[0042] In other embodiments of the present invention, the present invention provides the following technical solution: a computer, including a memory 102, a processor 101, and a computer program stored on the memory 102 and executable on the processor 101, wherein the processor 101 executes the computer program to implement the above-described electronic guarantee verification method.

[0043] Specifically, the processor 101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0044] The memory 102 may include a large-capacity memory for data or instructions. For example, and not limitingly, the memory 102 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk drive, a magneto-optical disk drive, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 102 may include removable or non-removable (or fixed) media. Where appropriate, the memory 102 may be internal or external to a data processing device. In a particular embodiment, the memory 102 is non-volatile memory. In a particular embodiment, the memory 102 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable read-only memory (PROM), an erasable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), an electrically alterable read-only memory (EAROM), or flash memory, or a combination of two or more of these. Where appropriate, the RAM can be Static Random-Access Memory (SRAM) or Dynamic Random-Access Memory (DRAM). DRAM can be Fast Page Mode Dynamic Random Access Memory (FPMDRAM), Extended Data Out Dynamic Random Access Memory (EDODRAM), Synchronous Dynamic Random-Access Memory (SDRAM), etc.

[0045] The memory 102 can be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor 101.

[0046] The processor 101 implements the above-mentioned electronic guarantee verification method by reading and executing computer program instructions stored in the memory 102.

[0047] In some embodiments, the computer may further include a communication interface 103 and a bus 100. For example, Figure 8 As shown, the processor 101, memory 102, and communication interface 103 are connected through bus 100 and complete communication with each other.

[0048] The communication interface 103 is used to enable communication between the various modules, devices, units, and / or equipment in the embodiments of this application. The communication interface 103 can also enable data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.

[0049] Bus 100 includes hardware, software, or both, that couples components of a computer device together. Bus 100 includes, but is not limited to, at least one of the following: data bus, address bus, control bus, expansion bus, and local bus. For example, and not as a limitation, bus 100 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 100 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0050] The computer can use the electronic guarantee verification system to execute the electronic guarantee verification method of this application, thereby realizing the verification of electronic guarantees.

[0051] In some further embodiments of the present invention, in conjunction with the above-described electronic guarantee verification method, the present invention provides the following technical solution: a readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the above-described electronic guarantee verification method.

[0052] Those skilled in the art will understand that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.

[0053] More specific examples of readable media (a non-exhaustive list) include: electrical connections (electronic devices) with one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.

[0054] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0055] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0056] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. An electronic letter of guarantee verification method, characterized in that, The method includes: The electronic guarantee to be verified is encrypted to obtain the encrypted information of the electronic guarantee to be verified. Obtain the characteristic information of the electronic guarantee to be verified, the characteristic information including at least the guarantee business number, project information, signatory information and content information of the electronic guarantee to be verified; A verification QR code is generated based on the encrypted information and the feature information; An encryption key is determined using a preset encryption algorithm, and the verification QR code is encrypted based on the encryption key to obtain an encrypted QR code; The encrypted QR code is decrypted and identified based on the encryption key to obtain the verification result of the electronic guarantee to be verified. The step of encrypting the electronic guarantee to be verified to obtain the encrypted information of the electronic guarantee includes: Identify the document content and keyword information of the electronic guarantee to be verified; The file content information and the keyword information are encrypted using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; The encrypted content information and the encrypted keyword information are integrated to obtain the encrypted information of the electronic guarantee to be verified.

2. The electronic letter of credit validation method of claim 1, wherein, The step of obtaining the feature information of the genuine electronic guarantee to be verified includes: Obtain the electronic guarantee issuance request issued by the first requester, and generate the guarantee business number and project information of the electronic guarantee to be verified based on the electronic guarantee issuance request; The signatory identity of the electronic guarantee to be verified is identified in order to obtain the signatory information of the electronic guarantee to be verified. The contents of the electronic guarantee to be verified are identified using OCR technology to obtain the content information of the electronic guarantee to be verified.

3. The electronic letter of credit validation method of claim 1, wherein, The step of generating a verification QR code based on the encrypted information and the feature information includes: The system uses Spring Cloud to generate QR codes and utilizes ZXing and a multi-format 1D / 2D barcode image processing library written in Java. Based on the encrypted information and the feature information, a recognition QR code is generated. The recognition QR code is then processed using the QR code processing library zbar to generate a verification QR code with a unique identifier.

4. The method for verifying electronic guarantees according to claim 1, characterized in that, The steps of determining an encryption key using a preset encryption algorithm and encrypting the verification QR code based on the encryption key to obtain an encrypted QR code include: Randomly generate three distinct random numbers. , , Calculate the dot product of three random numbers. and the corresponding Euler totient function : ; ; In the formula, Let be a random positive number, and ; Randomly select an integer and make and ,in, The greatest common divisor; like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ,like ,but , And solve for the corresponding encryption number. ; Based on the encrypted number Determine the encryption key and based on the encryption key For the verification QR code Encryption is performed to obtain an encrypted QR code. : ; ; In the formula, Represents the modulus.

5. The method for verifying electronic guarantees according to claim 1, characterized in that, The steps of decrypting and recognizing the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee to be verified include: Based on the encryption key The encrypted QR code Decrypt to obtain the verification QR code. : ; Scan and recognize the verification QR code In order to obtain the guarantee information of the electronic guarantee to be verified; Determine whether the guarantee information matches the information entered by the company; If the guarantee information matches the information entered by the company, the electronic guarantee to be verified will pass verification; if the guarantee information does not match the information entered by the company, the electronic guarantee to be verified will fail verification.

6. The method for verifying electronic guarantees according to claim 1, characterized in that, Before the step of decrypting and recognizing the encrypted QR code based on the encryption key to obtain the verification result of the electronic guarantee to be verified, the method further includes: Receive a verification request from the second requester, obtain the identity information of the second requester based on the verification request, and determine whether the identity information corresponds to the feature information; If the identity information corresponds to the feature information, then the step of decrypting the encrypted QR code based on the encryption key and recognizing the encrypted QR code is performed to obtain the verification result of the electronic guarantee to be verified. If the identity information does not correspond to the feature information, then the verification request is terminated.

7. An electronic guarantee verification system, characterized in that, The system includes: The first encryption module is used to encrypt the data of the electronic guarantee to be verified in order to obtain the encrypted information of the electronic guarantee to be verified. The acquisition module is used to acquire the feature information of the electronic guarantee to be verified, and the feature information includes at least the guarantee business number, project information, signatory information and content information of the electronic guarantee to be verified; The QR code generation module is used to generate a verification QR code based on the encrypted information and the feature information. The second encryption module uses a preset encryption algorithm to determine the encryption key, and encrypts the verification QR code based on the encryption key to obtain an encrypted QR code. The verification result generation module is used to decrypt the encrypted QR code based on the encryption key and identify the encrypted QR code to obtain the verification result of the electronic guarantee to be verified. The first encryption module includes: The identification submodule is used to identify the document content and keyword information of the electronic guarantee to be verified; The encryption submodule is used to encrypt the file content information and the keyword information using the national cryptographic algorithm to obtain encrypted content information and encrypted keyword information; The integration submodule is used to integrate the encrypted content information with the encrypted keyword information to obtain the encrypted information of the electronic guarantee to be verified.

8. The electronic guarantee verification system according to claim 7, characterized in that, The system also includes: The receiving module is used to receive a verification request sent by the second requester, obtain the identity information of the second requester based on the verification request, and determine whether the identity information corresponds to the feature information. The termination module is used to control the verification result generation module to perform the step of decrypting the encrypted QR code based on the encryption key and recognizing the encrypted QR code to obtain the verification result of the electronic guarantee to be verified if the identity information does not correspond to the feature information. If the identity information does not correspond to the feature information, the verification request is terminated.

9. A computer 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, it implements the electronic guarantee verification method as described in any one of claims 1 to 6.

10. A readable storage medium, characterized in that, The readable storage medium stores a computer program that, when executed by a processor, implements the electronic guarantee verification method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Guarantee letter generation method and system, electronic equipment and computer readable storage medium

    CN112669129A

  • Electronic warrant verification method and device

    CN113515781A