Data processing method and apparatus, device, medium, and program product

By using a root key to encrypt and decrypt the business key in the terminal device and running it separately in the encryption protection system, the universality and security issues of biometric authentication information verification in the terminal device are solved, and secure data processing in different scenarios is realized.

WO2024260239A1PCT designated stage expired Publication Date: 2024-12-26TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Application Number
PCT/CN2024/096736
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-06-19
Filing Date
2024-05-31
Publication Date
2024-12-26

AI Technical Summary

Technical Problem

Existing technologies require frequent updates to the application framework layer interface when verifying biometric authentication information on terminal devices, resulting in non-universal solutions and low security.

Method used

By using a pre-stored root key to encrypt and decrypt the business key, and by utilizing an encryption protection system that runs independently on the terminal device, the security of the business key is ensured. Furthermore, the business key is dynamically generated on the backend server, avoiding interaction with different backend servers.

Benefits of technology

It enables universal and secure business data processing in different scenarios, improving the security of business data during transmission and the security of key storage and retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024096736_26122024_PF_FP_ABST
    Figure CN2024096736_26122024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data processing method and apparatus, a device, and a storage medium, which are used for securely and universally realizing service data processing. The method comprises: obtaining service data of a target service; obtaining an encrypted key of the target service from a key management library, wherein the encrypted key is generated by a background server of the target service using a pre-stored first root key to encrypt a service key generated by the background server; calling an encryption protection system and using a pre-stored second root key to decrypt the encrypted key to obtain the service key, wherein the first root key and the second root key are a set of symmetric keys; encrypting the service data by means of the service key to obtain intermediate data; sending the intermediate data to the background server; and receiving an execution result of the target service, wherein the execution result is obtained by the background server executing the target service on the basis of the service data obtained by decrypting the intermediate data by using the service key. The technical solution provided by the present application can be applied to the fields of information security, big data, cloud technology, block chains and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Data processing method, device, equipment, medium and program product

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on June 19, 2023, with application number 2023107321727 and application name “A data processing method, device, equipment and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present invention relates to the field of computer technology, and in particular to data processing. Background Art

[0003] Currently, when users use third-party applications on mobile phones, computers, and other terminal devices to make payments or access private files or applications, they often need to use security authentication technology to verify biometric information such as face and fingerprint to verify the user's identity. Typically, the third-party application client can send the biometric authentication information to the corresponding application server for verification. After the application server verifies the legitimacy, it can enable functions such as payment and opening private files or applications.

[0004] At present, in order to improve the security of biometric authentication information, the trusted application (TA) in the secure area (Trusted Execution Environment, TEE) of the terminal device can sign the biometric authentication information obtained by the third-party application, and then verify the information through the application server corresponding to the third-party application. When the third-party application interacts with the trusted application for data, it usually needs to go through the application framework layer interface in the terminal system. This requires the third-party application to define the interface function of the application framework layer so that the new interface can be redefined to execute the corresponding algorithm to call the hardware abstraction layer, and then access the TA in the TEE. However, the above solution requires frequent updates of the application framework layer in the system, that is, device adaptation is required at the hardware level, making the solution not universal.

[0005] Therefore, there is an urgent need for a universal and secure business data processing method.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a data processing method, apparatus, device, and storage medium for securely and universally implementing business data processing.

[0008] In view of this, on the one hand, the present application provides a data processing method, including: obtaining business data corresponding to a target business; obtaining an encryption key corresponding to the target business, the encryption key is generated by the background server of the target business using a pre-stored first root key to encrypt the business key, and the business key is dynamically generated by the background server; calling a pre-stored second root key to decrypt the encryption key to obtain the business key, the first root key and the second root key are a set of symmetric keys; using the business key to encrypt the business data to obtain intermediate data; sending the intermediate data to the background server; receiving the execution result of the target business, the execution result is obtained by the background server executing the target business according to the business data, and the business data is obtained by the background server decrypting the intermediate data using the business key.

[0009] Another aspect of the present application provides a data processing device, comprising:

[0010] The acquisition module is used to obtain the business data corresponding to the target business;

[0011] The processing module is configured to obtain an encryption key corresponding to the target service, where the encryption key is generated by encrypting a service key using a pre-stored first root key by the backend server of the target service, where the service key is dynamically generated by the backend server; decrypt the encryption key using a pre-stored second root key to obtain the service key, where the first root key and the second root key form a symmetric key; and encrypt the service data using the service key to obtain intermediate data;

[0012] The transceiver module is used to send the intermediate data to the background server; receive the execution result of the target business, which is obtained by the background server executing the target business according to the business data, and the business data is obtained by the background server decrypting the intermediate data using the business key.

[0013] Another aspect of the present application provides a computer device, comprising: a memory, a processor, and a bus system;

[0014] Wherein, the memory is used to store programs;

[0015] The processor is configured to execute a computer program in the memory, and the processor is configured to perform the above-mentioned methods according to the computer program;

[0016] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

[0017] Another aspect of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.

[0018] Another aspect of the present application provides a computer program product comprising a computer program, which, when executed on a computer, enables the computer to execute the above method.

[0019] It can be seen from the above technical solution that the embodiment of the present application has the following advantages: the business key corresponding to the business data is encrypted and decrypted using the root key for transmission, and the business data is also encrypted and transmitted using the business key, which can ensure the security of the business data during transmission.

[0020] Furthermore, the encryption process for business keys is run independently within the encryption protection system, making the storage and access of business keys more secure. This encryption protection system does not require information exchange with the backend server, so there is no need to configure it for different backend servers, making the entire data processing process universal across various scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1a is a schematic diagram showing a comparison between the VMP solution in an embodiment of the present application and the prior art from an attacker's perspective;

[0022] FIG1b is a system diagram of the compilation process and operation process of the VMP solution in an embodiment of the present application;

[0023] FIG2a is a schematic diagram of an architecture of an application scenario of a data processing method in an embodiment of the present application;

[0024] FIG2 b is a schematic diagram of a system architecture of a data processing method according to an embodiment of the present application;

[0025] FIG3 is a schematic diagram of an embodiment of a data processing method in an embodiment of the present application;

[0026] FIG4 is a flow chart of an application scenario of the data processing method in an embodiment of the present application;

[0027] FIG5 is a schematic diagram of an embodiment of a data processing device according to an embodiment of the present application;

[0028] FIG6 is a schematic diagram of another embodiment of a data processing device according to an embodiment of the present application;

