Data processing method, electronic equipment and related products

By introducing the configuration center intermediary in database access and using the preset configuration center address and login information to connect to the database, the problem of database private data being stolen is solved and higher security is achieved.

CN112507378BActive Publication Date: 2024-10-15GUANGDONG RONGWEN ENERGY SCI & TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011423695.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-08
Publication Date
2024-10-15
Estimated Expiration
2040-12-08

AI Technical Summary

Technical Problem

In the existing technology, the private data of the database is easily stolen when the code is intruded and viewed, resulting in insufficient security. How to improve the security of the database is an urgent problem that needs to be solved.

Method used

By obtaining the preset configuration center address when the target code is running, connecting to the configuration center based on this address, obtaining the target login information through the configuration center, and then connecting to the target database, ensuring that only code passing through the configuration center can access the database, thereby preventing illegal users from direct access database.

Benefits of technology

It effectively improves the access security of the database and prevents illegal users from directly accessing the database even if they invade and view the code, ensuring the security of the database content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112507378B_ABST
    Figure CN112507378B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method, an electronic device and a related product, which are applied to an electronic device, and the method comprises: when a target code is running, obtaining a preset configuration center address; connecting to a corresponding configuration center based on the preset configuration center address; obtaining target login information through the configuration center; connecting to a corresponding target database based on the target login information to access the target database. The embodiment of the present application can ensure the security of database access.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, electronic equipment and related products. Background Art

[0002] At present, the direct connection method of using code to connect to the database is prone to theft of private data in the database (database links, data structures, etc.) when the code is hacked and viewed, causing losses. Therefore, the problem of how to improve database security needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a data processing method and related products, which can improve the security of the database.

[0004] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to an electronic device, and the method includes:

[0005] When the target code is running, obtain the address of the preset configuration center;

[0006] Connecting to a corresponding configuration center based on the preset configuration center address;

[0007] Obtain target login information through the configuration center;

[0008] A corresponding target database is connected based on the target login information to access the target database.

[0009] In a second aspect, an embodiment of the present application provides a data processing device, which is applied to an electronic device, and the device includes: an acquisition unit, a connection unit, a login unit, and an access unit, wherein:

[0010] The acquisition unit is used to acquire the preset configuration center address when the target code is running;

[0011] The connecting unit is used to connect to the corresponding configuration center based on the preset configuration center address;

[0012] The login unit is used to obtain target login information through the configuration center;

[0013] The access unit is used to connect to the corresponding target database based on the target login information to access the target database.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in the first aspect of the embodiment of the present application.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application. The computer program product may be a software installation package.

[0017] The implementation of the embodiments of the present application has the following beneficial effects:

[0018] It can be seen that the data processing method, electronic device and related products described in the embodiments of the present application are applied to electronic devices. When the target code is running, the preset configuration center address is obtained, and the corresponding configuration center is connected based on the preset configuration center address. The target login information is obtained through the configuration center, and the corresponding target database is connected based on the target login information to achieve access to the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that only the code but not the configuration center is connected. It is impossible to obtain the content of the database. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1A It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0021] Figure 1B It is a flowchart of a data processing method provided in an embodiment of the present application;

[0022] Figure 2 It is a flowchart of another data processing method provided in an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application;

[0024] Figure 4 It is a block diagram of the functional units of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0026] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0027] 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 are within the scope of protection of this application.

[0028] The electronic devices involved in the embodiments of the present application may include various handheld devices with communication functions, intelligent robots, intelligent headphones, intelligent dictionaries, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (UE), mobile stations (MS), terminal devices, etc. The electronic devices may also be servers or smart home devices.

[0029] In the embodiments of the present application, the smart home device may be at least one of the following: a refrigerator, a washing machine, an electric rice cooker, smart curtains, smart lights, a smart bed, a smart trash can, a microwave oven, an oven, a steamer, an air conditioner, a range hood, a server, a smart door, a smart window, a window door wardrobe, a smart speaker, a smart home, a smart chair, a smart clothes rack, a smart shower, a water dispenser, a water purifier, an air purifier, a doorbell, a monitoring system, a smart garage, a television, a projector, a smart dining table, a smart sofa, a massage chair, a treadmill, etc., and of course, other devices may also be included.

