A kind of offline payment method and system based on TOTP algorithm
An offline payment and algorithm technology, applied in the computer field, can solve the problems of unable to complete scanning code payment, unable to obtain payment QR code in real time, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0099] According to an embodiment of the present invention, a TOTP algorithm-based offline payment method is provided, wherein the client and the first server pre-agreed on a shared key, such as figure 1 shown, including:
[0100] Step 101: The client generates a dynamic verification code every preset time interval according to its own payment key, the unique device identifier of its own device, and the first current time as the current dynamic verification code. According to the current dynamic verification code, its own The stored user ID and shared key generate an offline payment code, and send the offline payment code to the first server through the merchant;
[0101] Step 102: The first server derives the user ID according to the offline payment code and the shared key, and obtains the corresponding payment key and unique device ID according to the derived user ID;
[0102] Step 103: The first server verifies whether the received offline payment code is correct according...
Embodiment 2
[0141] According to an embodiment of the present invention, an offline payment system based on TOTP algorithm is provided, such as Figure 4 shown, including:
[0142] The client 200 and the first server 300; and the client 200 and the first server 300 pre-agreed on a shared key;
[0143] Wherein, the client 200 includes:
[0144] The first generation module 201 is used to generate a dynamic verification code according to the payment key stored in the client 200, the unique device identifier of the device and the first current time at a preset time interval and use it as the current dynamic verification code;
[0145] The second generation module 202 is used to generate the offline payment code according to the current dynamic verification code generated by the first generation module 201, the user identification and the shared key stored in the client 200;
[0146] The first sending module 203 is used to send the offline payment code generated by the second generating modul...
Embodiment approach
[0155] According to an embodiment of the present invention, the system further includes: a second server and a third server;
[0156] Correspondingly, the client 200 further includes: a third generating module and a first saving module;
[0157] The first receiving module 204 is also used to receive the login information submitted by the user before the first generating module 201 generates the current dynamic verification code;
[0158] A third generating module, configured to generate a payment key acquisition request according to the login information received by the first receiving module 204;
[0159] The first sending module 203 is further configured to send the payment key acquisition request generated by the third generating module to the second server;
[0160] The first receiving module 204 is also configured to receive the payment key ciphertext and user identification ciphertext returned by the second server;
[0161] The first saving module is used to save the pay...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com