[0029] FIG7 is a schematic diagram of another embodiment of a data processing device in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The embodiments of the present application provide a data processing method, apparatus, device, and storage medium for securely and universally implementing business data processing.

[0031] The terms "first", "second", "third", "fourth", etc. (if any) 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 sequential order. It should be understood that the numbers used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "corresponding to" 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 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.

[0032] At present, when users use third-party applications in mobile phones, computers and other terminal devices to make payments, or open private files or applications in mobile phones, computers and other terminal devices, they often need to use security authentication technology to verify biometric authentication information such as face and fingerprint to verify the user's identity. In related technologies, it is necessary to frequently update the application framework layer in the system, that is, to adapt the device at the hardware level, making the solution not universal. Otherwise, the key of the biometric authentication information is written into the code or stored in the storage area of ​​the terminal device, but the security level of the key is low, which affects the security of the business data. Therefore, there is an urgent need for a universal and secure business data processing method.

[0033] To solve the above technical problems, the present application provides the following technical solution: obtaining business data corresponding to a target business; obtaining an encryption key corresponding to the target business from a key management library, where the encryption key is generated by encrypting a business key using a pre-stored first root key on the backend server of the target business, and the business key is dynamically generated by the backend server; invoking an encryption protection system to decrypt the encryption key using a pre-stored second root key to obtain the business key, where the first root key and the second root key form a symmetric key pair; encrypting the business data using the business key to obtain intermediate data; sending the intermediate data to the backend server; and receiving the execution result of the target business, where the execution result is obtained by the backend server executing the target business based on the business data, and the business data is obtained by decrypting the intermediate data using the business key. In this way, the business key corresponding to the business data is encrypted and decrypted using the root key for transmission, and the business data is also encrypted and transmitted using the business key, thereby ensuring the security of the business data during transmission. Furthermore, the encryption process of the business key is run separately within the encryption protection system, making the storage and retrieval of the business key more secure. The encryption protection system does not need to exchange information with the background server, so it does not need to be configured for different background servers, making the entire data processing process universal in various scenarios.

[0034] For ease of understanding, some of the terms used in this application are explained below:

[0035] White box: The attacker has complete control over the entire operation process and is fully visible to it. The attacker can freely observe the operation of the dynamic password, and the details of the internal algorithm are fully visible and can be changed at will.

[0036] Black box: In contrast to white box, it is assumed that the attacker has no actual access to the key (the algorithm that performs encryption or decryption) or any internal operations, and can only observe some external information or operations. This information includes plaintext (input) or ciphertext (output) within the system, and it is assumed that code execution and dynamic encryption cannot be observed.

[0037] Confusion: Confusion means making it difficult for people to understand, disrupting information, making it exist in a completely incomprehensible form, and making people unable to understand the intermediate process (that is, they can only see the input and output, but cannot understand how the output is obtained based on the input), but it does not affect the function of the information itself.

[0038] Key obfuscation solution: The key storage is written into the code, and through the code obfuscation OLLVM technology, using control flow flattening, function inlining, variable renaming, constant obfuscation, and code insertion, the program structure is made more complex and difficult to understand, thereby playing a role in protecting the key.

[0039] National Cryptography Library: This refers to a software library used to support cryptographic algorithms and protocols published by the State Cryptography Administration. It typically includes implementations of cryptographic algorithms such as symmetric encryption, asymmetric encryption, hashing, and digital signature algorithms, as well as corresponding key management and protocol implementations.

[0040] SM4: SM4 is a symmetric encryption algorithm, also known as SMS4, a block cipher proposed by Chinese cryptographers. The SM4 algorithm uses a 128-bit key and a 128-bit block length and can be used for data encryption and authentication.

[0041] White-box encryption: White-box encryption is a type of symmetric encryption, which refers to a special encryption method that can resist attacks in a white-box environment. The core idea is to confuse the symmetric key in the white-box logic, making it impossible to guess.

[0042] Low Level Virtual Machine (LLVM): An open-source compiler infrastructure that includes a set of modular compiler tools and libraries for building compilers, debuggers, static analysis tools, and more. LLVM has become an independent open-source project with widespread adoption and support.

[0043] OLLVM: Obfuscator-LLVM is an obfuscation solution based on the LLVM compiler. It can obfuscate C / C++ code, thereby increasing the complexity and difficulty of understanding the code and improving the security of the code.

[0044] TEE: Trusted Execution Environment. A TEE is a runtime environment that coexists with the device's Rich OS (usually Android, etc.) and provides security services to the Rich OS. It has its own execution space and offers a higher level of security than the Rich OS.

[0045] Secure Element (SE): This is independent security hardware. Since it is a completely independent security hardware chip, its security strength is higher than TEE.

[0046] JAVA layer and Native layer: The Android JAVA layer refers to the JAVA code running based on the virtual machine, while the Android Native layer refers to the C / C++ code running based on the local code.

[0047] Key-based encryption: Key-based encryption is an encryption method in which both the sender and receiver use the same or a symmetric key to encrypt plaintext. This encryption service is designed to ensure secure network transmission in open environments. This application covers various encryption steps, differing primarily in the keys used.

[0048] For example, the two key encryptions, namely, using the first root key to encrypt the business key to generate the encryption key, and using the business key to encrypt the business data to obtain the intermediate data, differ in that the first key encryption uses the first root key, while the second key encryption uses the business key.

[0049] Virtual Machine Protector (VMP): This converts part of the code in the protected file into a program (bytecode) running on a virtual machine (VM). The instruction code in the virtual machine is not public, increasing the difficulty of reverse engineering. From the attacker's perspective, its operating principle can be shown in Figure 1a. In the VMP solution, the C++ source code is recompiled using the VMP tool chain to generate the VMP instruction set, which is finally run in the VMP virtual machine. Compared to general assembly instruction set solutions, from the attacker's perspective, the VMP instruction set compiled by the VMP tool chain has no mapping relationship, making it impossible for the attacker to understand the VMP instruction set. At the same time, the attacker cannot debug the virtual machine environment and cannot obtain the corresponding attack parameters through debugging.

[0050] The operation flow chart of the VMP can be shown in Figure 1b. The core protection code is obtained by C++ compilation. The core protection code is first compiled into an intermediate binary file through the VMP compilation toolbox; then part of the code in the intermediate binary file is selected and recompiled to generate the core code virtual instructions of the core protection code, and a virtual machine environment is created at the same time, and anti-debugging and probe monitoring of the core protection code are performed in the virtual machine environment; then the above-mentioned virtual machine environment (that is, the encryption protection system of the present application) is deployed on the terminal device (the terminal device is used to execute the business code of the target business). When the terminal device runs the business code, the virtual machine environment in the native layer of the terminal device is called to execute the core code virtual instructions related to the business code.