[0030] like Figure 1A As shown, Figure 1A 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a processor, a memory, a signal processor, a transceiver, a display screen, a speaker, a microphone, a random access memory (RAM), a camera, a sensor, and a network module, etc. Among them, the memory, DSP, speaker, microphone, RAM, camera, sensor, and network module are connected to the processor, and the transceiver is connected to the signal processor.

[0031] Among them, the processor is the control center of the electronic device, which uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory and calling data stored in the memory, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor can be a central processing unit (CPU), a graphics processing unit (GPU) or a network processor (NPU).

[0032] Furthermore, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor.

[0033] The memory is used to store software programs and / or modules, and the processor executes various functional applications and data processing of the electronic device by running the software programs and / or modules stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a software program required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0034] The sensor includes at least one of the following: a light sensor, a gyroscope, an infrared proximity sensor, a vibration detection sensor, a pressure sensor, and the like. The light sensor, also known as an ambient light sensor, is used to detect the brightness of ambient light. The light sensor may include a photosensitive element and an analog-to-digital converter. The photosensitive element is used to convert the collected light signal into an electrical signal, and the analog-to-digital converter is used to convert the electrical signal into a digital signal. Optionally, the light sensor may further include a signal amplifier, which may amplify the electrical signal converted by the photosensitive element and output it to the analog-to-digital converter. The photosensitive element may include at least one of a photodiode, a phototransistor, a photoresistor, and a silicon photocell.

[0035] The camera may be a visible light camera (a normal viewing angle camera, a wide-angle camera), an infrared camera, or a dual camera (with a ranging function), which is not limited here.

[0036] The network module may be at least one of the following: a Bluetooth module, wireless fidelity (Wi-Fi), etc., which is not limited here.

[0037] Based on the above Figure 1A The electronic device described can execute the following data processing method, and the specific steps are as follows:

[0038] When the target code is running, obtain the address of the preset configuration center;

[0039] Connecting to a corresponding configuration center based on the preset configuration center address;

[0040] Obtain target login information through the configuration center;

[0041] A corresponding target database is connected based on the target login information to access the target database.

[0042] It can be seen that the electronic device described in the embodiment of the present application obtains a preset configuration center address when the target code is running, connects to the corresponding configuration center based on the preset configuration center address, obtains the target login information through the configuration center, and connects to the corresponding target database based on the target login information to access the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that the content of the database cannot be obtained if there is only code but no connection to the configuration center. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access.

[0043] See also Figure 1B , Figure 1B is a flow chart of a data processing method provided by an embodiment of the present application, as shown in the figure, which is applied to Figure 1A The electronic device shown in the figure, the data processing method includes:

[0044] 101. When the target code is running, obtain the preset configuration center address.

[0045] In the embodiment of the present application, the target code can be used to implement a database access function. The electronic device can parse the target code when the target code is running to obtain the preset configuration center address, or the electronic device can directly obtain the preset configuration center address from the local storage space when the target code is detected to be running. The preset configuration center address can be pre-stored in the electronic device, or can also be pre-carried in the target code.

[0046] Optionally, the above step 101, obtaining the preset configuration center address, may include the following steps:

[0047] 11. Parse the target code to obtain target keywords;

[0048] 12. Determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier;

[0049] 13. Determine the preset configuration center address corresponding to the target configuration center identifier according to the mapping relationship between the preset configuration center identifier and the configuration center address.

[0050] Among them, the electronic device can pre-store the mapping relationship between the preset keywords and the configuration center identifier and the mapping relationship between the preset configuration center identifier and the configuration center address. The configuration center identifier can be used to identify the name or location of the configuration center. The configuration center identifier can be at least one of the following: name, location, number, etc., which is not limited here.

[0051] In a specific implementation, the electronic device can parse the target code to obtain the target keyword, and then determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier, and determine the preset configuration center address corresponding to the target configuration center identifier according to the mapping relationship between the preset configuration center identifier and the configuration center address. In this way, the corresponding configuration center address can be obtained from the code.

[0052] Optionally, when the target keyword includes multiple keywords, the above 11, parsing the target code to obtain the target keyword, may include the following steps:

[0053] 111. Parse the target code to obtain multiple keywords;

