A method and system for implementing paperless receipt based on webpage

By encrypting the document to be verified with the initial key and using iterative chaos algorithm for matrix and scrambling encryption, the problem of illegally obtained Web page seals is solved, the security of transmission and system is improved, and the consumption of computing power is reduced.

CN113222592BActive Publication Date: 2024-10-11SHANGHAI HIKUQIANG SUPPLY CHAIN INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110196240.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-22
Publication Date
2024-10-11
Estimated Expiration
2041-02-22

AI Technical Summary

Technical Problem

In the existing technology, the display method of web page seals has the risk of being illegally obtained and used, and the security of the encryption and decryption model is insufficient, making it difficult to effectively prevent sniffing attacks and ciphertext attacks.

Method used

The method of using the initial key to encrypt documents to be verified is used to isolate the ciphertext submission of the payment end and the payee through the server, and the iterative chaos algorithm is used to generate a highly unique initial key, which is matrixed and scrambled to encrypt, reducing computing power consumption and improving encryption. efficiency and ensure transmission security.

Benefits of technology

It improves the security of transmission, reduces the risk of sniffing attacks and ciphertext attacks, enhances the protection of ciphertext, reduces computing power consumption, and improves the security and expansion capabilities of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113222592B_ABST
    Figure CN113222592B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for realizing paperless receipt based on webpage, which comprises: a server receives first page document authentication request information submitted by a payment end and second page document generation request information submitted by a payment end; the second page document generation request information submitted by the payment end contains a document to be verified encrypted by an initial key; the document to be verified contains payment seal data information, collection seal data information and document information; the server verifies the second page document generation request and the first page document authentication request submitted by the payment end; the first page document authentication request contains payment seal data and document information encrypted by an initial key. The present invention has the advantages of good convergence, low error rate, good security, high computing load efficiency and intelligence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a transmission encryption method for electronic vouchers, and in particular to a method and system for realizing paperless receipts based on web pages. Background Art

[0002] With the development of e-government and e-commerce, more and more information is interacted through web pages, such as online contracts and online approvals. These web pages are stamped with electronic seals to reflect authenticity and validity. At present, the display of web page seals usually adopts the method of embedding stamp images in web pages. When users open a web page with a browser, the stamp image is embedded in the web page. When clicking on the stamp image, the stamp image can be saved. However, there is a problem that the saved stamp image may be illegally used. Therefore, how to prevent the seal of the web page from being illegally obtained and used has become an urgent problem to be solved.

[0003] Prior art, such as a Chinese invention patent with announcement number CN108038388B, discloses a method for implementing a Web page seal, a client, and a server. The implementation method includes: drawing an electronic seal in an embedded window of a Web page according to the data of the electronic seal, signing the Web page, generating a digital signature, and submitting the electronic seal data and the digital signature to the server, wherein the server is used to provide a Web page, and realizes drawing an electronic seal in an embedded window of a Web page using the data of the electronic seal. The drawn electronic seal is only a display result of the electronic seal and does not contain the data of the electronic seal or a link to the data of the electronic seal. Therefore, the user cannot obtain the data of the electronic seal from the embedded window, thereby effectively preventing the seal of the Web page from being illegally obtained and used. Summary of the invention

[0004] The purpose of the present invention is to provide a method for realizing paperless receipt based on webpage in view of the prior art, which comprises: a server receives the first page document authentication request information submitted by the payment end and the second page document generation request information of the payment end; the second page document generation request information of the payment end contains the document to be verified encrypted by the initial key; the document to be verified contains the payment seal data information, the collection seal data information and the document information; the server verifies the second page document generation request of the payment end and the first page document authentication request; the first page document authentication request contains the payment seal data and the document information encrypted by the initial key; the server verifies the first page document authentication request information and the second page document generation request information of the payment end, and then draws the original electronic receipt data information and the copy of the electronic receipt data information with the authentication data seal; the server sends the copy of the electronic receipt information to the payment end, and sends the original electronic receipt data information to the payment end. By isolating the ciphertext delivery of the payment end and the payment end by the server, sniffing attacks can be reduced. The initial key of the payment terminal is independently distributed to the payment terminal and the server for verification. During verification, the server uses the initial key to decrypt the first page document authentication request and the second page document generation request respectively, which is highly independent. If the initial key does not match, the verification comparison will fail. The combination of the two improves the security of transmission. On the other hand, the encryption and decryption model further improves the security against ciphertext attacks.

[0005] The payee sends a first page access request to the payee, and then the payee transmits the first page containing the initial key to the payee; the payee sends the initial key corresponding to the first page to the server. The data information associated with the correspondence between the first page and the initial key includes the time information of the first page, the identity information of the payee, and the physical address information. By transforming the above associated data information into a row vector Q k Providing seed information is used to assist the payment terminal in generating an initial key. For example, the row vector Q k It can be obtained by converting the random number related to the time information of the first page. In steps S20 and S21, the initial key is sent to the payment terminal and the server respectively. Since the initial key is a randomly generated row vector Q k And the row vector has a corresponding relationship with the first page, so it has uniqueness in a large time and space scale. The methods of generating time-related random numbers in the prior art are not described in detail in this article.