[0051] The data processing method, device, equipment and storage medium provided in the embodiment of the present application can realize business data processing securely and universally. Referring to Figure 2a, Figure 2a is an optional architecture diagram of an application scenario of the data processing method provided in the embodiment of the present application. In order to support a data processing solution, the terminal device 100 is connected to the server 300 through the network 200, and the server 300 is connected to the database 400. The network 200 can be a wide area network or a local area network, or a combination of the two. The client for the user to implement the data processing solution is deployed on the terminal device 100, wherein the client can be run on the terminal device 100 in the form of a browser, or can be run on the terminal device 100 in the form of an independent application (application, APP), etc. The specific display form of the client is not limited here.

[0052] The server 300 involved in this application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal device 100 can be a smartphone, tablet computer, laptop computer, PDA, personal computer, smart TV, smart watch, vehicle-mounted device, wearable device, etc., but is not limited thereto.

[0053] The terminal device 100 and the server 300 can be directly or indirectly connected via the network 200 via wired or wireless communication, and this application does not impose any restrictions thereon. The number of servers 300 and terminal devices 100 is also not limited. The solution provided in this application can be completed independently by the terminal device 100, independently by the server 300, or in cooperation between the terminal device 100 and the server 300, and this application does not impose any specific restrictions thereon.

[0054] Database 400 can be simply thought of as an electronic filing cabinet—a place where electronic files are stored, where users can perform operations such as adding, querying, updating, and deleting data within the files. A "database" is a collection of data stored in a specific manner, shared by multiple users, with minimal redundancy, and independent of applications. A database management system (DBMS) is a computer software system designed to manage databases, generally providing basic functions such as storage, retrieval, security, and backup. Database management systems can be categorized based on the database model they support, such as relational or Extensible Markup Language (XML); the type of computers they support, such as server clusters or mobile phones; the query language used, such as Structured Query Language (SQL) or XQuery; performance priorities, such as maximum scale or maximum speed; or other classification methods. Regardless of the classification method used, some DBMSs are cross-category, for example, supporting multiple query languages ​​simultaneously. In the present application, the database 400 can be used to store keys and business data. Of course, the storage location of the keys and business data is not limited to the database. For example, they can also be stored in the distributed file system of the terminal device 100, blockchain or server 300, etc.

[0055] Based on the above description, the data processing method provided by this application is described below using the application scenario interaction system shown in FIG2b:

[0056] As shown in Figure 2b, this application scenario includes a terminal device (using a palm-swipe device as an example) and a backend server. A palmprint recognition app is deployed on the terminal device, and the backend server is used to perform the palmprint recognition process (also known as palm-swipe recognition). The JAVA layer of the terminal device performs the palmprint image acquisition and palmprint image encryption processes. The native layer of the terminal device is deployed with a key management library and a VMP virtual machine environment (i.e., the encryption protection system of the present application). The key management library can manage the business keys corresponding to the palmprint recognition service, and the VMP virtual machine environment is used to perform encryption and decryption of the business keys. The VMP virtual machine environment stores the root key corresponding to the palmprint recognition service. The backend server sends the business key to the terminal device via a transmission interface. The business key is derived from the root key stored by the backend server. At the same time, the terminal device sends the palmprint image encrypted according to the business key to the backend service. The backend server then uses the business key to decrypt the encrypted palmprint image to obtain the original palmprint image, and finally performs palmprint recognition on the original palmprint image to obtain the recognition result.

[0057] It is understandable that in the specific implementation of this application, when business data and other related data are involved, when the above embodiments of this application are applied to specific products or technologies, any one of them needs to obtain separate permission or consent from the user, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0058] In combination with the above introduction, the data processing method in this application will be introduced below. Please refer to Figure 3. An embodiment of the data processing method in the embodiment of this application includes:

[0059] 301. Obtain business data corresponding to the target business.

[0060] In this application, the terminal device obtains the service data corresponding to the target service in response to the triggering event of the target service.

[0061] In one exemplary scenario, the target service can be an identity recognition scenario. Identity recognition is the process of verifying whether a user's true identity matches their claimed identity. With the development of identity recognition technology, biometric-based identity recognition methods have become widely used. An identity recognition trigger event refers to an event that triggers identity recognition, which may include, but is not limited to, operations and instructions that trigger identity recognition. For example, in an access control system, an identity recognition event is triggered when a user needs to pass through the access control system; another example is when a user makes a payment at a payment terminal. Identity recognition can also be applied to anti-addiction systems. For example, in an online game anti-addiction system, if it is necessary to limit the online gaming time of minors, the game user's identity can be identified when the anti-addiction protection is triggered, such as when the game user's cumulative online gaming time reaches a preset time threshold. At this time, an identity recognition event is triggered to determine whether the game user is an adult or the game account owner, thereby limiting the online gaming time of minors. In a specific implementation, an identity recognition trigger event is an event that triggers identity recognition through biometrics. Biometrics are biometrics of a user's measurable body parts, such as hand shape, fingerprint, face shape, iris, retina, palm, and other types of biometrics. When identity recognition is performed through biometrics of a user's measurable body parts, it is necessary to collect biometric data for the user's body parts and extract biometrics from the collected biometric data, thereby performing identity recognition on the user based on the extracted biometrics. For example, if the identity recognition trigger event is to trigger identity recognition through face, the terminal needs to collect facial data for the user's face and perform identity recognition on the user based on the collected facial data, such as a facial image; for another example, if the identity recognition trigger event is to trigger identity recognition through palm, the terminal needs to collect palm data for the user's palm and perform identity recognition on the user based on the collected palm data.

[0062] In this process, the user corresponding to the target business refers to the user who needs to be identified, and specifically can be the user who triggers the identity identification event. For example, when a user passes through the access control system, the user can enter the data collection area of ​​the access control system. In the data collection area, when the access control system detects the presence of a user, it indicates that identity identification is required, and then identity identification is triggered. The access control system collects the biometric data of the target user in the data collection area, such as the target user's facial data, finger data, or palm data and other biometric data. The business data can be the biometric data corresponding to the target part of the user corresponding to the target business. In this case, the target part refers to the part of the human body corresponding to the biometric data that needs to be collected. The target part is related to the biometric data or biometric features involved in identity identification. For example, if identity identification is based on face, the corresponding target part is the face part of the target user that needs to be identified, and the collected biometric data (i.e., business data) is facial data, and the biometric features used for user identification are facial features. For example, if identity recognition is based on the palm, the corresponding target part is the palm of the target user who needs to be identified, and the collected biometric data (ie, business data) is palm data, and the biometric feature used for user identification is the palm feature.

