IP Library Granted Patent US 10,755,064
Granted Patent B2
US 10,755,064 · App. 16/716,838 · Granted Aug 25, 2020

Code scanning security check method and apparatus

Inventor: Jian Ren (Hangzhou, CN)
Assignee: Alibaba Group Holding Limited
G06K7/1417G06K19/06037G06Q10/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,755,064
App. No.
16/716,838
Granted
Aug 25, 2020
Kind
B2
Abstract

A transaction code identification method comprises scanning a transaction code, the transaction code comprising: a two-dimensional code and a check code; parsing the two-dimensional code to obtain a two-dimensional code content contained in the two-dimensional code; obtaining the check code; and sending the two-dimensional code content and the check code to a server to cause the server to verify the transaction code based on the two-dimensional code content and the check code.

Claims (56)

1. A method, comprising:

receiving a request from a client to generate a transaction code;

in response to receiving the request:

generating a two-dimensional code;

obtaining a check code based at least on the two-dimensional code by applying a mapping algorithm to the two-dimensional code; and

combining the two-dimensional code and the check code to form the transaction code; and

sending the transaction code to the client.

2. The method of claim 1 , where applying the mapping algorithm to the two-dimensional code comprises:

combining a salt with the two-dimensional code; and

applying a hash function to the combined salt and two-dimensional code to generate the check code.

3. The method of claim 1 , wherein the transaction code comprises a first area and a second area, the first area comprising the two-dimensional code, and the second area comprising the check code.

4. The method of claim 3 , wherein:

the second area is surrounded by the first area; or

the second area is located at a periphery of the first area.

5. The method of claim 1 , wherein the transaction code is a payment receipt code, wherein the client is a payment software client associated with a payee.

6. The method of claim 5 , wherein two-dimensional code comprises a unique identifier of the payee.

7. The method of claim 5 , wherein the payment receipt code is configured to be scanned by a second client associated with a payer making payment to the payee, the method further comprising: receiving, from the second client, a payment request comprising the two-dimensional code and the check code.

8. The method of claim 7 , further comprising: verifying the payment request, wherein verifying the payment request comprises:

applying the mapping algorithm to the two-dimensional code received from the second client to generate a mapped check code; and

comparing the mapped check code to the check code of the received payment request to determine if there is a match.

9. The method of claim 8 , wherein if the mapped check code and the check code of the received payment request match, the method further comprising:

obtaining an account of the payee based on the two-dimensional code; and

executing a payment front an account of the payer to the account of the payee.

10. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method comprising:

receiving a request from a client to generate a transaction code;

in response to receiving the request:

generating a two-dimensional code;

obtaining a check code based at least on the two-dimensional code by applying a mapping algorithm to the two-dimensional code; and

combining the two-dimensional code and the check code to form the transaction code; and

sending the transaction code to the client.

11. The non-transitory computer-readable storage medium of claim 10 , where applying the mapping algorithm to the two-dimensional code comprises:

combining a salt with the two-dimensional code; and

applying a hash function to the combined salt and two-dimensional code to generate the check code.

12. The non-transitory computer-readable storage medium of claim 10 , wherein the transaction code comprises a first area and a second area, the first area comprising the two-dimensional code, and the second area comprising the check code, wherein:

the second area is surrounded by the first area; or

the second area is located at a periphery of the first area.

13. The non-transitory computer-readable storage medium of claim 10 , wherein the transaction code is a payment receipt code, wherein the client is a payment software client associated with a payee.

14. The non-transitory computer-readable storage medium of claim 13 , wherein the two-dimensional code comprises a unique identifier of the payee.

15. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method comprising:

scanning a payment receipt code, the payment receipt code comprising: a two-dimensional code and a check code, wherein the check code is obtainable from the two-dimensional code by applying a mapping algorithm using the two-dimensional code; and

sending a payment request to a server, the payment request comprising the two-dimensional code and the check code, wherein the server is configured to permit execution of the payment request in response to determining that the check code of the payment request is the same as a mapped check code obtained from applying the mapping algorithm using the two-dimensional code.

16. The non-transitory computer-readable storage medium of claim 15 , wherein applying the mapping algorithm using the two-dimensional code comprises:

combining a salt with the two-dimensional code; and

applying a hash function to the combined salt and two-dimensional code to obtain the mapped check code.

17. The non-transitory computer-readable storage medium of claim 15 , the method further comprising: prior to sending the payment request, obtaining the two-dimensional code and the check code from the payment receipt code.

18. The non-transitory computer-readable storage medium of claim 15 , wherein:

the transaction code comprises a first area and a second area, the first area comprising the two-dimensional code, and the second area comprising the check code.

19. The non-transitory computer-readable storage medium of claim 18 , wherein:

the second area is surrounded by the first area; or

the second area is located at a periphery of the first area.

20. A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform a method comprising:

receiving a payment request from a client, the payment request comprising a two-dimensional code and a check code contained in a payment receipt code;

applying a mapping algorithm to the two-dimensional code to generate a mapped check code;

comparing the mapped check code to the check code of the payment request to determine if they match;

if the mapped check code and the check code of the payment request match, permitting execution of the payment request; and

if the mapped check code and the check code of the payment request do not match, denying execution of the payment request.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 17, 2019
From: REN, JIAN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 051304/0226 →