[0006] After receiving the information of the first page containing the initial key, the payment end uses the initial key to encrypt the payment seal of the payment end, generates initial payment seal data, and compiles the initial payment seal data into the first document generation request. The use and transmission application of the initial key in this technical solution occupies less computing power than the existing technical steps, which can reduce computing power consumption, give the remaining computing power to chaotic computing, and improve the efficiency of encryption computing power utilization.

[0007] The first document generation request contains the payment stamp data and document information encrypted by the initial key. Encryption is used in the first document generation request, which occupies a certain amount of computing power on the payment end. At the same time, the data of the second page document generation request comes from the S50 initial payment stamp data superimposed on the collection stamp data, which occupies the computing power of the collection end, and the S70 verification step occupies the computing power of the server end, which is relatively balanced. When the return order system is highly loaded, the computing power pressure of the server is increased, which is relatively easy to manage and expand.

[0008] The method of encrypting the information to be encrypted using the initial key is:

[0009] Transform the information to be encrypted into a matrix of size M×N:

[0010]

[0011] P M×N Convert to a row vector and represent each subvector as:

[0012]

[0013] Generate r in an iterative chaotic manner k =mod((abs(x' k )-floor(abs(x' k )))×10 14 ,MN / k)+1;

[0014] Iterate the chaos until MN / k completely different r are generated k , according to r k Pair vector P k Perform row scrambling, that is

[0015]

[0016] The matrix after row scrambling is represented as P r .

[0017] Generate c in an iterative chaotic manner k =mod((abs(y' k )-floor(abs(y' k )))×10 12 ,MN / k)+1;

[0018] Iterate the chaos until MN / k completely different c are generated k , according to c k Pair Vector Perform column shuffle, that is

[0019] The matrix after column scrambling is represented as Prc ;

[0020] Among them, the chaos mapping equation is:

[0021] The initial key is a vector that can be converted to a row vector Q k ={q1,q2,…,q k} data information.

[0022] Will Convert to a row vector and then calculate:

[0023]

[0024] Then, E r Convert columns into row vectors and encrypt to get ciphertext:

[0025]

[0026] After all plaintexts are encrypted, the encryption process ends. The decryption process is known as the initial key Q k The problem of inverse operation of the encryption method of vector and ciphertext is not discussed in detail.

[0027] The information to be encrypted includes document information and / or payment seal data and / or receipt seal data.

[0028] The payment seal data encrypted with the initial key contained in the first document generation request is stored in the form of a redundant information field at the end of the document information data.

[0029] The payment seal data information and the collection seal data information contained in the document to be verified are stored together as a redundant information field at the end of the document information data.

[0030] Since the present invention adopts a server to receive the first page document authentication request information submitted by the payment end and the second page document generation request information of the payment end; the second page document generation request information of the payment end contains the document to be verified encrypted by the initial key; the document to be verified contains payment seal data information, collection seal data information and document information; the server verifies the second page document generation request of the payment end and the first page document authentication request; the first page document authentication request contains the payment seal data and document information encrypted by the initial key; the server will draw the original electronic receipt data information with the authentication data seal and the copy of the electronic receipt data information after verifying the first page document authentication request information and the second page document generation request information of the payment end; the server sends the copy of the electronic receipt information to the payment end, and sends the original electronic receipt data information to the payment end. Therefore, the present invention has the advantages of good convergence, low error rate, good security, high computing power load efficiency and intelligence. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 This is a schematic diagram of the system architecture implementation structure of an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of the timing of the method according to the embodiment of the present invention;

[0033] Figure 3 This is a comparison diagram of chaotic projection effects of the algorithm of the embodiment of the present invention;

[0034] Figure 4 This is a schematic diagram of the results of matrix scrambling and encryption according to an embodiment of the present invention;

[0035] Figure 5 Schematic diagram of correlation coefficient comparison in embodiments of the present invention. DETAILED DESCRIPTION

[0036] The present invention is further described in detail below in conjunction with the attached examples.

[0037] Embodiment 1:

[0038] Reference Figures 1 to 5 The present embodiment provides a method for implementing a paperless receipt based on a web page, which is characterized by comprising:

[0039] The server receives the first page document authentication request information submitted by the payment end and the second page document generation request information submitted by the payment end; the second page document generation request information submitted by the payment end contains the document to be verified encrypted by the initial key; the document to be verified contains the payment seal data information, the collection seal data information and the document information; the server verifies the second page document generation request and the first page document authentication request submitted by the payment end; the first page document authentication request contains the payment seal data and the document information encrypted by the initial key; after verifying the first page document authentication request information and the second page document generation request information submitted by the payment end, the server draws the original electronic receipt data information and the copy of the electronic receipt data information with the authentication data seal; the server sends the copy of the electronic receipt information to the payment end, and sends the original electronic receipt data information to the payment end. By isolating the ciphertext submission between the payment end and the payment end by the server, sniffing attacks can be reduced. The initial key of the payment terminal is independently distributed to the payment terminal and the server for verification. During verification, the server uses the initial key to decrypt the first page document authentication request and the second page document generation request respectively, which is highly independent. If the initial key does not match, the verification comparison will fail. The combination of the two improves the security of transmission. On the other hand, the encryption and decryption model further improves the security against ciphertext attacks.

[0040] The payee sends a first page access request to the payee, and then the payee transmits the first page containing the initial key to the payee; the payee sends the initial key corresponding to the first page to the server. The data information associated with the correspondence between the first page and the initial key includes the time information of the first page, the identity information of the payee, and the physical address information. By transforming the above associated data information into a row vector Q k Providing seed information is used to assist the payment terminal in generating an initial key. For example, the row vector Q k It can be obtained by converting the random number related to the time information of the first page. In steps S20 and S21, the initial key is sent to the payment terminal and the server respectively. Since the initial key is a randomly generated row vector Q k And the row vector has a corresponding relationship with the first page, so it has uniqueness in a large time and space scale. The methods of generating time-related random numbers in the prior art are not described in detail in this article.

[0041] After receiving the information of the first page containing the initial key, the payment end uses the initial key to encrypt the payment seal of the payment end, generates initial payment seal data, and compiles the initial payment seal data into the first document generation request. The use and transmission application of the initial key in this technical solution occupies less computing power than the existing technical steps, which can reduce computing power consumption, give the remaining computing power to chaotic computing, and improve the efficiency of encryption computing power utilization.

[0042] The first document generation request contains the payment stamp data and document information encrypted by the initial key. Encryption is used in the first document generation request, which occupies a certain amount of computing power on the payment end. At the same time, the data of the second page document generation request comes from the S50 initial payment stamp data superimposed on the collection stamp data, which occupies the computing power of the collection end, and the S70 verification step occupies the computing power of the server end, which is relatively balanced. When the return order system is highly loaded, the computing power pressure of the server is increased, which is relatively easy to manage and expand.

[0043] The method of encrypting the information to be encrypted using the initial key is:

[0044] Transform the information to be encrypted into a matrix of size M×N:

[0045]

[0046] P M×N Convert to a row vector and represent each subvector as:

[0047]

[0048] Generate r in an iterative chaotic manner k =mod((abs(x' k )-floor(abs(x' k)))×10 12 ,MN / k)+1;

[0049] Iterate the chaos until MN / k completely different r are generated k , according to r k Pair vector P k Perform row scrambling, that is

[0050]

[0051] The matrix after row scrambling is represented as P r .

[0052] Generate c in an iterative chaotic manner k =mod((abs(y' k )-floor(abs(y' k )))×10 14 ,MN / k)+1;

[0053] Iterate the chaos until MN / k completely different c are generated k , according to c k Pair Vector Perform column shuffle, that is

[0054] The matrix after column scrambling is represented as P rc ;

[0055] Among them, the chaos mapping equation is:

[0056] The initial key is a vector that can be converted to a row vector Q k ={q1,q2,…,q k} data information. Figure 3 The comparison of the projection curve obtained by substituting the chaos mapping equation of the present embodiment into the seed of the present embodiment with the existing chaos algorithm is shown. It can be seen that the projection curve is more dispersed than the existing technology and has relatively higher security. The first projection seed point can be obtained by customizing the time information, payment terminal identity information, and physical address information of the first page. The selection or interception of information is a common technology.

[0057] Will Convert to a row vector and then calculate:

[0058]

[0059] Then, E r Convert columns into row vectors and encrypt to get ciphertext:

[0060]

[0061] After all plaintexts are encrypted, the encryption process ends. The decryption process is known as the initial key Q k The problem of inverse operation of the encryption method of vector and ciphertext is not discussed in detail.

[0062] The information to be encrypted includes document information and / or payment seal data and / or receipt seal data.

[0063] The payment seal data encrypted with the initial key contained in the first document generation request is stored in the form of a redundant information field at the end of the document information data. Figure 4 The results of the algorithm scrambling and encrypting the matrix image information are shown. It is safer and more convenient to encode the redundant information field after encryption, and the decryption and recognition is also faster. Figure 5 Comparison of the correlation coefficients of the encrypted matrices of the prior art and the present embodiment. The smaller the correlation coefficient, the higher the security of the present embodiment with the smallest correlation coefficient.