[0063] It is understandable that the service data can be single biometric data or combined biometric data. At the same time, the service data can be complete biometric data or biometric data with partially hidden or deformed features.

[0064] The single biometric data may be a single type of biometric feature. For example, when the target part of the service data is a face, the single biometric data may be a single type of facial feature within the face, such as skeletal features, texture features, geometric features, or representational features. The type of facial feature is determined based on the facial features involved in the face-based identity recognition process.

[0065] The biometric feature combination refers to a combination of at least two types of biometric features at the target part corresponding to the business data. The biometric feature combination is obtained by combining different types of biometric features, specifically, by combining at least two types of biometric features. The type of biometric feature in the biometric feature combination corresponds to the type of the target part. For example, when the target part is a face, the biometric features in the biometric feature combination are various types of facial features in the face, such as skeletal features, texture features, geometric features, and representational features. The type of facial feature is determined based on the facial features involved in the face-based identity recognition process. In specific applications, if facial features are obtained through different facial feature extraction methods, such as extracting features from facial images using different facial recognition models, the biometric feature combination can be obtained by combining facial features extracted using different facial feature extraction methods. For another example, when the target part is a palm, the biometric features in the biometric feature combination are various types of palm features in the palm, such as palm print features, palm vein features, etc. Biometric combinations are formed by combining different types of biometric features. These different types of biometric features can be combined equivalently, meaning they can be directly combined based on the different types of biometric features. Alternatively, they can be weighted, assigning them corresponding combination weights to further ensure the effectiveness of the biometric combination. In practice, the corresponding combination weights for each type of biometric feature can be determined based on the historical recognition results corresponding to each biometric feature, thereby highlighting the important biometric features in the biometric combination.

[0066] The biometric data with locally hidden or deformed features refers to the transformation of the target part of the user corresponding to the target service, thereby partially hiding the global part of the target part. This can hide the biometric data of the local target part, prevent the leakage of the global biometric features of the target part during the biometric feature collection process for identity recognition, and thus ensure the security of the global biometric features of the target part. The local hiding of the target part can be flexibly implemented according to actual needs. For example, in addition to directly physically hiding the target part, the target part can also be deformed to partially hide the global biometric features of the target part. For example, the target part can be deformed to a deformed form that partially hides the target part based on its own flexibility and the application scenario of identity recognition. For example, if the target part is a face, the user's face can be partially occluded, such as by blocking a specific part of the user's face with an external obstruction, thereby obscuring a portion of the face. The user can also control the face to transform its shape, such as by making a specific expression, so that the face is in a deformed form that partially hides the local facial features. For another example, when the target part is the palm, considering that the palm can be flexibly transformed by the fingers, different gestures or hand shapes can be made by the fingers to cover or deform the palm, so that the palm is in a partially hidden deformed form. Specifically, the palm can make an "OK" gesture with the index finger and thumb, which can hide the biometric features of the index finger and thumb in the palm, thereby partially hiding the complete biometric features in the palm. When the target part is in different partially hidden deformed forms, when collecting biometric features of the target part, different biometric features that have been partially hidden can be collected. Identity recognition can be performed through different locally hidden biometric features, which can effectively prevent the leakage of the global biometric features of the target part.

[0067] It should be understood that in the process of collecting the above-mentioned biometrics, when the biometric data involved is used in specific products or technologies, the user's permission or consent is required, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0068] The above descriptions illustrate cases where biometrics are used for identity verification. In actual applications, in such identity verification scenarios, the service data may also be a user-entered identification password or other identification information, such as a digital certificate or dynamic password.

[0069] It is understandable that the target business may also be other application scenarios, such as data encryption transmission scenarios or account encryption scenarios in blockchain scenarios, etc., which are not specifically limited here.

[0070] 302. Obtain the encryption key corresponding to the target service.

[0071] The encryption key is generated by encrypting the service key by the background server of the target service using the pre-stored first root key. The service key is dynamically generated by the background server.

[0072] The dynamic generation mentioned here means that the business key is not fixed relative to the target business, but can be generated in real time based on the processing requirements of the business data, thereby improving security. In other words, for each processing of business data, the business key dynamically generated for the target business can be retrieved from the background server, and each generated business key can be different. Different terminal devices can also obtain different business keys from the background server for processing business data corresponding to the target business. The method of dynamically generating business keys can be random generation, thereby ensuring flexibility.

[0073] After the terminal device responds to the target service, the terminal device may initialize the service key of the target service, that is, call the encryption key corresponding to the target service.

[0074] In one possible implementation, the terminal device can store encryption keys in a key management library deployed on the terminal device. In this embodiment, the key management library is used to manage service keys corresponding to various services. To ensure the security of service keys, these service keys are typically encrypted before storage. Furthermore, to ensure the mapping between service keys and services, service identifiers are typically used to map these keys to the service keys. Specifically, the service identifiers serve as an index between the services and the service keys.

[0075] In an exemplary solution, when the terminal device calls the encryption key in the key management library, the following process can be used:

[0076] The terminal device sends an initialization key request to the key management library, where the initialization key request carries the service identifier of the target service; and then obtains the encryption key from the key management library according to the service identifier.

[0077] In one possible implementation, "obtaining the encryption key from the key management library according to the business identifier" may include: performing a traversal search in the key management library according to the business identifier to obtain a retrieval result; when the retrieval result indicates that the key management library stores the encryption key corresponding to the target business, directly calling the encryption key from the key management library; if the retrieval result indicates that the key management library does not have the encryption key corresponding to the target business, the terminal device triggers an operation of sending a key request to the background server corresponding to the target business; then the terminal device receives the encryption key sent by the background service server and stores the encryption key in the key management library; finally, the terminal device calls the encryption key from the key management library.

[0078] By using a dedicated key management library to store the business keys corresponding to each business (encrypted state storage), the security of the keys can be effectively improved. When the encryption key of the target business is not saved in the key management library, the encryption key encrypted based on the first root key is obtained from the background server. Not only is the business key in an encrypted state during transmission, but the terminal device can also complete decryption through a second root key that is symmetric to the first root key, so that the security of the business key is guaranteed before it is used.