[0054] 112. Determine the importance of each keyword in the multiple keywords to obtain multiple importances;

[0055] 113. Determine a maximum value among the multiple importances, and obtain the target keyword corresponding to the maximum value.

[0056] Among them, different keywords may correspond to different importances, and the electronic device may pre-store a mapping relationship between keywords and importances, and the higher the importance, the higher the importance. Furthermore, the electronic device may determine the importance of each keyword among the multiple keywords, obtain multiple importances, and may also determine the maximum value among the multiple importances, and obtain the target keyword corresponding to the maximum value.

[0057] Further, optionally, the above step 112, determining the importance of each keyword in the multiple keywords to obtain multiple importances, may include the following steps:

[0058] 1121. Determine a target position of a keyword k in the target code and a reference importance level of the keyword k, where the keyword k is any one of the multiple keywords;

[0059] 1122. Determine the reference importance corresponding to the reference importance level according to a preset mapping relationship between the importance level and the importance level;

[0060] 1123. Determine a target first optimization parameter corresponding to the target position according to a mapping relationship between a preset position and a first optimization parameter;

[0061] 1124. Obtain the number of keywords of the multiple keywords;

[0062] 1125. Determine a target occurrence frequency of the keyword k according to the number of keywords;

[0063] 1126. When the target occurrence frequency is greater than a preset threshold, determine the target second optimization parameter corresponding to the target occurrence frequency according to a preset mapping relationship between the occurrence frequency and the second optimization parameter;

[0064] 1127. Adjust the reference importance according to the target first optimization parameter and the target second optimization parameter to obtain the importance of the keyword k.

[0065] The preset threshold value may be set by the user or by system default, and may be an empirical value. The electronic device may pre-store a mapping relationship between a preset importance level and importance, and a mapping relationship between a preset position and a first optimization parameter.

[0066] In a specific implementation, taking keyword k as an example, keyword k is any keyword among multiple keywords. The electronic device can determine the target position of keyword k in the target code and the reference importance level of keyword k, and determine the reference importance corresponding to the reference importance level according to the mapping relationship between the preset importance level and the importance, and determine the target first optimization parameter corresponding to the target position according to the mapping relationship between the preset position and the first optimization parameter. The value range of the first optimization parameter can be -1 to 1. For example, the first optimization parameter can be -0.08 to 0.08.

[0067] Furthermore, since keywords may appear repeatedly, the electronic device can obtain the keyword quantity of multiple keywords, and determine the target occurrence frequency of keyword k based on the keyword quantity, and can determine the target second optimization parameter corresponding to the target occurrence frequency according to the mapping relationship between the preset occurrence frequency and the second optimization parameter. The value range of the second optimization parameter can be -1 to 1. For example, the second optimization parameter can be -0.052 to 0.052, and the reference importance is adjusted according to the target first optimization parameter and the target second optimization parameter to obtain the importance of keyword k. The specific calculation formula is as follows:

[0068] Importance of keyword k = reference importance of keyword k * (1 + target first optimization parameter) * (1 + target second optimization parameter)

[0069] Furthermore, the importance of the keyword can be accurately determined based on the location and frequency of occurrence of the keyword, which helps to accurately obtain the preset configuration center address later.

[0070] 102. Connect to a corresponding configuration center based on the preset configuration center address.

[0071] Among them, different configuration center addresses may correspond to different configuration centers, and the configuration center may be a software module in the electronic device, or may also be a cloud server. The electronic device may connect to the corresponding configuration center based on the preset configuration center address, and the configuration center may pre-store login information, which is used to access the corresponding database.

[0072] 103. Obtain target login information through the configuration center.

[0073] In the embodiment of the present application, the login information may be at least one of the following: user name, password, secret key, etc., which are not limited here. The configuration center may pre-store login information of at least one database.

[0074] Optionally, the above step 103, obtaining the target login information through the configuration center, may include the following steps:

[0075] A31. Obtain target user identity information corresponding to the target code;

[0076] A32. Determine the target login information identifier corresponding to the target identity information according to the preset mapping relationship between the identity information and the login information identifier;

[0077] A33. Based on the target login information identifier, obtain the target login information through the configuration center.

