Configuration method and device of electronic payment equipment, storage medium and electronic equipment

By generating and using the target QR code to configure the electronic payment device, the problem of low manual configuration efficiency in the prior art is solved, and efficient remote configuration of the electronic payment device is realized.

CN119741013APending Publication Date: 2025-04-01INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411928235.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

In the prior art, it is necessary to manually configure the electronic payment equipment, resulting in low configuration efficiency.

Method used

By obtaining the terminal number of the electronic payment device and the configuration information of the required functions, a target QR code is generated, and the initial electronic payment device is configured using the QR code to obtain the target electronic payment device.

Benefits of technology

Remote configuration of electronic payment equipment is realized, manual intervention is avoided, configuration efficiency is significantly improved, and operation and maintenance costs are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119741013A_ABST
    Figure CN119741013A_ABST
Patent Text Reader

Abstract

The invention discloses a configuration method and device of electronic payment equipment, a storage medium and electronic equipment. The method comprises the following steps: acquiring a terminal number of an initial electronic payment device to be configured and determining configuration information of a function needing to be configured by the initial electronic payment device; generating a target two-dimensional code according to the terminal number and the configuration information; and performing function configuration on the initial electronic payment device according to the target two-dimensional code to obtain a target electronic payment device. Through application of the method and the device, the problem of relatively low configuration efficiency caused by the fact that function configuration needs to be carried out on the electronic payment equipment in a manual mode in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of privacy computing technology, and more specifically, to a configuration method and apparatus for an electronic payment device, a storage medium, and an electronic device. Background Art

[0002] With the development of science and technology, people's living standards are getting higher and higher, the Internet is everywhere, and the forms of acquiring are also diversified. At present, there are traditional electronic payment devices and smart electronic payment devices in the industry. The mainstream is smart electronic payment devices (for example, smart POS machines), and smart electronic payment devices are gradually replacing traditional electronic payment devices. With the popularization of smart electronic payment devices, the demand is increasing. For smart electronic payment devices with smart electronic payment device management systems, smart electronic payment devices that need to open new functions can be modified remotely online. However, for acquiring institutions without smart electronic payment device management systems, acquiring business personnel often need to go to the merchant site to log in to the smart electronic payment device through the administrator's account to modify it, which consumes a lot of manpower and time.

[0003] Currently, no effective solution has been proposed to address the problem that the functions of electronic payment devices need to be configured manually in related technologies, resulting in low configuration efficiency. Summary of the invention

[0004] The main purpose of the present application is to provide a configuration method and device for an electronic payment device, a storage medium and an electronic device, so as to solve the problem in the related art that the functions of the electronic payment device need to be configured manually, resulting in low configuration efficiency.