[0079] In this embodiment, after receiving the key request, the backend server derives the business key for the target business from the pre-stored first root key, and then encrypts the business key using the first root key to obtain the encryption key. This enables dynamic generation of business keys, making them flexible and replaceable at any time. It is understood that the backend server may use any of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm to encrypt the business key, without limitation herein.

[0080] In this embodiment, the backend server and the terminal device both store fixed root keys. The backend server can store the first root key in the key storage area of ​​the backend server, and the terminal device can store the second root key, which is a symmetric key with the first root key, in the encryption protection system. It is understood that the key storage area in the backend server can be a TEE or SE, or the encryption protection system involved in this application, which is not specifically limited here.

[0081] Optionally, to further ensure the security of the target service's business key, the terminal device may employ code obfuscation technology, such as OLLVM or wxprotector, when invoking the key management library to store and invoke the encryption key. The specifics are not limited here. Using this code obfuscation technology, the terminal device can obfuscate the code associated with the business key, further increasing the difficulty of cracking.

[0082] The code associated with the business key may include storage code for storing the encryption key and calling code for calling the encryption key. Using code obfuscation technology, the storage code can be obfuscated to obtain obfuscated storage code, and using code obfuscation technology, the calling code can be obfuscated to obtain obfuscated calling code.

[0083] Because the code obfuscation technology is used to process the original code (such as storage code and calling code) into obfuscated code (such as obfuscated storage code and obfuscated calling code), the attacker cannot understand the process. Moreover, since the terminal device itself knows which code obfuscation technology is used, it can correctly restore or implement the correct function when calling the code, such as using the obfuscated storage code to store the encryption key in the key management library, or using the obfuscated calling code to call the encryption key from the key management library, which will not affect the actual function of the original code.

[0084] Therefore, through code obfuscation technology, the code structure for storing and calling encryption keys is made more complex and difficult to understand, which plays a role in further protecting encryption keys.

[0085] 303. Call the pre-stored second root key to decrypt the encryption key to obtain the service key.

[0086] The first root key and the second root key form a symmetric key pair. Symmetric key encryption, also known as private key encryption or shared key encryption, means that both parties sending and receiving data must use the same key to encrypt and decrypt plaintext. In this application, the terminal device and the backend server are the two parties involved in symmetric key encryption, and the first root key and the second root key are the same key used in symmetric key encryption.

[0087] After the terminal device obtains the encryption key through the key management library, the terminal device can call the pre-stored second root key and use the same background encryption algorithm to decrypt the encryption key to obtain the service key corresponding to the target service.

[0088] In one possible implementation, the second root key may be stored in an encryption protection system with a higher security level. In this embodiment, the encryption protection system may be implemented based on a virtual machine protection system, such as a VMP virtual machine system, or based on a white box encryption system. Specific implementations are not limited here.

[0089] Because white-box encryption systems use symmetric encryption, a specialized encryption method capable of withstanding attacks in white-box environments, their core concept is to obfuscate the symmetric key within the white-box logic, making it impossible for attackers to guess. Virtual machine protection systems, on the other hand, convert portions of the protected encryption key into bytecode within the program running on the virtual machine (VM). The instruction code within the VM remains private, increasing the difficulty of reverse engineering. Both methods provide a secure decryption environment for the encryption key, protecting the decrypted business key from attackers. They also effectively protect the secondary root key.

[0090] 304. Use the business key to encrypt the business data to obtain intermediate data.

[0091] After obtaining the service key, the terminal device encrypts the service data to obtain intermediate data for channel transmission.

[0092] It is understandable that the terminal device can use any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm to encrypt the business data, and the specifics are not limited here.

[0093] Symmetric encryption is an older and more mature encryption algorithm. In a symmetric encryption algorithm, the sender processes the plaintext (original data) and the encryption key (encryption key) through a specialized encryption algorithm, transforming it into a complex encrypted ciphertext and sending it to the recipient. Upon receiving the ciphertext, if the recipient wishes to decipher the original text, they must use the encryption key and the inverse algorithm of the same algorithm to decrypt the ciphertext and restore it to readable plaintext. In symmetric encryption, only one key is used by both the sender and receiver to encrypt and decrypt data, requiring the decryptor to know the encryption key in advance.

[0094] Asymmetric encryption, also known as public key encryption, is a secondary discipline within the field of network security under the Communications Technology umbrella. It refers to an encryption method consisting of a pair of unique keys (public and private). It addresses the key distribution and management issues and is the core of commercial cryptography. In public key encryption, the private key is not disclosed, while the public key is.

[0095] If the terminal device uses an asymmetric encryption algorithm to encrypt intermediate data, in addition to the business key, it also needs to use its own private key during the encryption process. Furthermore, the backend server also needs to cooperate with the public key of the terminal device when decrypting.

[0096] In this embodiment, the terminal device may call the encryption protection system to encrypt the service data; or the service data may be encrypted in the local environment of the terminal device.

[0097] In an exemplary solution, as shown in FIG2 b , the terminal device calls the VMP virtual machine environment to encrypt the service data or the terminal device encrypts the service data at the JAVA layer.

[0098] As mentioned above, the encryption protection system or key management library belongs to a more secure operating environment. Encrypting business data in such an environment can effectively protect the security of business data before or during encryption.

[0099] 305. Send the intermediate data to the backend server.

[0100] The terminal device sends the intermediate data to the backend server via wired or wireless means.

[0101] It is understandable that the terminal device may also encrypt the transmission channel when sending the intermediate data, and the specific details are not limited here.

[0102] 306. Receive the execution result of the target business.

[0103] The execution result is obtained by the backend server executing the target service based on the service data. The service data is obtained by the backend server decrypting the intermediate data using the service key. Because the service data is related to the target service, executing the target service using the service data can obtain the execution result corresponding to the service data and the target service.

[0104] The terminal device receives the execution result fed back by the backend server and displays the execution result to the user.

[0105] In this embodiment, after receiving the intermediate data, the backend server decrypts the intermediate data according to the pre-stored business key to obtain the business data, and then executes the target business according to the business data to obtain the execution result corresponding to the target business.

[0106] In the aforementioned step S301 of obtaining the service data corresponding to the target service, the service data may be different based on the target service. In one possible implementation, the following steps are included:

[0107] Obtaining a palmprint image in a palmprint recognition service, and using the palmprint image as the service data;

[0108] or,

[0109] Obtaining a fingerprint image in a fingerprint recognition service, and using the fingerprint image as the service data;

[0110] or,

[0111] Acquire an iris picture in an iris recognition service, and use the iris picture as the service data;

[0112] or,