[0078] In the embodiment of the present application, the identity information may be at least one of the following: a fingerprint image, a face image, an iris image, a vein image, a character string, a MAC address, an IP address, etc., which are not limited here. The electronic device may pre-store a mapping relationship between preset identity information and a login information identifier. The login information identifier may identify a storage address or storage method of the login information.

[0079] In a specific implementation, the electronic device can obtain the target user identity information corresponding to the target code, and then, according to the mapping relationship between the preset identity information and the login information identifier, determine the target login information identifier corresponding to the target identity information. Then, the electronic device can obtain the target login information through the configuration center based on the target login information identifier.

[0080] Optionally, the above step 103, obtaining the target login information through the configuration center, may include the following steps:

[0081] B31. Sending a login information acquisition request to the configuration center, and the configuration center responds to the login information acquisition request and sends first information to the electronic device;

[0082] B32, receiving the first information;

[0083] B33, obtaining second information;

[0084] B34. Compare the first information with the second information;

[0085] B35. When the first information is successfully compared with the second information, decrypt the second information to obtain a login information storage address identifier carried in the second information;

[0086] B36. Obtain the target login information from the configuration center according to the login information storage address identifier.

[0087] The first information may be information to be verified, and the first information may be at least one of the following: a fingerprint image, a face image, an iris image, a vein image, a character string, a MAC address, an IP address, etc., which are not limited here. The second information may be at least one of the following: a fingerprint image, a face image, an iris image, a vein image, a character string, a MAC address, an IP address, etc., which are not limited here.

[0088] In a specific implementation, the electronic device can send a login information acquisition request to the configuration center, and the configuration center responds to the login information acquisition request by sending the first information to the electronic device. The electronic device can then receive the first information and obtain the second information, and compare the first information with the second information. When the comparison between the first information and the second information is successful, the second information is decrypted to obtain the login information storage address identifier carried in the second information. Then, the target login information can be obtained from the configuration center based on the login information storage address identifier. Conversely, when the comparison between the first information and the second information fails, the second information needs to be re-acquired to perform information verification again. In this way, security can be improved.

[0089] Further, optionally, when the second information includes a fingerprint template and the first information is a fingerprint image, the above step B34, comparing the first information with the second information, may include the following steps:

[0090] B341. Obtaining the target importance level corresponding to the target database;

[0091] B342. Determine a first fingerprint recognition threshold corresponding to the target importance level according to a mapping relationship between a preset importance level and a reference fingerprint recognition threshold;

[0092] B343, obtain target environment parameters;

[0093] B344. Determine a first target adjustment coefficient corresponding to the target environmental parameter according to a mapping relationship between a preset environmental parameter and the first adjustment coefficient;

[0094] B345, dividing the fingerprint image into multiple regions, determining the distribution density of feature points in each of the multiple regions, and obtaining multiple feature point distribution densities;

[0095] B346. Determine a target mean square error according to the distribution density of the plurality of feature points;

[0096] B347. Determine a target second adjustment coefficient corresponding to the target mean square error according to a preset mapping relationship between the mean square error and the second adjustment coefficient;

[0097] B348. Adjust the first fingerprint recognition threshold according to the first target adjustment coefficient and the second target adjustment coefficient to obtain a second fingerprint recognition threshold;

[0098] B349, matching the fingerprint image with the fingerprint template;

[0099] B350: When the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, determine that the first information is successfully compared with the second information.

[0100] Among them, the electronic device can pre-store the mapping relationship between the preset importance level and the reference fingerprint recognition threshold, the mapping relationship between the preset environmental parameter and the first adjustment coefficient, and the mapping relationship between the preset mean square error and the second adjustment coefficient. In addition, in the embodiment of the present application, the environmental parameter can be at least one of the following: ambient brightness, ambient color temperature, ambient temperature, ambient humidity, magnetic field interference intensity, atmospheric pressure, geographical location, weather, etc., which are not limited here. The electronic device may include various sensors, which can be used to realize environmental parameter collection. The value range of the first adjustment coefficient can be -1 to 1, for example, the value range of the first adjustment coefficient is -0.142 to 0.142. The value range of the second adjustment coefficient can also be -1 to 1, for example, the value range of the second adjustment coefficient is -0.0913 to 0.0913.