[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a configuration method of an electronic payment device is provided. The method comprises: obtaining a terminal number of an initial electronic payment device to be configured and determining configuration information of functions to be configured for the initial electronic payment device; generating a target two-dimensional code according to the terminal number and the configuration information; and performing functional configuration on the initial electronic payment device according to the target two-dimensional code to obtain a target electronic payment device.

[0006] Furthermore, generating a target QR code based on the terminal number and the configuration information includes: obtaining target password information of the management end corresponding to the initial electronic payment device; obtaining a first key based on the target password information, the terminal number and a first preset value; generating the target QR code based on the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated.

[0007] Furthermore, generating the target QR code according to the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated includes: encrypting the terminal number, the configuration information and the validity period of the target QR code to be generated by using the first key to obtain a first ciphertext; determining a first message authentication code according to the first ciphertext; obtaining a second key according to the target password information, the terminal number and a second preset value; encrypting the first message authentication code and target data according to the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, the configuration information and the validity period of the target QR code to be generated; generating the target QR code according to the second ciphertext.

[0008] Furthermore, obtaining the first key based on the target password information, the terminal number and the first preset value includes: obtaining multiple first key factors based on the target password information and the first preset value; processing the terminal number to obtain multiple second key factors; and concatenating the multiple first key factors and the multiple second key factors to obtain the first key.

[0009] Furthermore, based on the target QR code, the initial electronic payment device is functionally configured to obtain the target electronic payment device, including: obtaining target password information of the management end corresponding to the initial electronic payment device; decrypting the data corresponding to the target QR code based on the target password information and the terminal number to obtain decrypted configuration information; and functionally configuring the initial electronic payment device based on the decrypted configuration information to obtain the target electronic payment device.

[0010] Furthermore, based on the target password information and the terminal number, the data corresponding to the target QR code is decrypted to obtain the decrypted configuration information, including: obtaining a second key based on the target password information, the terminal number and a second preset value; decrypting the data corresponding to the target QR code based on the second key to obtain decrypted target data and a decrypted message authentication code; verifying the decrypted message authentication code to obtain a verification result; when the verification result indicates that the verification is passed, the decrypted configuration information is obtained based on the decrypted target data.

[0011] Furthermore, the decrypted message authentication code is verified, and the verification result obtained includes: obtaining a first key based on the target password information, the terminal number and a first preset value; encrypting the decrypted target data by using the first key to obtain a third ciphertext; determining a second message authentication code based on the third ciphertext; and verifying the decrypted message authentication code based on the second message authentication code to obtain the verification result.

[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a configuration device for an electronic payment device is provided. The device comprises: an acquisition unit, used to acquire a terminal number of an initial electronic payment device to be configured and configuration information for determining functions that need to be configured for the initial electronic payment device; a generation unit, used to generate a target two-dimensional code according to the terminal number and the configuration information; and a configuration unit, used to perform functional configuration on the initial electronic payment device according to the target two-dimensional code to obtain a target electronic payment device.

[0013] Furthermore, the generation unit includes: an acquisition subunit, used to obtain target password information of the management end corresponding to the initial electronic payment device; an encryption subunit, used to obtain a first key based on the target password information, the terminal number and a first preset value; a generation subunit, used to generate the target QR code based on the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated.

[0014] Furthermore, the generation subunit includes: a first encryption module, used to encrypt the terminal number, the configuration information and the validity period of the target QR code to be generated by using the first key to obtain a first ciphertext; a confirmation module, used to determine a first message authentication code based on the first ciphertext; a second encryption module, used to obtain a second key based on the target password information, the terminal number and a second preset value; a third encryption module, used to encrypt the first message authentication code and target data based on the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, the configuration information and the validity period of the target QR code to be generated; a generation module, used to generate the target QR code based on the second ciphertext.

[0015] Furthermore, the encryption subunit includes: an extraction module, used to obtain multiple first key factors based on the target password information and a first preset value; a segmentation module, used to process the terminal number to obtain multiple second key factors; and a splicing module, used to splice the multiple first key factors and the multiple second key factors to obtain the first key.

[0016] Furthermore, the configuration unit includes: an acquisition module unit, used to obtain target password information of the management end corresponding to the initial electronic payment device; a decryption module unit, used to decrypt the data corresponding to the target QR code according to the target password information and the terminal number to obtain the decrypted configuration information; a configuration module unit, used to perform functional configuration of the initial electronic payment device according to the decrypted configuration information to obtain the target electronic payment device.

[0017] Furthermore, the decryption subunit includes: a fourth encryption module, used to obtain a second key based on the target password information, the terminal number and a second preset value; a first decryption module, used to decrypt the data corresponding to the target QR code based on the second key to obtain decrypted target data and a decrypted message authentication code; a verification module, used to verify the decrypted message authentication code to obtain a verification result; a second decryption module, used to obtain the decrypted configuration information based on the decrypted target data when the verification result indicates that the verification is passed.

[0018] Furthermore, the verification module includes: a first encryption submodule, used to obtain a first key based on the target password information, the terminal number and a first preset value; a second encryption submodule, used to encrypt the decrypted target data by using the first key to obtain a third ciphertext; a determination submodule, used to determine a second message authentication code based on the third ciphertext; and a verification submodule, used to verify the decrypted message authentication code based on the second message authentication code to obtain the verification result.

[0019] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is further provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute any one of the above-mentioned methods for configuring an electronic payment device.

[0020] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the above-mentioned methods for configuring an electronic payment device when running.

[0021] In the embodiment of the present application, the target QR code is encrypted and generated by the terminal number of the initial electronic payment device to be configured and the configuration information of the functions that need to be configured for the initial electronic payment device. The initial electronic payment device is functionally configured according to the target QR code to obtain the target electronic payment device, thereby solving the technical problem that the electronic payment device needs to be functionally configured manually, resulting in a relatively low configuration efficiency. In this solution, the management end generates a target QR code based on the terminal number of the initial electronic payment device and the configuration information of the functions that need to be configured. The initial electronic payment device obtains the configuration information by scanning the target QR code, and the corresponding function configuration of the initial electronic payment device can be realized. The manual configuration of the functions of the electronic payment device is avoided, thereby achieving the effect of improving the configuration efficiency of the electronic payment device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1 A hardware structure block diagram of a computer terminal for implementing a configuration method of an electronic payment device is shown;

[0024] Figure 2 The configuration method of the electronic payment device provided in the embodiment of the present application is as follows: Figure 1 ;

[0025] Figure 3 The configuration method of the electronic payment device provided in the embodiment of the present application is as follows: Figure 2 ;

[0026] Figure 4 The configuration method of the electronic payment device provided in the embodiment of the present application is as follows: Figure 3 ;

[0027] Figure 5 is a schematic diagram of a configuration system provided according to an embodiment of the present application;

[0028] Figure 6 It is a schematic diagram of the execution process of the smart POS acquiring management APP1 provided according to the embodiment of the present application;

[0029] Figure 7 It is a schematic diagram of the execution process of the merchant intelligent POS acquiring APP2 provided according to the embodiment of the present application;

[0030] Figure 8 It is a schematic diagram of the execution process of the acquiring system 3 provided according to the embodiment of the present application;

[0031] Fig. 9 is a schematic diagram of a configuration device of an electronic payment device provided in an embodiment of the present application;

[0032] Fig.10 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0035] It should be noted that the collected information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this application are information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with relevant laws, regulations and standards, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.

[0036] Example 1

[0037] According to an embodiment of the present application, a configuration method embodiment of an electronic payment device is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0038] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a configuration method of an electronic payment device is shown. Figure 1As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0039] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0040] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the configuration method of the electronic payment device in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the configuration method of the electronic payment device described above is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0041] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0042] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0043] Under the above operating environment, this application provides Figure 2 The configuration method of the electronic payment device shown. Figure 2 It is a flowchart of a configuration method of an electronic payment device according to Embodiment 1 of the present application.