[0113] Acquiring voice data in a voice recognition service, and using the voice data as the service data;

[0114] or,

[0115] Acquire a face image in a face recognition service, and use the face image as the service data.

[0116] Accordingly, the execution result in S306 may vary depending on the target business and business data. In one possible implementation:

[0117] When the palm print picture is used as the service data, the execution result is obtained by the backend server performing the palm print recognition service according to the palm print picture;

[0118] or,

[0119] When the fingerprint image is used as the service data, the execution result is obtained by the backend server executing the fingerprint recognition service according to the fingerprint image;

[0120] or,

[0121] When the iris picture is used as the service data, the execution result is obtained by the backend server executing the iris recognition service according to the iris picture;

[0122] or,

[0123] When the voice data is used as the service data, the execution result is obtained by the backend server executing the voice recognition service according to the voice data;

[0124] or,

[0125] When the face picture is used as the service data, the execution result is obtained by the backend server executing the face recognition service according to the face picture.

[0126] It can be seen that the embodiments of the present application can be applied to various target businesses, provide a secure business processing environment for various target businesses, and obtain corresponding execution results.

[0127] The following describes the data processing method using a specific application scenario. As shown in Figure 4, the application scenario includes a terminal device, a backend server, and a national secret library. The terminal device deploys a VMP, a key management library, and a business logic module. The national secret library is used to maintain various encryption algorithms, the key management library is used to manage the business keys of various businesses, the VMP is used to encrypt and decrypt the business keys, and the business logic module is used to execute the business code of the palmprint recognition business. Based on the above description, the following describes the process of the palmprint recognition business:

[0128] 1. In response to a triggering event of the palmprint recognition service, the service logic module initiates an initialization key request to the key management library, wherein the initialization key request carries a service identifier of the palmprint recognition service.

[0129] 2. The key management library determines whether the encryption key corresponding to the palmprint recognition service exists in the key management library based on the service identifier. If not, execute steps 3 to 7; if so, execute step 8.

[0130] 3. The key management library initiates a key request to the backend server.

[0131] 4. The backend server derives the business key of the palmprint recognition service based on the stored root key and stores the business key; then uses the root key to encrypt the business key to generate an encryption key, and returns the encryption key to the key management library.

[0132] 5. After receiving the encryption key, the key management library stores the encryption key. In this embodiment, when storing the encryption key, the key management library associates the encryption key with the service identifier of the palmprint recognition service.

[0133] 6. The key management library calls the VMP to decrypt the encryption key and obtain the service key. The VMP and the backend server each store a set of symmetric root keys, so the key management library can call the VMP to decrypt the encryption key using the pre-stored root key to obtain the service key.

[0134] 7. Within the VMP virtual environment, code is run using the root key to decrypt the encryption key. The VMP virtual environment pre-installs a decryption algorithm corresponding to the encryption algorithm used by the backend server to encrypt the business key. This eliminates reliance on the national secret library and improves the security of the decryption process. After decryption, the business key is returned to the key management library.

[0135] 8. If the encryption key for the palmprint recognition service exists in the key management library, the key management library executes step 6.

[0136] 9. The business logic module calls the business key from the key management library to encrypt the palm print image.

[0137] 10. During step 9, the key management library uses the service key to encrypt the palm print image using the corresponding encryption algorithm from the national key library. It is understood that when the key management library uses the encryption algorithm from the national key library to encrypt the palm print image, it can directly encrypt or decrypt the service data in the local environment of the terminal device, thereby speeding up the encryption and decryption of the service data.

[0138] The data processing device in the present application is described in detail below. Please refer to FIG5 , which is a schematic diagram of an embodiment of the data processing device in the present application. The data processing device 20 includes:

[0139] Acquisition module 201, used to acquire business data corresponding to the target business;

[0140] Processing module 202 is configured to obtain an encryption key corresponding to the target service, where the encryption key is generated by encrypting a service key using a pre-stored first root key on the backend server of the target service. The service key is dynamically generated by the backend server; decrypt the encryption key using a pre-stored second root key to obtain the service key, where the first root key and the second root key form a symmetric key; and encrypt the service data using the service key to obtain intermediate data.

[0141] The transceiver module 203 is used to send the intermediate data to the background server; receive the execution result of the target business, which is obtained by the background server executing the target business according to the business data, and the business data is obtained by the background server decrypting the intermediate data using the business key.

[0142] In an embodiment of the present application, a data processing device is provided. Using the above-mentioned device, the business key corresponding to the business data is encrypted and decrypted using a root key for transmission. At the same time, the business data is also encrypted and transmitted using the business key, thereby ensuring the security of the business data during transmission. Furthermore, the encryption processing of the business key is run separately within the encryption protection system, making the storage and retrieval of the business key more secure. The encryption protection system does not require information exchange with the backend server, and therefore does not need to be configured for different backend servers, making the entire data processing process universally applicable to various scenarios.

[0143] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0144] The processing module 202 is configured to send a key initialization request to the key management library, where the key initialization request carries a service identifier of the target service;

[0145] The encryption key is obtained from the key management library according to the service identifier.

[0146] In an embodiment of the present application, a data processing device is provided. Using the device, a service identifier is used to query a key management library to determine whether a key corresponding to a target service exists. This reduces interaction with the service backend when a key already exists, thereby speeding up service processing.

[0147] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in an embodiment of the present application, the processing module 202 is configured to perform a traversal search in the key management library according to the service identifier to obtain a search result;

[0148] When the search result determines that the key management library stores the encryption key, calling the encryption key from the key management library;

[0149] When the search result determines that the encryption key does not exist in the key management library, sending a key request to the backend server, so that the backend server generates the business key in response to the key request, and encrypts the business key using the first root key to obtain the encryption key;

[0150] Receive the encryption key sent by the backend server and store the encryption key in the key management library;

[0151] The encryption key is retrieved from the key management repository.

[0152] In an embodiment of the present application, a data processing device is provided. Using the device, when it is determined, based on a service identifier, that a key corresponding to a target service exists in the key management library, the device can directly call the key corresponding to the target service. If the key does not exist, the device can request the service backend to generate the key. This avoids interacting with the service backend every time, thereby speeding up service processing.

[0153] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0154] The encryption key is obtained by encrypting the business key using the first root key using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm.

[0155] In an embodiment of the present application, a data processing device is provided. Using the device, multiple encryption algorithms are provided to implement the process of encrypting a service key based on a root key, thereby increasing the feasibility of the solution.