[0101] In a specific implementation, different databases have different importances, that is, the mapping relationship between database identifiers and importance levels can be pre-stored, and then the electronic device can obtain the target database identifier of the target database, and the mapping relationship determines the target importance level corresponding to the target database.

[0102] Furthermore, the electronic device can determine the first fingerprint recognition threshold corresponding to the target importance level according to the mapping relationship between the preset importance level and the reference fingerprint recognition threshold. The reference fingerprint recognition threshold can be set in advance. Different importance levels have different corresponding reference fingerprint recognition thresholds. The higher the importance level, the larger the corresponding reference fingerprint recognition threshold. Under normal circumstances, if the fingerprint matching value is greater than the reference fingerprint recognition threshold, it means that the fingerprint recognition is successful.

[0103] Furthermore, the electronic device may obtain the target environment parameter, and determine the first target adjustment coefficient corresponding to the target environment parameter according to the mapping relationship between the preset environment parameter and the first adjustment coefficient. The electronic device may also divide the fingerprint image into multiple regions, each of which may be the same or different in size, determine the distribution density of feature points in each of the multiple regions, and obtain multiple feature point distribution densities. Specifically, feature point extraction may be performed on each of the multiple regions to determine the number of feature points in each region, and then the number of feature points and the area of ​​the region may be determined to obtain the feature point distribution density.

[0104] Furthermore, the electronic device can determine the target mean square error according to the mean square error calculation formula and the distribution density of multiple feature points. Furthermore, the electronic device can determine the target second adjustment coefficient corresponding to the target mean square error according to the mapping relationship between the preset mean square error and the second adjustment coefficient. Then, the electronic device can adjust the first fingerprint recognition threshold according to the first target adjustment coefficient and the second target adjustment coefficient to obtain the second fingerprint recognition threshold. The specific calculation formula is as follows:

[0105] Second fingerprint recognition threshold = first fingerprint recognition threshold * (1 + first target adjustment coefficient) * (1 + second target adjustment coefficient)

[0106] Furthermore, the electronic device can match the fingerprint image with the fingerprint template based on the second fingerprint recognition threshold, that is, when the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, it is determined that the first information and the second information are matched successfully; otherwise, it is determined that the first information and the second information are matched unsuccessfully. In this way, the fingerprint recognition threshold can be dynamically adjusted according to the importance, environment, and image quality of the database, which helps to improve the fingerprint recognition efficiency while ensuring the security of the database.

[0107] 104. Connect to a corresponding target database based on the target login information to access the target database.

[0108] In a specific implementation, the electronic device can connect to the target database corresponding to the target code based on the target login information, and then access the target database, thereby ensuring the security of database access.

[0109] It can be seen that the data processing method described in the embodiment of the present application is applied to an electronic device. When the target code is running, the preset configuration center address is obtained, and the corresponding configuration center is connected based on the preset configuration center address. The target login information is obtained through the configuration center, and the corresponding target database is connected based on the target login information to achieve access to the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that only the code but not the configuration center cannot obtain the content of the database. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access.

[0110] With the above Figure 1B For the embodiments shown, please refer to Figure 2 , Figure 2 is a flow chart of a data processing method provided by an embodiment of the present application, which is applied to Figure 1A The electronic device shown in the figure, the data processing method includes:

[0111] 201. When the target code is running, obtain a user source identifier of the target code.

[0112] The user source identifier is used to mark the source of the user, and the user source identifier can be at least one of the following: MAC address, IP address, geographic area, etc., which are not limited here.

[0113] 202. When the user source identifier is a preset identifier, obtain a preset configuration center address.

[0114] The preset identifier may be set by the user or by the system by default, and the preset identifier may be pre-stored in the electronic device.

[0115] 203. Connect to a corresponding configuration center based on the preset configuration center address.

[0116] 204. Obtain target login information through the configuration center.

[0117] 205. Connect to a corresponding target database based on the target login information to access the target database.

[0118] The specific description of the above steps 203 to 205 can refer to the above Figure 1B The corresponding steps of the described data processing method will not be repeated here.