[0044] Step S201, obtaining a terminal number of an initial electronic payment device to be configured and determining configuration information of functions that need to be configured for the initial electronic payment device.

[0045] Optionally, the terminal number of the initial electronic payment device to be configured and the configuration information of the functions to be configured of the initial electronic payment device may be obtained through the management terminal of the initial electronic payment device.

[0046] Generally speaking, the terminal number of the initial electronic payment device is 15 digits, consisting of a 4-digit area code + a 4-digit branch number + a 4-digit merchant number + a 3-digit terminal sequence number. It should be noted that if the terminal number of the initial electronic payment device only has a 4-digit area code, it means that the QR code configuration generated subsequently is universal for all merchants under it. If the terminal number of the initial electronic payment device only has a 4-digit area code + a 4-digit branch number, it means that it is effective for merchants under a certain branch. If the terminal number of the initial electronic payment device only has a 4-digit area code + a 4-digit branch number + a 4-digit merchant number, it means that it is effective for all terminals of a specific merchant. If the terminal number of the initial electronic payment device only has a 4-digit area code + a 4-digit branch number + a 4-digit merchant number + a 3-digit terminal sequence number, it is only effective for a specific smart electronic payment device. If the terminal number is less than 15 digits, the 15 digits are supplemented by the method of post-filling F, for example, enter 9008 (area code) + 0199 (branch number) + FFFF + FFF.

[0047] In an optional embodiment, a management personnel may input the above terminal number at the management end and select the function to be configured.

[0048] In an optional embodiment, the configuration information of the function to be configured of the initial electronic payment device can be represented by 4 digits, the first three digits represent the configuration operation object, and the fourth digit represents the configuration operation action. For example, opening a communication program can be recorded as 0011, 001 represents the communication program, and 1 represents opening. The configuration information can also be closing a bank card balance query, which can be recorded as 0020, 002 represents a bank card balance query, and 0 represents closing.

[0049] Step S202, generating a target QR code according to the terminal number and configuration information.

[0050] Optionally, the management terminal of the initial electronic payment device to be configured processes the acquired terminal number and configuration information to generate a target QR code. After the target QR code is obtained, it can be sent to the relevant merchant by email or other means.

[0051] Step S203: According to the target QR code, the initial electronic payment device is functionally configured to obtain the target electronic payment device.

[0052] Optionally, after receiving the target QR code sent by the management end of the initial electronic payment device to be configured, the initial electronic payment device can obtain configuration information of the function to be configured by scanning the target QR code, and then perform corresponding function configuration to obtain the target electronic payment device.

[0053] In summary, the management end generates a target QR code based on the terminal number of the initial electronic payment device and the configuration information of the required configuration function. The initial electronic payment device obtains the configuration information by scanning the target QR code, and the corresponding function configuration of the initial electronic payment device can be realized. This avoids the manual configuration of the electronic payment device, thereby achieving the effect of improving the configuration efficiency of the electronic payment device.

[0054] Optionally, generating a target QR code based on the terminal number and configuration information includes: obtaining target password information of the management end corresponding to the initial electronic payment device; obtaining a first key based on the target password information, the terminal number and a first preset value; generating a target QR code based on the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated.

[0055] In an optional embodiment, generating a target QR code through the terminal number and configuration information includes the following steps: obtaining target password information of the management terminal corresponding to the initial electronic payment device. Generally speaking, the target password information consists of 6 digits, for example, 123456.

[0056] In order to improve the security of the target QR code, a first key, for example, key A, is obtained according to the target password information, the terminal number and the first preset value. For example, the 6-digit and 15-digit terminal number of the initial electronic payment device and the first preset value 5 are spliced, and the spliced ​​characters are used as the above-mentioned first key. At the same time, in order to improve the security of the target QR code, the validity period of the target QR code can also be set. The validity period is in the YYMMDD format, which is used to identify the expiration date of the QR code, for example, 240410.

[0057] Finally, the target two-dimensional code is generated according to the first key, the terminal number, the configuration information and the validity period of the target two-dimensional code to be generated.

[0058] The first key and terminal number can add a layer of security verification to the generation of the QR code, ensuring that only specific terminals can obtain the configuration information corresponding to the target QR code. By setting the validity period of the QR code, the life cycle of the QR code can be effectively controlled, further improving data security.

[0059] Optionally, generating a target QR code based on the first key, terminal number, configuration information and the validity period of the target QR code to be generated includes: encrypting the terminal number, configuration information and the validity period of the target QR code to be generated by using the first key to obtain a first ciphertext; determining a first message authentication code based on the first ciphertext; obtaining a second key based on the target password information, the terminal number and a second preset value; encrypting the first message authentication code and target data based on the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, configuration information and the validity period of the target QR code to be generated; and generating a target QR code based on the second ciphertext.

[0060] In an optional embodiment, the target QR code is generated by the following steps: First, the terminal number, configuration information and the validity period of the target QR code to be generated are encrypted by a first key to obtain a first ciphertext, for example, ciphertext A. In an optional embodiment, the encryption work can be completed by using the CBC mode (CipherBlock Chaining) encryption method of the SM4 cryptographic algorithm (symmetric encryption algorithm).