[0156] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0157] The processing module 202 is configured to perform obfuscation processing on the storage code of the encryption key using a code obfuscation technology to obtain an obfuscated storage code;

[0158] The encryption key is stored in the key management repository using the obfuscated storage code.

[0159] In an embodiment of the present application, a data processing device is provided. The device is used to obfuscate the storage code of the first key using multiple obfuscation techniques, thereby improving the security of the first key.

[0160] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in an embodiment of the present application, the processing module 202 is configured to obfuscate the calling code for calling the encryption key from the key management library using a code obfuscation technology to obtain an obfuscated calling code;

[0161] The encryption key is called from the key management library using the obfuscation.

[0162] In an embodiment of the present application, a data processing device is provided, which uses a plurality of obfuscation techniques to obfuscate the calling code of the first key, thereby improving the security of the first key.

[0163] Optionally, based on the embodiment corresponding to Figure 5 above, in another embodiment of the data processing device 20 provided in the embodiment of the present application, the processing module 202 is used to use the business key to encrypt the business data using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm to obtain the intermediate data.

[0164] In an embodiment of the present application, a data processing device is provided, which uses the device to implement encryption processing of the business data using multiple encryption methods, thereby increasing the feasibility of the solution.

[0165] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0166] The processing module 202 is used to call the encryption protection system to use the business key to encrypt the business data using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm to obtain the intermediate data;

[0167] or,

[0168] The processing module 202 is used to call the key management library to use the business key to adopt any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm to encrypt the business data to obtain the intermediate data.

[0169] In an embodiment of the present application, a data processing device is provided. Using this device, an encryption protection system can be invoked to encrypt business data, thereby increasing the security of the business data. Furthermore, business data can be encrypted using real-world operational scenarios, thereby accelerating the encryption of business data and, consequently, business processing.

[0170] In one possible design, in another implementation of another aspect of the embodiment of the present application, the acquisition module 201 is configured to acquire a palm print image in a palm recognition service and use the palm print image as the service data;

[0171] or,

[0172] The acquisition module 201 is used to obtain a fingerprint image in a fingerprint recognition service and use the fingerprint image as service data;

[0173] or,

[0174] The acquisition module 201 is used to acquire an iris image in an iris recognition service and use the iris image as service data;

[0175] or,

[0176] The acquisition module 201 is used to acquire voice data in the voice recognition service and use the voice data as the service data;

[0177] or,

[0178] The acquisition module 201 is used to acquire a face image in a face recognition service and use the face image as service data.

[0179] In an embodiment of the present application, a data processing device is provided. The device is used to refine various application scenarios, thereby increasing the versatility and feasibility of the solution.

[0180] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0181] When the palm print picture is used as the service data, the execution result is obtained by the backend server performing the palm print recognition service according to the palm print picture;

[0182] or,

[0183] When the fingerprint image is used as the service data, the execution result is obtained by the backend server executing the fingerprint recognition service according to the fingerprint image;

[0184] or,

[0185] When the iris picture is used as the service data, the execution result is obtained by the backend server executing the iris recognition service according to the iris picture;

[0186] or,

[0187] When the voice data is used as the service data, the execution result is obtained by the backend server executing the voice recognition service according to the voice data;

[0188] or,

[0189] When the face picture is used as the service data, the execution result is obtained by the backend server executing the face recognition service according to the face picture.

[0190] In an embodiment of the present application, a data processing device is provided. The device is used to refine various application scenarios, thereby increasing the versatility and feasibility of the solution.

[0191] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0192] The processing module 202 is configured to call the virtual machine protection system to decrypt the encryption key using the second root key to obtain the service key. The virtual machine protection system serves as the encryption protection system.

[0193] In an embodiment of the present application, a data processing device is provided. Using the aforementioned device, a virtual machine protection system is used as the encryption protection system. This allows key encryption and decryption to be performed within a virtual machine environment, preventing attackers from gaining access to the specific instruction set of the code. This ensures the security of the key and, in turn, improves the security of business data.

[0194] Optionally, based on the embodiment corresponding to FIG. 5 , in another embodiment of the data processing device 20 provided in the embodiment of the present application,

[0195] The processing module 202 is configured to call a white-box encryption system to decrypt the encryption key using the second root key to obtain the service key. The white-box encryption system serves as the encryption protection system.

[0196] In an embodiment of the present application, a data processing device is provided. Using the aforementioned device, white-box cryptography is used as the encryption protection system, and keys are obfuscated within the logic of the white-box cryptographic system, making it impossible for attackers to obtain specific operations, thereby improving the security of the keys and, in turn, the security of business data.

[0197] The data processing device provided in the present application can be used in a server. Please refer to Figure 6, which is a schematic diagram of a server structure provided in an embodiment of the present application. The server 300 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 322 (for example, one or more processors) and memory 332, and one or more storage media 330 (for example, one or more mass storage devices) for storing application programs 342 or data 344. Among them, the memory 332 and the storage medium 330 can be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 322 can be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the server 300.

[0198] The server 300 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input and output interfaces 358, and / or one or more operating systems 341, such as Windows Server 2003 or Windows Server 2003R. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM etc.

[0199] The steps executed by the server in the above embodiment may be based on the server structure shown in FIG6 .

[0200] The data processing device provided by this application can be used in a terminal device. Please refer to Figure 7. For the sake of convenience, only the part related to the embodiment of this application is shown. For specific technical details not disclosed, please refer to the method part of the embodiment of this application. In the embodiment of this application, the terminal device is a smartphone as an example for explanation:

[0201] FIG7 is a block diagram showing a partial structure of a smartphone related to a terminal device provided in an embodiment of the present application. Referring to FIG7 , the smartphone includes components such as a radio frequency (RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (WiFi) module 470, a processor 480, and a power supply 490. It will be understood by those skilled in the art that the smartphone structure shown in FIG7 does not constitute a limitation on the smartphone, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0202] The following is a detailed introduction to the various components of a smartphone with reference to FIG7 :

[0203] The RF circuit 410 may be used for receiving and sending signals during information transmission or calls. In particular, after receiving downlink information from the base station, it is sent to the processor 480 for processing; in addition, uplink data is sent to the base station.

[0204] The memory 420 may be used to store software programs and modules. The processor 480 executes various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 420 .

[0205] The input unit 430 may be configured to receive input digital or character information and generate key signal input related to user settings and function control of the smartphone.

[0206] The display unit 440 may be used to display information input by the user or information provided to the user and various menus of the smartphone.

[0207] The smartphone may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 441 and / or the backlight when the smartphone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the smartphone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the smartphone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.