[0119] It can be seen that the data processing method described in the embodiment of the present application is applied to an electronic device. When the target code is running, the user source identifier of the target code is obtained. When the user source identifier is a preset identifier, the preset configuration center address is obtained, and the corresponding configuration center is connected based on the preset configuration center address. The target login information is obtained through the configuration center, and the corresponding target database is connected based on the target login information to access the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that only the code but not the configuration center is connected. It is impossible to obtain the content of the database. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access.

[0120] In accordance with the above embodiment, please refer to Figure 3 , Figure 3 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for executing the following steps:

[0121] When the target code is running, obtain the address of the preset configuration center;

[0122] Connecting to a corresponding configuration center based on the preset configuration center address;

[0123] Obtain target login information through the configuration center;

[0124] A corresponding target database is connected based on the target login information to access the target database.

[0125] It can be seen that the electronic device described in the embodiment of the present application obtains a preset configuration center address when the target code is running, connects to the corresponding configuration center based on the preset configuration center address, obtains the target login information through the configuration center, and connects to the corresponding target database based on the target login information to access the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that the content of the database cannot be obtained if there is only code but no connection to the configuration center. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access.

[0126] Optionally, in the aspect of obtaining the preset configuration center address, the above program includes instructions for executing the following steps:

[0127] Parsing the target code to obtain target keywords;

[0128] Determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier;

[0129] According to the mapping relationship between the preset configuration center identifier and the configuration center address, the preset configuration center address corresponding to the target configuration center identifier is determined.

[0130] Optionally, in the aspect of acquiring the target login information through the configuration center, the program includes instructions for performing the following steps:

[0131] Obtaining target user identity information corresponding to the target code;

[0132] Determine the target login information identifier corresponding to the target identity information according to the preset mapping relationship between the identity information and the login information identifier;

[0133] Based on the target login information identifier, the target login information is obtained through the configuration center.

[0134] Optionally, in the aspect of acquiring the target login information through the configuration center, the program includes instructions for performing the following steps:

[0135] Sending a login information acquisition request to the configuration center, and the configuration center responding to the login information acquisition request and sending first information to the electronic device;

[0136] receiving the first information;

[0137] obtaining second information;

[0138] comparing the first information with the second information;

[0139] When the first information is successfully compared with the second information, a decryption operation is performed on the second information to obtain a login information storage address identifier carried in the second information;

[0140] The target login information is obtained from the configuration center according to the login information storage address identifier.

[0141] Optionally, when the second information includes a fingerprint template and the first information is a fingerprint image, in comparing the first information with the second information, the program includes instructions for performing the following steps:

[0142] Obtaining a target importance level corresponding to the target database;

[0143] Determine a first fingerprint recognition threshold corresponding to the target importance level according to a mapping relationship between a preset importance level and a reference fingerprint recognition threshold;

[0144] Get target environment parameters;

[0145] Determine a first target adjustment coefficient corresponding to the target environmental parameter according to a mapping relationship between a preset environmental parameter and a first adjustment coefficient;

[0146] Dividing the fingerprint image into multiple regions, determining the distribution density of feature points in each of the multiple regions, and obtaining multiple feature point distribution densities;

[0147] Determining a target mean square error according to the distribution density of the plurality of feature points;

[0148] Determine the target second adjustment coefficient corresponding to the target mean square error according to a preset mapping relationship between the mean square error and the second adjustment coefficient;

[0149] The first fingerprint recognition threshold is adjusted according to the first target adjustment coefficient and the second target adjustment coefficient to obtain a second fingerprint recognition threshold;

[0150] Matching the fingerprint image with the fingerprint template;

[0151] When the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, it is determined that the first information is successfully compared with the second information.

[0152] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should be easily aware that, in combination with the units and algorithm steps of each example described in the embodiment provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0153] The embodiment of the present application can divide the functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0154] Figure 4 4 is a functional unit block diagram of a data processing device 400 involved in an embodiment of the present application. The device 400 is applied to an electronic device. The device 400 includes: an acquisition unit 401, a connection unit 402, a login unit 403 and an access unit 404, wherein:

[0155] The acquisition unit 401 is used to acquire the preset configuration center address when the target code is running;

[0156] The connecting unit 402 is used to connect to the corresponding configuration center based on the preset configuration center address;