[0061] After obtaining the first ciphertext, the first message authentication code MAC is obtained according to the first ciphertext, for example, the last 4 bytes of the first ciphertext are taken as the first message authentication code. Then, the second key is obtained according to the target password information, the terminal number and the second preset value, for example, the 6-digit and 15-digit terminal number of the initial electronic payment device and the second preset value 9 are spliced, and the spliced ​​characters are used as the second key, for example, key B.

[0062] After obtaining the second key, the second key is used to encrypt the first message authentication code and terminal number, configuration information and the validity period of the target QR code to be generated to obtain a second ciphertext. In an optional embodiment, the CBC mode (Cipher Block Chaining) encryption method of the SM4 cryptographic algorithm (symmetric encryption algorithm) can be used to complete the above encryption work.

[0063] It should be noted that the target data (for example, data A) composed of the terminal number, configuration information and the validity period of the target QR code to be generated is in the form of: 15-digit terminal number|expiration date|function selection 1|function selection 2...|&&|. For example, data A is composed of 90080199FFFFFFF|240410|0011|0020|&&.

[0064] The above-mentioned first message authentication code and target data are assembled into data B, that is, data B is data A+MAC+FEFFFFFFFFFFFFFFFFFFFFFFFF, and the data B is encrypted in sm4's cbc mode using key B to obtain ciphertext B.

[0065] Finally, the second ciphertext (ie, ciphertext B) is converted into a two-dimensional code to obtain the above-mentioned target two-dimensional code.

[0066] The first message authentication code is determined by the first ciphertext, and then the first message authentication code and the target data are encrypted according to the second key, and the above-mentioned target QR code is obtained according to the final ciphertext. The double encryption method is adopted, which can effectively improve the security of the QR code.

[0067] Optionally, obtaining the first key based on the target password information, the terminal number and the first preset value includes: obtaining multiple first key factors based on the target password information and the first preset value; processing the terminal number to obtain multiple second key factors; and concatenating the multiple first key factors and the multiple second key factors to obtain the first key.

[0068] In an optional embodiment, the above-mentioned first key can be obtained by the following steps: multiplying the target password information and a first preset value (for example, 2) to obtain a calculated value, and then obtaining multiple first key factors based on the calculated value. For example, if the target password information is 123456 and the calculated value is 24690, 24690 is split into two first key factors, namely 246 and 690.

[0069] Then, the terminal number is processed, for example, digits 5 to 15 of the 15-digit terminal number are split into three second key factors, and finally the first key is obtained according to multiple first key factors and multiple second key factors. For example, the first key factor + second key factor can be directly used to obtain the first key.

[0070] In an optional embodiment, the target password information can be multiplied by the first preset value to obtain a value and then add a group of random 6-digit values, and then the last six digits of the result are taken and divided to further enhance the security of encryption. For example, (123456*2)+137596=384508, the last 6 digits are taken and then divided into two groups, 384 is the first key factor A of the first key, and 508 is the first key factor B of the first key.

[0071] In an optional embodiment, the second key factor can also be obtained in the following manner: the first four digits of the terminal number are multiplied by 5, the last 4 digits of the result are taken, and then divided into two groups, the first two digits are the second key factor C, and the last two digits are the second key factor D. For example, the first four digits of the terminal number are 9008*5+3344=48384, the last 4 digits are taken as 8384, and then divided into two groups, 83 is the second key factor C, and 84 is the second key factor D. Then, digits 5 to 8 of the terminal number are the second key factor E; digits 9 to 12 of the terminal number are the second key factor F; and digits 13 to 15 of the terminal number are the second key factor G.

[0072] Finally, a 32-bit first key is obtained by concatenating multiple first key factors and multiple second key factors. For example, the first key is composed of EEEEEEEE+second key factor G+first key factor A+second key factor F+first key factor B+second key factor E+second key factor C+second key factor D+EEE.

[0073] In an optional embodiment, the second key can be obtained in the following manner: first, the 6-digit password is *3 and the last 6 digits are taken out, that is, (123456*3)+248653=619021, and the last 6 digits are taken out, and then divided into two groups, 619 is the key factor A, and 021 is the key factor B. The first four digits of the terminal number 12 are input 9008*7+1357=64413, and the last 4 digits are taken out to be 4413, and then divided into two groups, 44 is the key factor C, and 13 is the key factor D. Then, the 32-bit key B is concatenated, which is composed of AAAAAAAA+key factor C+FFF key factor B+FFF+key factor A+key factor D+AAAAAAAA.

[0074] By calculating and dividing the target password information, terminal number and the first preset value, multiple key factors are obtained, and then the key factors are spliced, which improves the security of the first key, thereby achieving the technical effect of improving the security of the target QR code.

[0075] Optionally, based on the target QR code, the initial electronic payment device is functionally configured to obtain the target electronic payment device, including: obtaining target password information of the management end corresponding to the initial electronic payment device; decrypting the data corresponding to the target QR code based on the target password information and the terminal number to obtain decrypted configuration information; and functionally configuring the initial electronic payment device based on the decrypted configuration information to obtain the target electronic payment device.

[0076] In an optional embodiment, according to the target QR code, the functional configuration of the initial electronic payment device includes the following steps: the initial electronic payment device obtains the target password information of the management end corresponding to the initial electronic payment device. It should be noted that the target password information can be informed by the management personnel.

[0077] The data corresponding to the target QR code is decrypted using the target password information and the terminal number to obtain the decrypted configuration information. Finally, the initial electronic payment device is functionally configured according to the decrypted configuration information to obtain the target electronic payment device.

