Data request message verification method, device, equipment and storage medium
By generating and encrypting the mapping relationship between terminal device identification and key data information, and using the AES algorithm to verify data request messages, the data security and consistency issues in SMS verification are solved, and the security and integrity of data transmission are achieved.
Patent Information
- Application Number
- CN202211110453.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-09-13
AI Technical Summary
Existing technologies cannot effectively guarantee data security during SMS verification, making it difficult to ensure the consistency of data content and user-submitted content.
By receiving the terminal device identification and key data information, it generates sequence data information and establishes a mapping relationship. It receives and encrypts the data request message, uses the AES symmetric encryption algorithm to ensure the security of data transmission, and performs decryption and comparison verification to confirm data consistency.
It ensures the security of data during the SMS verification process, prevents data tampering, and ensures the consistency of data content and user-submitted content.
Smart Images

Figure CN115473736B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data request message verification method, apparatus, device and storage medium. Background Art
[0002] At present, a rural revitalization platform, a village affairs system, a three-asset supervision system, and a property rights trading system have been built around rural revitalization; therefore, each system will use SMS verification as an important means of identity security verification during use.
[0003] Therefore, there is an urgent need for a data request message verification method that can fully ensure the security of data during the SMS verification process, thereby preventing data tampering and ultimately ensuring the consistency of the SMS data content and the user-submitted content. Summary of the Invention
[0004] The present application provides a data request message verification method, device, equipment and storage medium, which can fully ensure the security of data during the SMS verification process, thereby preventing data tampering and ultimately ensuring the consistency of the SMS data content and the user-submitted content.
[0005] In a first aspect, the present application provides a data request message verification method, the method comprising:
[0006] Receiving a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device;
[0007] generating sequence data information according to the first terminal device identifier and the key data information, and establishing a mapping relationship between the sequence data information and the key data information to obtain stored data information;
[0008] receiving a second data request message; wherein the second data request message is sent by the second terminal device;
[0009] The second data request message is verified according to the second data request message and the stored data information.
[0010] In one example, after obtaining the stored data information, the method further includes:
[0011] Sending the key data information to the first terminal device according to the first terminal device identifier;
[0012] After encrypting the key data information, the sequence data information and the timestamp, an encrypted string is obtained, and the encrypted string is sent to the second terminal device.
[0013] In one example, the second data request includes: an encrypted string, a verification message, and a data request parameter; wherein the verification message is obtained from the first terminal device.
[0014] In one example, the verifying the second data request message according to the second data request message and the stored data information includes:
[0015] Decrypting the encrypted character string in the second data request to obtain decrypted data information;
[0016] Determining a verification result based on the decrypted data information and the stored data information;
[0017] The second data request message is verified according to the verification result.
[0018] In one example, determining a verification result based on the decrypted data information and the stored data information includes:
[0019] Comparing the decrypted data information with the stored data information to obtain a comparison result;
[0020] If the comparison result is consistent, the decrypted data information is compared with the data request parameter to obtain a verification result.
[0021] In one example, verifying the second data request message according to the verification result includes:
[0022] If the verification result is consistent, the verification message and timestamp are verified to obtain a verification result.
[0023] In one example, it includes: if the verification result is passed, executing the second data request message.
[0024] In one example, the method further includes:
[0025] The stored data information is stored in a preset database.
[0026] In a second aspect, the present application provides a data request message verification device, the device comprising:
[0027] a first receiving unit, configured to receive a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device;
[0028] a generating unit, configured to generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain stored data information;
[0029] A second receiving unit, configured to receive a second data request message; wherein the second data request message is sent by the second terminal device;
[0030] A verification unit is used to verify the second data request message according to the second data request message and the stored data information.
[0031] In one example, the apparatus includes:
[0032] a sending unit, configured to send the key data information to the first terminal device according to the first terminal device identifier;
[0033] The encryption processing unit is used to encrypt the key data information, the sequence data information and the timestamp to obtain an encrypted string, and send the encrypted string to the second terminal device.
[0034] In one example, the second data request includes: an encrypted string, a verification message, and a data request parameter; wherein the verification message is obtained from the first terminal device.
[0035] In one example, the verification unit includes:
[0036] a decryption processing module, configured to decrypt the encrypted string in the second data request to obtain decrypted data information;
[0037] a determination module, configured to determine a verification result based on the decrypted data information and the stored data information;
[0038] A verification module is used to verify the second data request message according to the verification result.
[0039] In one example, the determining module includes:
[0040] A comparison submodule, configured to compare the decrypted data information with the stored data information to obtain a comparison result;
[0041] The verification submodule is used to compare the decrypted data information with the data request parameter to obtain a verification result if the comparison result is consistent.
[0042] In one example, the verification module is specifically configured to:
[0043] If the verification result is consistent, the verification message and timestamp are verified to obtain a verification result.
[0044] In one example, the apparatus further comprises:
[0045] An execution unit is configured to execute the second data request message if the verification result is passed.
[0046] In one example, the apparatus further comprises:
[0047] The storage unit is used to store the stored data information in a preset database.
[0048] In a third aspect, the present application provides a terminal device, comprising: a processor, and a memory communicatively connected to the processor;
[0049] The memory stores computer-executable instructions;
[0050] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.
[0051] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0052] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which implements the method described in the first aspect when executed by a processor.
[0053] The present application provides a data request message verification method, apparatus, device and storage medium, which receives a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device; generates sequence data information according to the first terminal device identifier and the key data information, and establishes a mapping relationship between the sequence data information and the key data information to obtain storage data information; receives a second data request message; wherein the second data request message is sent by the second terminal device; verifies the second data request message according to the second data request message and the storage data information. The adoption of this technical solution can fully guarantee the security of data in the SMS verification process, thereby preventing data from being tampered with, and ultimately ensuring the consistency of the SMS data content and the user-submitted content. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0055] Figure 1 This is a flow chart of a data request message verification method provided according to the first embodiment of the present application;
[0056] Figure 2 This is a flow chart of a data request message verification method provided in accordance with the second embodiment of the present application;
[0057] Figure 3 This is a schematic diagram of an interaction process provided according to the second embodiment of the present application;
[0058] Figure 4 This is a structural diagram of a data request message verification device provided according to the third embodiment of the present application;
[0059] Figure 5 This is a structural diagram of a data request message verification device provided according to the fourth embodiment of the present application;
[0060] Figure 6 The figure is a block diagram of a terminal device according to an exemplary embodiment.
[0061] The above drawings illustrate specific embodiments of the present application, which will be described in more detail below. These drawings and the textual description are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments. DETAILED DESCRIPTION
[0062] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0063] The data request message verification method provided in this application is intended to solve the above technical problems in the prior art.
[0064] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0065] Figure 1 1 is a flow chart of a data request message verification method provided in accordance with the first embodiment of the present application. The first embodiment includes the following steps:
[0066] S101. Receive a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device.
[0067] In one example, the first data request message may be a payment order request message. The first terminal device may be a computer, tablet, or mobile phone, and the second terminal device may also be a computer, tablet, or mobile phone. The second terminal device may be the same as or different from the first terminal device. The first terminal device identifier may be a mobile phone number. In this embodiment, the key data information refers to the content in the first data request message. If the first data request message is a payment order request message, the key data information includes the payment order, payment amount, transfer account, etc.
[0068] In this embodiment, the user performs an operation in the second terminal device, and sends the first data request message from the second terminal device to the server.
[0069] S102: Generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain storage data information.
[0070] In this embodiment, the sequence data information is a string of character identifiers, which can be numbers or letters. The first terminal device identifier and the key data information jointly determine the sequence data information. After determining the sequence data information, a one-to-one mapping relationship is established between the sequence data information and the key data information to obtain the stored data information. For example, if the first terminal device identifier is 12345678901 and the key data information is a payment of 0.5 yuan, then the sequence data information 444 is generated based on 12345678901 and 0.5 yuan, and 444 is bound to the key data information 0.5 yuan. The format of the stored data information is 444-0.5 yuan.
[0071] S103. Receive a second data request message; wherein the second data request message is sent by the second terminal device.
[0072] In this embodiment, the second data request message is sent by the second terminal device. The second data request message is initiated by the second terminal device for the second time, and the second data request message and the first data request message are used to request the same content. For example, if the first data request message is a payment order request message, then the second data request message is also a payment order request message.
[0073] S104: Verify the second data request message according to the second data request message and the stored data information.
[0074] In this embodiment, the content in the second data request message is matched with the stored data information to obtain a matching result. If the matching result meets the preset conditions, the second data request message is verified to determine the correctness of the second data request message.
[0075] The present application provides a data request message verification method, which receives a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device; generates sequence data information based on the first terminal device identifier and the key data information, and establishes a mapping relationship between the sequence data information and the key data information to obtain stored data information; receives a second data request message; wherein the second data request message is sent by the second terminal device; and verifies the second data request message based on the second data request message and the stored data information. The adoption of this technical solution can fully guarantee the security of data in the SMS verification process, thereby preventing data tampering, and ultimately ensuring the consistency of the SMS data content and the user-submitted content.
[0076] Figure 2 1 is a flow chart of a data request message verification method provided in accordance with Example 2 of the present application. Example 2 includes the following steps:
[0077] S201. Receive a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device.
[0078] For example, this step may refer to the above-mentioned step S101 and will not be described in detail.
[0079] S202: Generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain stored data information.
[0080] In one example, the method further includes: storing the stored data information in a preset database.
[0081] In this embodiment, after the stored data information is determined, the stored data information is stored in a preset database so that the stored data information can be subsequently called from the preset database.
[0082] S203: Send key data information to the first terminal device according to the first terminal device identifier.
[0083] In this embodiment, after obtaining the first terminal device identification, the key data information is sent to the first terminal device having the first terminal device identification.
[0084] S204: After encrypting the key data information, the sequence data information and the timestamp, an encrypted string is obtained, and the encrypted string is sent to the second terminal device.
[0085] In this embodiment, the encryption algorithm may be the AES symmetric encryption algorithm. The AES symmetric encryption algorithm is a symmetric block encryption technology that uses 128-bit blocks to encrypt data, providing higher encryption strength than the RC4 algorithm used in WEP / TKIPS. The AES symmetric encryption algorithm has separate encryption and decryption tables, supports subkey encryption, supports arbitrary block sizes, has a fast initialization time, and its parallelism allows for efficient utilization of processor resources.
[0086] In this embodiment, the timestamp refers to the time when the key data information is sent to the first terminal device. In this embodiment, the key data information, sequence data information, and timestamp are encrypted to generate an encrypted string. The encrypted string prevents leakage of the aforementioned content and does not modify the key data information, sequence data information, and timestamp during transmission. The encrypted string is sent to the second terminal device, which then processes the encrypted string.
[0087] S205. Receive a second data request message; wherein the second data request message is sent by the second terminal device.
[0088] In one example, the second data request includes: an encrypted string, a verification message, and a data request parameter; wherein the verification message is obtained from the first terminal device.
[0089] In this embodiment, after receiving the key data information, the first terminal device generates a verification message and sends it to the second terminal device. The second terminal device then forms a second data request with the encrypted string, the verification message, and data request parameters, and sends it to the server. The data request parameters are the content in the payment order request message, such as the payment order, payment amount, and transfer account.
[0090] S206: Verify the second data request message according to the second data request message and the stored data information.
[0091] In one example, verifying the second data request message according to the second data request message and the stored data information includes:
[0092] Decrypting the encrypted character string in the second data request to obtain decrypted data information;
[0093] Determine the verification result based on the decrypted data information and the stored data information;
[0094] The second data request message is verified according to the verification result.
[0095] In this embodiment, if the algorithm used in the encryption processing is the AES symmetric encryption algorithm, the algorithm for decrypting the encrypted string can also be the AES symmetric encryption algorithm. The decrypted data information is compared with the stored data information to obtain a verification result. If the verification result is passed, the second data request message is verified. If the verification result is failed, the second data request message is not verified, and a reminder message is sent to the second terminal device.
[0096] In one example, determining a verification result based on the decrypted data information and the stored data information includes:
[0097] Compare the decrypted data information with the stored data information to obtain a comparison result;
[0098] If the comparison result is consistent, the decrypted data information and the data request parameters are compared to obtain the verification result.
[0099] In this embodiment, if the comparison result is consistent, it means that the data information has not been modified during the transmission process, and the consistency of the decrypted data information and the data request parameters in the actual process can be compared to obtain a verification result.
[0100] In one example, verifying the second data request message according to the verification result includes:
[0101] If the verification result is consistent, the verification message and timestamp are verified to obtain the verification result.
[0102] In this embodiment, if the verification result is consistent, the validity of the verification message and the timestamp may be verified. If the verification message and the timestamp are consistent within a preset time, the verification result is passed.
[0103] In one example, if the verification result is passed, the second data request message is executed.
[0104] In this embodiment, for example, if the verification result is passed and the second data request message is a payment order request message, payment is made for the payment order request message.
[0105] To better illustrate this embodiment, please refer to Figure 3 Schematic diagram of the interaction process shown in .
[0106] S301. A second terminal device sends a first data request message to a server, where the first data request message includes a first terminal device identifier and key data information.
[0107] S302. The server generates sequence data information according to the first terminal device identifier and the key data information, and establishes a mapping relationship between the sequence data information and the key data information to obtain storage data information.
[0108] S303. The server sends the key data information to the first terminal device according to the first terminal device identifier.
[0109] S304: The first terminal device generates a verification message.
[0110] S305. The first terminal device sends a verification message to the second terminal device.
[0111] S306: The server encrypts the key data information, the sequence data information, and the timestamp to obtain an encrypted string, and sends the encrypted string to the second terminal device.
[0112] S307. The second terminal device sends a second data request message to the server. The second data request includes: an encrypted string, a verification message, and data request parameters.
[0113] S308: The server verifies the second data request message according to the second data request message and the stored data information.
[0114] This application provides a data request message verification method that receives a first data request message, generates sequence data information based on a first terminal device identifier and key data information, establishes a mapping relationship between the sequence data information and the key data information, obtains stored data information, sends the key data information to the first terminal device based on the first terminal device identifier, encrypts the key data information, sequence data information, and timestamp to obtain an encrypted string, sends the encrypted string to a second terminal device, receives a second data request message, and verifies the second data request message based on the second data request message and the stored data information. This technical solution can prevent both the terminal device side and the database backend from modifying data information.
[0115] Figure 4 : is a structural diagram of a data request message verification device provided according to the third embodiment of the present application. Specifically, the device 40 of the third embodiment includes:
[0116] The first receiving unit 401 is configured to receive a first data request message, wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device.
[0117] The generating unit 402 is configured to generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain storage data information.
[0118] The second receiving unit 403 is configured to receive a second data request message, wherein the second data request message is sent by a second terminal device.
[0119] The verification unit 404 is configured to verify the second data request message according to the second data request message and the stored data information.
[0120] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0121] Figure 5 : is a schematic diagram of the structure of a data request message verification device provided in accordance with the fourth embodiment of the present application. Specifically, the device 50 of the fourth embodiment includes:
[0122] The first receiving unit 501 is configured to receive a first data request message, wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device.
[0123] The generating unit 502 is configured to generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain storage data information.
[0124] The second receiving unit 503 is configured to receive a second data request message, wherein the second data request message is sent by a second terminal device.
[0125] The verification unit 504 is configured to verify the second data request message according to the second data request message and the stored data information.
[0126] In one example, the apparatus further comprises:
[0127] The sending unit 505 is configured to send the key data information to the first terminal device according to the first terminal device identifier;
[0128] The encryption processing unit 506 is configured to encrypt the key data information, the sequence data information and the timestamp to obtain an encrypted string, and send the encrypted string to the second terminal device.
[0129] In one example, the second data request includes: an encrypted string, a verification message, and a data request parameter; wherein the verification message is obtained from the first terminal device.
[0130] In one example, the verification unit 504 includes:
[0131] The decryption processing module 5041 is used to decrypt the encrypted string in the second data request to obtain decrypted data information;
[0132] Determining module 5042, used to determine the verification result based on the decrypted data information and the stored data information;
[0133] The verification module 5043 is configured to verify the second data request message according to the verification result.
[0134] In one example, the determining module 5042 includes:
[0135] The comparison submodule 50421 is used to compare the decrypted data information with the stored data information to obtain a comparison result;
[0136] The check submodule 50422 is used to compare the decrypted data information with the data request parameters to obtain a check result if the comparison result is consistent.
[0137] In one example, the verification module 5043 is specifically configured to:
[0138] If the verification result is consistent, the verification message and timestamp are verified to obtain the verification result.
[0139] In one example, the apparatus further comprises:
[0140] The execution unit 507 is configured to execute the second data request message if the verification result is passed.
[0141] In one example, the apparatus further comprises:
[0142] The storage unit 508 is used to store the stored data information in a preset database.
[0143] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0144] Figure 6 This is a block diagram of a terminal device according to an exemplary embodiment. The device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0145] Apparatus 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0146] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 602 may include one or more modules to facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
[0147] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0148] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 600.
[0149] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0150] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), which is configured to receive external audio signals when the device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0151] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0152] The sensor assembly 614 includes one or more sensors for providing various aspects of the status assessment of the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600. The sensor assembly 614 can also detect changes in the position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and temperature changes of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0153] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0154] In an exemplary embodiment, the apparatus 600 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described method.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, which can be executed by the processor 620 of the apparatus 600 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0156] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute a data request message verification method of the terminal device.
[0157] The present application also discloses a computer program product, including a computer program, which implements the method described in this embodiment when executed by a processor.
[0158] Various embodiments of the systems and techniques described above in this application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0159] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. Such program code can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or electronic device.
[0160] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0161] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0162] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as data electronics), or a computing system that includes middleware components (e.g., application electronics), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0163] A computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship between the client and the electronic device is established by computer programs running on the corresponding computers and having a client-electronic device relationship with each other. The electronic device may be a cloud electronic device, also known as a cloud computing electronic device or a cloud host, which is a host product in a cloud computing service system. It solves the problems of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The electronic device may also be an electronic device of a distributed system, or an electronic device integrated with a blockchain. It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved. This document does not limit this.
[0164] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0165] It should be understood that the present application is not limited to the exact structure described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A data request message verification method, characterized in that: The method comprises: receiving a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device; and the key data information is content in the first data request message; generating sequence data information according to the first terminal device identifier and the key data information, and establishing a mapping relationship between the sequence data information and the key data information to obtain stored data information; receiving a second data request message; wherein the second data request includes: an encrypted string and data request parameters, the encrypted string includes encrypted key data information, sequence data information, and a timestamp, the timestamp being the time when the key data information is sent to the first terminal device, and the second data request message is sent by the second terminal device; Decrypting the encrypted character string in the second data request to obtain decrypted data information; Comparing the decrypted data information with the stored data information to obtain a comparison result; If the comparison result is consistent, the decrypted data information is compared with the data request parameter to obtain a verification result; the data request parameter is the content in the second data request message; If the verification result is consistent, the timestamp is verified to obtain a verification result.
2. The method according to claim 1, characterized in that After obtaining the stored data information, the method further includes: Sending the key data information to the first terminal device according to the first terminal device identifier; After encrypting the key data information, the sequence data information and the timestamp, an encrypted string is obtained, and the encrypted string is sent to the second terminal device.
3. The method according to claim 1, characterized in that The second data request also includes: a verification message; the verification message is obtained from the first terminal device.
4. The method according to claim 3, characterized in that If the verification result is consistent, the timestamp is verified to obtain a verification result, including: If the verification result is consistent, the verification message and timestamp are verified to obtain a verification result.
5. The method according to claim 4, characterized in that The method further comprises: If the verification result is passed, the second data request message is executed.
6. The method according to claim 1, characterized in that The method further comprises: The stored data information is stored in a preset database.
7. A data request message verification device, characterized in that: The device comprises: a first receiving unit, configured to receive a first data request message; wherein the first data request message includes a first terminal device identifier and key data information; wherein the first data request message is sent by a second terminal device; and the key data information is content in the first data request message; a generating unit, configured to generate sequence data information according to the first terminal device identifier and the key data information, and establish a mapping relationship between the sequence data information and the key data information to obtain stored data information; a second receiving unit, configured to receive a second data request message; wherein the second data request message includes an encrypted string and data request parameters, the encrypted string including encrypted key data information, sequence data information, and a timestamp, the timestamp being the time when the key data information is sent to the first terminal device, and the second data request message is sent by the second terminal device; A verification unit is used to decrypt the encrypted string in the second data request to obtain decrypted data information; compare the decrypted data information with the stored data information to obtain a comparison result; if the comparison result is consistent, compare the decrypted data information with the data request parameter to obtain a verification result; the data request parameter is the content in the second data request message; if the verification result is consistent, verify the timestamp to obtain a verification result.
8. A terminal device, characterized in that: include: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when the computer program is executed by a processor.
Citation Information
Patent Citations
Payment method, server and payment system
CN109345254A