[0157] The login unit 403 is used to obtain target login information through the configuration center;

[0158] The access unit 404 is used to connect to the corresponding target database based on the target login information to access the target database.

[0159] It can be seen that the data processing device described in the embodiment of the present application is applied to an electronic device. When the target code is running, the preset configuration center address is obtained, and the corresponding configuration center is connected based on the preset configuration center address. The target login information is obtained through the configuration center, and the corresponding target database is connected based on the target login information to achieve access to the target database. In this way, when the code is running, it connects to the configuration center through the reserved configuration center address, and connects to the database through the login information of the configuration center, so that only the code but not the configuration center is connected. It is impossible to obtain the content of the database. Furthermore, even if an illegal user invades to view the code, he cannot directly access the database, thereby ensuring the security of database access.

[0160] Optionally, in the aspect of acquiring the preset configuration center address, the acquiring unit 401 is specifically used to:

[0161] Parsing the target code to obtain target keywords;

[0162] Determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier;

[0163] According to the mapping relationship between the preset configuration center identifier and the configuration center address, the preset configuration center address corresponding to the target configuration center identifier is determined.

[0164] Optionally, in the aspect of acquiring target login information through the configuration center, the login unit 403 is specifically used to:

[0165] Obtaining target user identity information corresponding to the target code;

[0166] Determine the target login information identifier corresponding to the target identity information according to the preset mapping relationship between the identity information and the login information identifier;

[0167] Based on the target login information identifier, the target login information is obtained through the configuration center.

[0168] Optionally, in the aspect of acquiring target login information through the configuration center, the login unit 403 is specifically used to:

[0169] Sending a login information acquisition request to the configuration center, and the configuration center responding to the login information acquisition request and sending first information to the electronic device;

[0170] receiving the first information;

[0171] obtaining second information;

[0172] comparing the first information with the second information;

[0173] When the first information is successfully compared with the second information, a decryption operation is performed on the second information to obtain a login information storage address identifier carried in the second information;

[0174] The target login information is obtained from the configuration center according to the login information storage address identifier.

[0175] Further, optionally, when the second information includes a fingerprint template and the first information is a fingerprint image, in comparing the first information with the second information, the login unit 403 is specifically used to:

[0176] Obtaining a target importance level corresponding to the target database;

[0177] Determine a first fingerprint recognition threshold corresponding to the target importance level according to a mapping relationship between a preset importance level and a reference fingerprint recognition threshold;

[0178] Get target environment parameters;

[0179] Determine a first target adjustment coefficient corresponding to the target environmental parameter according to a mapping relationship between a preset environmental parameter and a first adjustment coefficient;

[0180] Dividing the fingerprint image into multiple regions, determining the distribution density of feature points in each of the multiple regions, and obtaining multiple feature point distribution densities;

[0181] Determining a target mean square error according to the distribution density of the plurality of feature points;

[0182] Determine the target second adjustment coefficient corresponding to the target mean square error according to a preset mapping relationship between the mean square error and the second adjustment coefficient;

[0183] The first fingerprint recognition threshold is adjusted according to the first target adjustment coefficient and the second target adjustment coefficient to obtain a second fingerprint recognition threshold;

[0184] Matching the fingerprint image with the fingerprint template;

[0185] When the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, it is determined that the first information is successfully compared with the second information.

[0186] It can be understood that the functions of each program module of the data processing device of this embodiment can be specifically implemented according to the method in the above method embodiment, and its specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.

[0187] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method recorded in the above method embodiments, and the above computer includes a control platform.

[0188] The present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes a control platform.

[0189] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0190] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0191] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as 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, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0192] The units described above 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.

[0193] 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.

[0194] If the above-mentioned 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 memory. Based on this understanding, the technical solution of the present application is essentially 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 memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0195] A person skilled 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 related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.