[0078] By decrypting the target password information, terminal number and target QR code, the automatic configuration of the initial electronic payment device is realized, which improves the efficiency of function configuration.

[0079] Optionally, the data corresponding to the target QR code is decrypted based on the target password information and the terminal number to obtain the decrypted configuration information, including: obtaining a second key based on the target password information, the terminal number and the second preset value; decrypting the data corresponding to the target QR code based on the second key to obtain decrypted target data and a decrypted message authentication code; verifying the decrypted message authentication code to obtain a verification result; when the verification result indicates that the verification is passed, obtaining the decrypted configuration information based on the decrypted target data.

[0080] In an optional embodiment, the above-mentioned decrypted configuration information can be obtained by the following steps: Generate a second key according to the target password information, the terminal number and the second preset value. For example, the value obtained by multiplying the target password information by the second preset value is taken to obtain the last six digits, and divided into two groups as part of the first key. Furthermore, the value obtained by multiplying the target password information by the first preset value can also be added to a group of random 6-digit values, and then the last six digits of the result are taken to further enhance the security of encryption. For example, (123456*3)+248653=619021, take the last 6 digits, and then divide them into two groups, 619 is the first key factor A, and 021 is the first key factor B.

[0081] Then, the first four digits of the terminal number are multiplied by 7, and the last four digits are taken, and then divided into two groups, the first two digits are the second key factor C, and the last two digits are the second key factor D. For example, the first four digits of the terminal number of the electronic payment device are 9008*7+1357=64413, and the last four digits are taken as 4413, and then divided into two groups, 44 is the second key factor C, and 13 is the second key factor D. Finally, AAAAAAAA+second key factor C+FFF first key factor B+FFF+first key factor A+second key factor D+AAAAAAAA is used as the above-mentioned second key.

[0082] The data corresponding to the target QR code is decrypted by the second key. The data corresponding to the target QR code is ciphertext B. The data obtained by decrypting ciphertext B by the second key is data B, which is data A+MAC+FEFFFFFFFFFFFFFFFFFFFFFFFF. Removing the last 24 bits of data B gives data A+MAC. The decrypted message authentication code needs to be verified, and if the verification is passed, the last 4 bits of data A+MAC are taken as MAC, and then the remaining data is separated by |. The first group is the 15-digit terminal number. Remove the F after the terminal number. If the remaining string is the same as the string of the local terminal number, it means that it is valid for the terminal, otherwise it is rejected. The second group is a 6-digit validity period. If it is within the validity period, continue. The third to the second to last group are the decrypted configuration information. For example, data A is 90080199FFFFFFF|240410|0011|0020|&&FFFFFFFFFFFFFFFFFFFFFFFFFFFFF, then the corresponding configuration information is |0011|0020|.

[0083] The above steps can effectively prevent illegal access and data leakage, while ensuring the authenticity and integrity of the configuration information, thereby improving the security of remote configuration of electronic payment devices.

[0084] Optionally, the decrypted message authentication code is verified to obtain a verification result including: obtaining a first key based on the target password information, the terminal number and the first preset value; encrypting the decrypted target data with the first key to obtain a third ciphertext; determining a second message authentication code based on the third ciphertext; and verifying the decrypted message authentication code based on the second message authentication code to obtain a verification result.

[0085] In an optional embodiment, the decrypted message authentication code is verified by the following steps: a first key is obtained according to the target password information, the terminal number and the first preset value. For example, the target password information and the first preset value (for example, 2) are multiplied to obtain a calculated value, and then multiple first key factors are obtained according to the calculated value. For example, if the target password information is 123456 and the calculated value is 24690, 24690 is split into two first key factors, 246 and 690 respectively. Then, the terminal number is processed, for example, digits 5 to 15 of the 15-digit terminal number are split into 3 second key factors, and finally the first key is obtained according to multiple first key factors and multiple second key factors. For example, the first key factor + second key factor can be directly used to obtain the first key.

[0086] The first key can also be obtained by the following steps: after the 6-digit password is *2, the last 2 digits are taken out, that is, (123456*2)+137596=384508, the last 6 digits are taken out, and then divided into two groups, 384 is the first key factor A, and 508 is the first key factor B. The first four digits of the terminal number are 9008*5+3344=48384, and the last 4 digits are taken out to be 8384, which are then divided into two groups, 83 is the second key factor C, and 84 is the second key factor D. The 5th to 8th digits of the terminal number are the key factor E; the 9th to 12th digits of the terminal number are the key factor F; the 13th to 15th digits of the terminal number are the key factor G, and then the 32-bit first key is concatenated, which is composed of EEEEEEEE+second key factor G+first key factor A+second key factor F+first key factor B+

[0087] The second key factor E+the second key factor C+the second key factor D+EEE.

[0088] Then, the decrypted target data is encrypted with the first key to obtain the third ciphertext, that is, the data A is decrypted in sm4 cbc mode with the first key to obtain ciphertext A, and then the last 4 bytes of ciphertext A are taken as MAC. Then the decrypted message authentication code is compared to see if it is the same as the MAC in data B. If they are the same, the verification of the decrypted message authentication code is passed.

[0089] By verifying the message authentication code, it can be effectively ensured that the data has not been tampered with during the transmission process, thereby improving the security of the remote configuration of the electronic payment device.