[0208] The audio circuit 460 , the speaker 461 , and the microphone 462 may provide an audio interface between the user and the smartphone.

[0209] The steps executed by the terminal device in the above embodiment may be based on the terminal device structure shown in FIG. 7 .

[0210] A computer-readable storage medium is also provided in an embodiment of the present application. The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the methods described in the aforementioned embodiments.

[0211] An embodiment of the present application also provides a computer program product including a program, which, when executed on a computer, enables the computer to execute the methods described in the aforementioned embodiments.

[0212] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0213] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

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

[0215] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0216] 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 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 storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0217] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, the method being executed by a computer device, the method comprising: Obtain business data corresponding to the target business; Obtaining an encryption key corresponding to the target service, wherein the encryption key is generated by encrypting a service key by a backend server of the target service using a pre-stored first root key, and the service key is dynamically generated by the backend server; Calling a pre-stored second root key to decrypt the encryption key to obtain the service key, wherein the first root key and the second root key are a set of symmetric keys; Encrypting the service data using the service key to obtain intermediate data; Sending the intermediate data to the backend server; An execution result of the target service is received, where the execution result is obtained when the backend server executes the target service according to the service data, and the service data is obtained when the backend server decrypts the intermediate data using the service key.

2. According to the method of claim 1, the obtaining of the encryption key corresponding to the target service comprises: Sending an initialization key request to a key management repository, wherein the initialization key request carries a service identifier of the target service; The encryption key is obtained from the key management repository according to the service identifier.

3. According to the method of claim 2, obtaining the encryption key from the key management library according to the service identifier comprises: Performing a traversal search in the key management library according to the service identifier to obtain a search result; When the search result determines that the key management library stores the encryption key, calling the encryption key from the key management library; When the search result determines that the encryption key does not exist in the key management library, sending a key request to the backend server, so that the backend server generates the business key in response to the key request, and encrypts the business key with the first root key to obtain the encryption key; Receiving the encryption key sent by the backend server, and storing the encryption key in the key management library; The encryption key is retrieved from the key management repository.

4. According to the method of claim 3, the encryption key is obtained by encrypting the business key using the first root key using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, and a digital signature algorithm.

5. The method according to claim 3, wherein storing the encryption key in the key management repository comprises: Obfuscating the storage code of the encryption key by using a code obfuscation technology to obtain an obfuscated storage code; The encryption key is stored in the key management repository using the obfuscated storage code.

6. The method according to claim 3, wherein calling the encryption key from the key management library comprises: Using code obfuscation technology to obfuscate the calling code for calling the encryption key from the key management library to obtain an obfuscated calling code; The encryption key is called from the key management library using the obfuscated calling code.

7. According to the method of any one of claims 1 to 6, encrypting the service data using the service key to obtain intermediate data comprises: The intermediate data is obtained by encrypting the business data using the business key using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm or a digital signature algorithm.

8. The method according to claim 7, wherein the step of using the business key to encrypt the business data using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm, or a digital signature algorithm to obtain the intermediate data comprises: Calling the encryption protection system to encrypt the business data using the business key using any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm or a digital signature algorithm to obtain the intermediate data; or, The key management library is called to use the business key to adopt any one of a symmetric encryption algorithm, an asymmetric encryption algorithm, a hash algorithm or a digital signature algorithm to encrypt the business data to obtain the intermediate data.

9. According to any one of claims 1 to 8, obtaining the service data corresponding to the target service comprises: Acquire a palmprint image in a palmprint recognition service, and use the palmprint image as the service data; or, Obtaining a fingerprint image in a fingerprint recognition service, and using the fingerprint image as the service data; or, Acquire an iris picture in an iris recognition service, and use the iris picture as the service data; or, Acquire voice data in a voice recognition service, and use the voice data as the service data; or, Acquire a face image in a face recognition service, and use the face image as the service data.

10. The method according to claim 9, when the palm print picture is used as the service data, the execution result is obtained by the backend server performing the palm print recognition service according to the palm print picture; or, When the fingerprint image is used as the service data, the execution result is obtained by the backend server executing the fingerprint recognition service according to the fingerprint image; or, When the iris picture is used as the service data, the execution result is obtained by the backend server executing the iris recognition service according to the iris picture; or, When the voice data is used as the service data, the execution result is obtained by the backend server executing the voice recognition service according to the voice data; or, When the face picture is used as the service data, the execution result is obtained by the background server executing the face recognition service according to the face picture.

11. According to any one of claims 1 to 10, calling the second root key to decrypt the encryption key to obtain the service key comprises: The virtual machine protection system is called to use the second root key to decrypt the encryption key to obtain the business key, and the virtual machine protection system serves as an encryption protection system.

12. According to the method of any one of claims 1 to 10, calling the second root key to decrypt the encryption key to obtain the service key comprises: The white box encryption system is called to decrypt the encryption key using the second root key to obtain the business key, and the white box encryption system serves as an encryption protection system.

13. A data processing device, comprising: An acquisition module is used to acquire business data corresponding to the target business; A processing module is used to obtain an encryption key corresponding to the target business, where the encryption key is generated by encrypting a business key using a pre-stored first root key by a background server of the target business, and the business key is dynamically generated by the background server; decrypt the encryption key by calling a pre-stored second root key to obtain the business key, where the first root key and the second root key are a set of symmetric keys; and encrypt the business data using the business key to obtain intermediate data; A transceiver module, used for sending the intermediate data to the backend server; An execution result of the target service is received, where the execution result is obtained when the backend server executes the target service according to the service data, and the service data is obtained when the backend server decrypts the intermediate data using the service key.

14. A computer device comprising: Memory, processor, and bus system; Wherein, the memory is used to store programs; The processor is used to execute the computer program in the memory, and the processor is used to perform the method according to any one of claims 1 to 12 according to the computer program; The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.

15. A computer-readable storage medium comprising a computer program, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 12.

16. A computer program product comprising a computer program which, when run on a computer, causes the computer to perform the method of any one of claims 1 to 12.

Citation Information

Patent Citations

  • A cross-platform source code virtualization protection method based on an intermediate language interpreter

    CN109543368A

  • Key management method, security chip, service server and information system

    CN109921902A

  • Methods and devices for storing and processing application program information

    CN110321727A

  • Data processing method, apparatus, computer program, and storage medium

    US20220329422A1

  • Data encryption method and apparatus, electronic device and storage medium

    WO2022205906A1

Cited By

  • Data encryption transmission method and system based on purchase business

    CN120128358A