[0196] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data processing method, characterized in that: Applied to electronic equipment, the method comprises: When the target code is running, obtain the address of the preset configuration center; Connecting to a corresponding configuration center based on the preset configuration center address; Obtain target login information through the configuration center; Connecting to a corresponding target database based on the target login information to access the target database; Wherein, obtaining target login information through the configuration center includes: Sending a login information acquisition request to the configuration center, and the configuration center responding to the login information acquisition request and sending first information to the electronic device; receiving the first information; obtaining second information; comparing the first information with the second information; When the first information is successfully compared with the second information, a decryption operation is performed on the second information to obtain a login information storage address identifier carried in the second information; Acquire the target login information from the configuration center according to the login information storage address identifier; Wherein, when the second information includes a fingerprint template and the first information is a fingerprint image, comparing the first information with the second information includes: Obtaining a target importance level corresponding to the target database; Determine a first fingerprint recognition threshold corresponding to the target importance level according to a mapping relationship between a preset importance level and a reference fingerprint recognition threshold; Get target environment parameters; Determine a first target adjustment coefficient corresponding to the target environmental parameter according to a mapping relationship between a preset environmental parameter and a first adjustment coefficient; Dividing the fingerprint image into multiple regions, determining the distribution density of feature points in each of the multiple regions, and obtaining multiple feature point distribution densities; Determining a target mean square error according to the distribution density of the plurality of feature points; Determine the second target adjustment coefficient corresponding to the target mean square error according to a preset mapping relationship between the mean square error and the second adjustment coefficient; The first fingerprint recognition threshold is adjusted according to the first target adjustment coefficient and the second target adjustment coefficient to obtain a second fingerprint recognition threshold; Matching the fingerprint image with the fingerprint template; When the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, it is determined that the first information is successfully compared with the second information.

2. The method according to claim 1, characterized in that The step of obtaining the preset configuration center address includes: Parsing the target code to obtain target keywords; Determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier; According to the mapping relationship between the preset configuration center identifier and the configuration center address, the preset configuration center address corresponding to the target configuration center identifier is determined.

3. A data processing device, characterized in that: Applied to electronic equipment, the device comprises: an acquisition unit, a connection unit, a login unit and an access unit, wherein: The acquisition unit is used to acquire the preset configuration center address when the target code is running; The connecting unit is used to connect to the corresponding configuration center based on the preset configuration center address; The login unit is used to obtain target login information through the configuration center; The access unit is used to connect to the corresponding target database based on the target login information to access the target database; Wherein, obtaining target login information through the configuration center includes: Sending a login information acquisition request to the configuration center, and the configuration center responding to the login information acquisition request and sending first information to the electronic device; receiving the first information; obtaining second information; comparing the first information with the second information; When the first information is successfully compared with the second information, a decryption operation is performed on the second information to obtain a login information storage address identifier carried in the second information; Acquire the target login information from the configuration center according to the login information storage address identifier; Wherein, when the second information includes a fingerprint template and the first information is a fingerprint image, comparing the first information with the second information includes: Obtaining a target importance level corresponding to the target database; Determine a first fingerprint recognition threshold corresponding to the target importance level according to a mapping relationship between a preset importance level and a reference fingerprint recognition threshold; Get target environment parameters; Determine a first target adjustment coefficient corresponding to the target environmental parameter according to a mapping relationship between a preset environmental parameter and a first adjustment coefficient; Dividing the fingerprint image into multiple regions, determining the distribution density of feature points in each of the multiple regions, and obtaining multiple feature point distribution densities; Determining a target mean square error according to the distribution density of the plurality of feature points; Determine the second target adjustment coefficient corresponding to the target mean square error according to a preset mapping relationship between the mean square error and the second adjustment coefficient; The first fingerprint recognition threshold is adjusted according to the first target adjustment coefficient and the second target adjustment coefficient to obtain a second fingerprint recognition threshold; Matching the fingerprint image with the fingerprint template; When the matching value between the fingerprint image and the fingerprint template is greater than the second fingerprint recognition threshold, it is determined that the first information is successfully compared with the second information.

4. The device according to claim 3, characterized in that In terms of obtaining the preset configuration center address, the obtaining unit is specifically used to: Parsing the target code to obtain target keywords; Determine the target configuration center identifier corresponding to the target keyword according to the mapping relationship between the preset keyword and the configuration center identifier; According to the mapping relationship between the preset configuration center identifier and the configuration center address, the preset configuration center address corresponding to the target configuration center identifier is determined.

5. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store one or more programs and is configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method according to claim 1 or 2.

6. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method according to claim 1 or 2.