[0090] In an optional embodiment, the following steps can be used to verify the validity period of the QR code. Before the initial electronic device processes the QR code, the initial electronic payment device signs in the acquiring system. The acquiring system determines the sign-in message sent by the initial electronic payment device, returns a successful response message after confirmation, and then obtains the date in the response message. It should be noted that the sign-in message may include an area code for comparison with the area code in the terminal number obtained after decryption of the target QR code. The date entered in the response message is in the YYMMDD format, for example, 240408. The date obtained from this sign-in is used to compare with the validity period of the QR code. The validity period can only be continued if it is greater than the date obtained from this sign-in. For example, if the validity period (240410) is greater than the date (240408) obtained from this sign-in, then continue.

[0091] In an optional embodiment, the following may be used: Figure 3 The flowchart shown realizes the generation of the QR code, which specifically includes:

[0092] Step 1: The management end of the initial electronic payment device to be configured signs in to the acquiring system. After returning a successful response message, the management end obtains the configuration information of the function to be configured and obtains the target password information;

[0093] Step 2: Calculate, split and concatenate the target password information, the terminal number and the first preset value to generate a first key, encrypt the terminal number, the configuration information and the validity period of the target QR code to be generated by the first key to obtain a first ciphertext, and take the last 4 bytes of the first ciphertext as the first message verification code;

[0094] Step 3: Calculate, split and concatenate the target password information, the terminal number and the second preset value to generate a second key, and encrypt the first message authentication code and the target data using the second key to obtain a second ciphertext;

[0095] Step 4: Convert the second ciphertext into a target QR code and send it to the relevant merchant via a messaging program or email.

[0096] In an optional embodiment, the following may be used: Figure 4 The flowchart shown implements the functional configuration of the initial electronic payment device, specifically including:

[0097] Step 1: The initial electronic payment device to be configured signs in at the acquiring system. After returning a successful response message, the sign-in date in the response message is obtained;

[0098] Step 2: Enter the target password information sent by the acquirer administrator to the merchant, and scan the target QR code to convert it into the second ciphertext;

[0099] Step 3: Calculate, split and concatenate the target password information, the terminal number and the second preset value to generate a second key, decrypt the second ciphertext using the second key to obtain the decrypted target data and the decrypted message verification code;

[0100] Step 4: Obtain a first key from the target password information, the terminal number and the first preset value, encrypt the decrypted target data with the first key to obtain a third ciphertext, and take the last 4 bytes of the third ciphertext as the second message verification code;

[0101] Step 5: The second message authentication code verifies the decrypted message authentication code to obtain a verification result. When the verification result indicates that the verification is passed, the decrypted configuration information is obtained from the decrypted target data.

[0102] Step 6: The electronic payment device updates its configuration according to the configuration information to obtain the target electronic payment device.

[0103] In an alternative embodiment, the Figure 5 The configuration system shown implements the configuration of the smart POS machine, such as Figure 5 As shown, the configuration system includes smart POS acquiring management APP1, merchant smart POS acquiring APP2, and acquiring system 3. Among them, smart POS acquiring management APP1 is used to generate a configuration QR code; merchant smart POS acquiring APP2 is used to scan the configuration QR code to update the local configuration; acquiring system 3 is used to provide the merchant smart POS acquiring APP2 with a check-in and return date.

[0104] In an optional embodiment, the execution process of the smart POS acquiring management APP1 is as follows: Figure 6 As shown, it includes: and function selection, terminal number input, validity period input, target password information input, MAC generation, ciphertext B generation and QR code generation.

[0105] In an optional embodiment, the execution process of the merchant smart POS acquiring APP2 is as follows: Figure 7 As shown, it includes: signing in and obtaining the date, inputting the target password information, scanning the QR code, decrypting the ciphertext, verifying the MAC and updating the configuration.

[0106] In an optional embodiment, the execution process of the acquiring system 3 is as follows: Figure 8 As shown, it includes: receiving a sign-in request message, verifying a message, and sending a sign-in response.

[0107] The configuration method of the electronic payment device provided in the embodiment of the present application encrypts and generates a target QR code through the terminal number of the initial electronic payment device to be configured and the configuration information of the functions that need to be configured of the initial electronic payment device, and performs functional configuration on the initial electronic payment device based on the target QR code to obtain the target electronic payment device, thereby solving the technical problem of needing to manually configure the functions of the electronic payment device, resulting in relatively low configuration efficiency.

[0108] In this solution, the terminal number of the initial electronic payment device and the configuration information of the required configuration function are input into the management terminal corresponding to the initial electronic payment device to be configured, and the target QR code is generated by encrypting the terminal number and the configuration information. Then, the target QR code is scanned by the initial electronic payment device, and the data corresponding to the target QR code is decrypted to obtain the configuration information, and the corresponding function configuration is performed on the initial electronic payment device, thereby obtaining the target electronic payment device. Through this solution, the remote configuration of the electronic payment device is realized, avoiding the need for the acquiring business personnel to go to the specific merchant site to configure the new function of the electronic payment device, thereby achieving the effect of improving the configuration efficiency of the electronic payment device.

[0109] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0110] Example 2

[0111] The present application also provides a configuration device for an electronic payment device. It should be noted that the configuration device for an electronic payment device in the present application can be used to execute the configuration method for an electronic payment device provided in the present application. The configuration device for an electronic payment device provided in the present application is introduced below.