[0064] The payment seal data information and the collection seal data information contained in the document to be verified are stored together as a redundant information field at the end of the document information data.

[0065] Embodiment 2:

[0066] This embodiment further describes the technical solution based on the embodiment 1.

[0067] The entire electronic receipt process is as follows:

[0068] S10, a first page access request is sent from the payee to the payee;

[0069] S11, generating an initial key, the payment terminal extracts the data information of the first page, such as the time information of the first page or the identity information of the payment terminal or the physical address information, or a combination thereof as seed information, and then generates a row vector Q k , that is, generate the initial key;

[0070] S20, transmitting the first page containing the initial key, the payment receiving end transmits the first page information containing the initial key to the payment end;

[0071] S21, the initial key for verification, the payment terminal transmits the first page information containing the initial key to the server;

[0072] S30, using the initial key to generate initial payment seal data, and the payment end uses the initial key to encrypt the payment seal of the payment end;

[0073] S40, issuing a first page document generation request, including the encrypted payment seal data information as a redundant information field at the end of the document information data into the first document generation request, and sending it to the payment terminal;

[0074] S41, sending a first page document authentication request, sending the data information in the first document generation request as an authentication request to the server;

[0075] S50, the initial payment seal data is superimposed with the payment seal data. After the payment end receives the first page document generation request S40 sent by the payment end, the payment seal data is superimposed on the initial payment seal data, and is also stored in the form of a redundant information field at the end of the document information data;

[0076] S60, sending a second page document generation request, and sending the data obtained after processing in S50 to the server;

[0077] S70, verification, the server decrypts the data sent from S41 and S60 with the initial key of S21, and compares the decrypted payment seal data information and receipt seal data information of the payment end and the payment end, and the document information; if they are consistent, proceed to step S71, otherwise send a verification failure message to the payment end and send an authentication failure message to the payment end;

[0078] S71, draw an electronic receipt with an authentication data seal, draw the payment seal data information and the collection seal data information onto the document information, and obtain the electronic receipt data information;

[0079] S80, a copy of the electronic receipt data information is sent to the payment recipient.

[0080] S81, the original copy of the electronic receipt data information is sent to the payment recipient.

[0081] Although the present invention has been described in conjunction with preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can implement various changes, substitutions of equivalents and modifications to the subject matter listed here without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be based on the scope defined by the claims.

Claims

1. A method for implementing a paperless receipt based on a web page, characterized in that include, The server receives the first page document authentication request information submitted by the payee and the second page document generation request information submitted by the payee; The second page document generation request information of the payment terminal contains the document to be verified encrypted by the initial key; the document to be verified contains payment seal data information, collection seal data information and document information; The server verifies the second page receipt generation request and the first page receipt authentication request of the payment terminal; the first page receipt authentication request contains the payment seal data and receipt information encrypted by the initial key; After verifying the first page document authentication request information and the second page document generation request information of the payment terminal, the server draws the original electronic receipt data information and the copy of the electronic receipt data information with the authentication data seal; the server sends the copy of the electronic receipt information to the payment terminal, and sends the original electronic receipt data information to the payment terminal; The method of encrypting the information to be encrypted using the initial key is: Matrix the information to be encrypted into a size The matrix: Will Convert to a row vector and represent each subvector as: Generated in an iterative chaotic manner ; Iterate the chaos until MN / k completely different ,according to Pair Vector Perform scrambling, that is: ; The matrix after row scrambling is expressed as ; Generated in an iterative chaotic manner ; Iterate the chaos until MN / k completely different ,according to Pair Vector Shuffle the columns. ; The matrix after column scrambling is expressed as ; The chaotic mapping equation used for column scrambling is: ; Will Convert to a row vector and then calculate: Then, Convert columns into row vectors and encrypt to get ciphertext: The initial key is a vector that can be converted to a row vector data information; After all plaintext is encrypted, the encryption process ends.

2. The method for implementing a paperless receipt based on a webpage according to claim 1, characterized in that: The payment end sends a first page access request to the payment end, and then the payment end transmits the first page containing the initial key to the payment end; the payment end sends the initial key corresponding to the first page to the server, and the data information associated with the correspondence between the first page and the initial key includes the time information of the first page, the payment end identity information, and the physical address information.

3. The method for implementing a paperless receipt based on a webpage according to claim 2, characterized in that: After receiving the information of the first page containing the initial key, the payment end uses the initial key to encrypt the payment seal of the payment end, generates initial payment seal data, and compiles the initial payment seal data into the first document generation request.

4. The method for implementing a paperless receipt based on a webpage according to claim 3, characterized in that: The first receipt generation request contains payment seal data and receipt information encrypted by the initial key.

5. A computer program product implementing the method of claim 1.

6. A storage medium storing the computer program product according to claim 5.

7. A system having installed therein the computer program product according to claim 5.