[0112] According to an embodiment of the present application, a device for implementing the configuration method of the electronic payment device is also provided, such as Fig. 9 As shown, the device includes: an acquisition unit 901, a generation unit 902 and a configuration unit 903.

[0113] An acquisition unit 901 is used to acquire a terminal number of an initial electronic payment device to be configured and determine configuration information of functions that need to be configured for the initial electronic payment device;

[0114] A generating unit 902, configured to generate a target QR code according to the terminal number and configuration information;

[0115] The configuration unit 903 is used to perform functional configuration on the initial electronic payment device according to the target two-dimensional code to obtain the target electronic payment device.

[0116] The configuration device of the electronic payment device provided in the embodiment of the present application is used to obtain the terminal number of the initial electronic payment device to be configured and determine the configuration information of the functions that need to be configured for the initial electronic payment device; the generation unit 902 is used to generate a target QR code according to the terminal number and the configuration information; the configuration unit 903 performs functional configuration on the initial electronic payment device according to the target QR code to obtain the target electronic payment device, which solves the technical problem of needing to manually configure the functions of the electronic payment device, resulting in relatively low configuration efficiency, significantly improves the configuration efficiency of the electronic payment device, reduces the frequency of manual intervention, realizes remote configuration of the electronic payment device, and reduces operation and maintenance costs.

[0117] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the generation unit includes: an acquisition subunit, used to obtain the target password information of the management end corresponding to the initial electronic payment device; an encryption subunit, used to obtain the first key based on the target password information, the terminal number and the first preset value; a generation subunit, used to generate the target QR code based on the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated.

[0118] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the generation subunit includes: a first encryption module, used to encrypt the terminal number, configuration information and the validity period of the target QR code to be generated by using a first key to obtain a first ciphertext; a confirmation module, used to determine the first message authentication code based on the first ciphertext; a second encryption module, used to obtain the second key based on the target password information, the terminal number and the second preset value; a third encryption module, used to encrypt the first message authentication code and target data based on the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, configuration information and the validity period of the target QR code to be generated; a generation module, used to generate the target QR code based on the second ciphertext.

[0119] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the encryption subunit includes: an extraction module, used to obtain multiple first key factors based on the target password information and the first preset value; a segmentation module, used to process the terminal number to obtain multiple second key factors; and a splicing module, used to splice the multiple first key factors and the multiple second key factors to obtain the first key.

[0120] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the configuration unit includes: an acquisition module unit, used to obtain the target password information of the management end corresponding to the initial electronic payment device; a decryption sub-unit, used to decrypt the data corresponding to the target QR code according to the target password information and the terminal number to obtain the decrypted configuration information; a configuration sub-unit, used to perform functional configuration of the initial electronic payment device according to the decrypted configuration information to obtain the target electronic payment device.

[0121] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the decryption subunit includes: a fourth encryption module, used to obtain a second key based on the target password information, the terminal number and the second preset value; a first decryption module, used to decrypt the data corresponding to the target QR code based on the second key to obtain the decrypted target data and the decrypted message authentication code; a verification module, used to verify the decrypted message authentication code to obtain a verification result; a second decryption module, used to obtain the decrypted configuration information based on the decrypted target data when the verification result indicates that the verification is passed.

[0122] Optionally, in the configuration device of the electronic payment device provided in the embodiment of the present application, the verification module includes: a first encryption sub-module, used to obtain a first key based on the target password information, the terminal number and the first preset value; a second encryption sub-module, used to encrypt the decrypted target data by using the first key to obtain a third ciphertext; a determination sub-module, used to determine the second message authentication code based on the third ciphertext; and a verification sub-module, used to verify the decrypted message authentication code based on the second message authentication code to obtain a verification result.

[0123] It should be noted that the acquisition unit 901, the generation unit 902 and the configuration unit 903 correspond to steps S201 to S203 in the first embodiment, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the first embodiment. It should be noted that the modules or units may be hardware components or software components stored in a memory (e.g., the memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the modules may also be part of the device and run in the computer terminal 10 provided in the first embodiment.

[0124] Example 3

[0125] An embodiment of the present application may provide an electronic device, Fig.10 is a structural block diagram of an electronic device according to an embodiment of the present application. Fig.10 As shown, the electronic device may include: one or more ( Fig.10(only one is shown) processor 1002, memory 1004, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0126] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0127] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the terminal number of the initial electronic payment device to be configured and determine the configuration information of the functions that need to be configured of the initial electronic payment device; generate a target QR code based on the terminal number and the configuration information; and configure the functions of the initial electronic payment device based on the target QR code to obtain the target electronic payment device.

[0128] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the target password information of the management end corresponding to the initial electronic payment device; obtain the first key based on the target password information, the terminal number and the first preset value; generate the target QR code based on the first key, the terminal number, the configuration information and the validity period of the target QR code to be generated.

[0129] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: encrypt the terminal number, configuration information and the validity period of the target QR code to be generated by using the first key to obtain a first ciphertext; determine the first message authentication code based on the first ciphertext; obtain the second key based on the target password information, the terminal number and the second preset value; encrypt the first message authentication code and the target data based on the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, configuration information and the validity period of the target QR code to be generated; generate the target QR code based on the second ciphertext.

[0130] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain multiple first key factors based on the target password information and the first preset value; process the terminal number to obtain multiple second key factors; splice the multiple first key factors and the multiple second key factors to obtain the first key.

[0131] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the target password information of the management end corresponding to the initial electronic payment device; decrypt the data corresponding to the target QR code based on the target password information and the terminal number to obtain the decrypted configuration information; configure the functions of the initial electronic payment device based on the decrypted configuration information to obtain the target electronic payment device.

[0132] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the second key based on the target password information, the terminal number and the second preset value; decrypt the data corresponding to the target QR code based on the second key to obtain the decrypted target data and the decrypted message authentication code; verify the decrypted message authentication code to obtain a verification result; when the verification result indicates that the verification is passed, obtain the decrypted configuration information based on the decrypted target data.

[0133] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain a first key based on the target password information, the terminal number and the first preset value; encrypt the decrypted target data with the first key to obtain a third ciphertext; determine the second message authentication code based on the third ciphertext; verify the decrypted message authentication code based on the second message authentication code to obtain a verification result.

[0134] The embodiment of the present application provides a method for configuring an electronic payment device. The terminal number of the initial electronic payment device to be configured and the configuration information of the function to be configured of the initial electronic payment device are used to generate a target QR code, and the initial electronic payment device is functionally configured according to the target QR code, thereby obtaining a target electronic payment device, thereby solving the technical problem that the electronic payment device needs to be manually configured, resulting in a relatively low configuration efficiency.

[0135] It can be understood by those skilled in the art that Fig.10 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.10The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.10 Different configurations shown.

[0136] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0137] Example 4

[0138] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the configuration method of the electronic payment device provided in the first embodiment.

[0139] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0140] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the configuration method of an electronic payment device.

[0141] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0142] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0143] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0144] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0145] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0147] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for configuring an electronic payment device, characterized in that: include: Obtaining a terminal number of an initial electronic payment device to be configured and determining configuration information of functions that need to be configured for the initial electronic payment device; Generate a target QR code according to the terminal number and the configuration information; The initial electronic payment device is functionally configured according to the target two-dimensional code to obtain a target electronic payment device.

2. The method according to claim 1, characterized in that Generating a target QR code according to the terminal number and the configuration information includes: Obtain target password information of the management terminal corresponding to the initial electronic payment device; Obtaining a first key according to the target password information, the terminal number and a first preset value; The target two-dimensional code is generated according to the first key, the terminal number, the configuration information and the validity period of the target two-dimensional code to be generated.

3. The method according to claim 2, characterized in that Generating the target two-dimensional code according to the first key, the terminal number, the configuration information, and the validity period of the target two-dimensional code to be generated includes: The terminal number, the configuration information, and the validity period of the target two-dimensional code to be generated are encrypted by using the first key to obtain a first ciphertext; Determine a first message authentication code according to the first ciphertext; Obtaining a second key according to the target password information, the terminal number and a second preset value; Encrypting the first message authentication code and target data according to the second key to obtain a second ciphertext, wherein the target data consists of the terminal number, the configuration information, and the validity period of the target two-dimensional code to be generated; The target two-dimensional code is generated according to the second ciphertext.

4. The method according to claim 2, characterized in that: Obtaining a first key according to the target password information, the terminal number and the first preset value includes: Obtaining a plurality of first key factors according to the target password information and a first preset value; Processing the terminal number to obtain a plurality of second key factors; The multiple first key factors and the multiple second key factors are concatenated to obtain the first key.

5. The method according to claim 1, characterized in that According to the target QR code, the initial electronic payment device is functionally configured to obtain a target electronic payment device including: Obtain target password information of the management terminal corresponding to the initial electronic payment device; Decrypting the data corresponding to the target QR code according to the target password information and the terminal number to obtain decrypted configuration information; The initial electronic payment device is functionally configured according to the decrypted configuration information to obtain the target electronic payment device.

6. The method according to claim 5, characterized in that According to the target password information and the terminal number, The data corresponding to the target two-dimensional code is decrypted, and the decrypted configuration information obtained includes: Obtaining a second key according to the target password information, the terminal number and a second preset value; Decrypting the data corresponding to the target two-dimensional code according to the second key to obtain decrypted target data and a decrypted message authentication code; Verifying the decrypted message authentication code to obtain a verification result; When the verification result indicates that the verification is passed, the decrypted configuration information is obtained based on the decrypted target data.

7. The method according to claim 6, characterized in that The decrypted message authentication code is verified, and the verification result obtained includes: Obtaining a first key according to the target password information, the terminal number and a first preset value; Encrypt the decrypted target data using the first key to obtain a third ciphertext; Determining a second message authentication code based on the third ciphertext; The decrypted message authentication code is verified according to the second message authentication code to obtain the verification result.

8. A configuration device for an electronic payment device, characterized in that: include: An acquisition unit, used to acquire a terminal number of an initial electronic payment device to be configured and to determine configuration information of functions to be configured for the initial electronic payment device; A generating unit, configured to generate a target QR code according to the terminal number and the configuration information; A configuration unit is used to perform functional configuration on the initial electronic payment device according to the target two-dimensional code to obtain a target electronic payment device.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is executed, the device where the computer-readable storage medium is located is controlled to execute the configuration method of the electronic payment device according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 7 when running.