Sensitive information processing method and device and electronic equipment

By centralizing encryption and decryption within the configuration center and implementing role-based permissions, the method and device effectively reduce the risk of sensitive information leakage in microservice architectures, ensuring secure management and access to sensitive data.

CN119089462APending Publication Date: 2024-12-06BEIYIN FINANCIAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411096967.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing microservice architectures face high risks of sensitive information leakage due to encryption and decryption processes occurring on the user end, allowing unauthorized access and potential data breaches.

Method used

A method and device that centralize encryption and decryption processes within the configuration center, assigning different configuration permissions to users based on their roles, ensuring that sensitive information values are accessible only to authorized personnel, and using encryption strategies tailored to specific applications.

Benefits of technology

This approach reduces the risk of sensitive information leakage by decoupling encryption and decryption from the user side, ensuring that only authorized users can access and manage sensitive information, thereby enhancing data security and privacy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089462A_ABST
    Figure CN119089462A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of micro service, in particular to a sensitive information processing method and device and electronic equipment. The method comprises the following steps: acquiring information configured by users with different configuration permissions for sensitive information, wherein the configured information comprises an encryption strategy configured for each piece of sensitive information by a user with a configuration strategy permission and a numerical value configured for each piece of sensitive information by a user with a configuration numerical value permission; and in response to the encryption instruction, for any sensitive information, encrypting the numerical value of the any sensitive information by using the encryption strategy of the any sensitive information to obtain a ciphertext of the any sensitive information. Through the method, the risk of sensitive information leakage can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of microservice technology, and specifically to a method, device and electronic device for processing sensitive information. Background Art

[0002] In the microservice architecture, the configuration center is responsible for storing and managing the configuration information of each business service, which may include sensitive data such as database passwords, application program interface keys, and third-party service credentials. As users' requirements for data security and privacy protection increase, the protection of sensitive data in the configuration center becomes particularly important.

[0003] At present, the encryption scheme of the configuration center is to send the secret key to the user end, and encrypt and decrypt the sensitive data on the user end. This encryption and decryption method may allow R&D personnel, management personnel and other relevant personnel at all levels on the user end to access the sensitive information, and the risk of leakage of this sensitive information is relatively high. Summary of the invention

[0004] The embodiments of the present application provide a method, device and electronic device for processing sensitive information, which can reduce the risk of sensitive information leakage.

[0005] In a first aspect, an embodiment of the present application provides a method for processing sensitive information, the method comprising:

[0006] Collect information configured by users with different configuration permissions for sensitive information, where the configured information includes an encryption policy configured by a user with configuration policy permissions for each piece of sensitive information, and a value configured by a user with configuration value permissions for each piece of sensitive information;

[0007] In response to the encryption instruction, for any piece of sensitive information, the encryption strategy of any piece of sensitive information is used to encrypt the value of the any piece of sensitive information to obtain the ciphertext of any piece of sensitive information.

[0008] In a possible implementation manner, the configured information further includes an application identifier configured for a target application by a user with configuration identifier authority or a user with configuration policy authority, wherein the value of the sensitive information is required during the operation of the target application;

[0009] After obtaining the ciphertext of any sensitive information, the method further includes:

[0010] Generate a target configuration file corresponding to the application identifier.

[0011] In a possible implementation manner, the configured information further includes a decryption policy configured for each piece of sensitive information by a user with configuration policy authority;

[0012] The generating a target configuration file corresponding to the application identifier includes:

[0013] Based on the encrypted ciphertext of each piece of sensitive information and the decryption strategy of each piece of sensitive information, a target configuration file whose file name is the application identifier is generated.

[0014] In a possible implementation manner, after generating a target configuration file whose file name is the application identifier, the method further includes:

[0015] In response to the decryption instruction, determining an identifier of a target application program included in the decryption instruction, and querying a target configuration file that matches the identifier;

[0016] For any piece of sensitive information, determine the ciphertext of any piece of sensitive information in the target configuration file and the decryption strategy corresponding to the ciphertext of any piece of sensitive information;

[0017] The ciphertext of the any piece of sensitive information is decrypted using the decryption strategy of the any piece of sensitive information to obtain the value of the any piece of sensitive information.

[0018] In a possible implementation, the method further includes:

[0019] The values ​​of each sensitive information obtained after decryption are fed back to the target application, so that the device where the target application is located can complete the function of the target application according to the values ​​of each sensitive information.

[0020] In a possible implementation manner, the response decryption instruction includes:

[0021] Responding to a decryption instruction triggered by receiving a decryption request sent by the target application.

[0022] In a possible implementation manner, the configured information further includes a name configured for each piece of sensitive information by a user with configuration name authority or a user with configuration policy authority;

[0023] Before encrypting the value of any piece of sensitive information by using the encryption strategy of any piece of sensitive information, the method further includes:

[0024] On the display interface, the value of any piece of sensitive information is input into the position corresponding to the name of the any piece of sensitive information.

[0025] In a second aspect, an embodiment of the present application provides a sensitive information processing device, the device comprising:

[0026] A collection module, used to collect information configured by users with different configuration permissions for sensitive information, wherein the configured information includes an encryption policy configured for each piece of sensitive information by a user with configuration policy permissions, and a value configured for each piece of sensitive information by a user with configuration value permissions;

[0027] The encryption module is used to respond to the encryption instruction, and for any piece of sensitive information, encrypt the value of the any piece of sensitive information using the encryption strategy of the any piece of sensitive information to obtain the ciphertext of the any piece of sensitive information.

[0028] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:

[0029] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described in the first aspect above.

[0030] In a fourth aspect, an embodiment of the present application provides a computer program product, which is used to enable a computer to execute the method in the first aspect.

[0031] In a fifth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a computer program, and the computer program is used to enable a computer to execute the method in the first aspect above.

[0032] The embodiment of the present application provides a method for processing sensitive information, which expands the functions of the configuration center so that the configuration center can assign different configuration permissions for sensitive information to users of different roles, thereby making the values ​​of sensitive information known only to users with the permission to configure the values, effectively reducing the risk of sensitive information leakage; moreover, the encryption and decryption processes are both executed in the configuration center, rather than on the user side, thereby completing the decoupling of encryption and decryption of the user-side integrated system, thereby ensuring the security of sensitive information. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of an application scenario of a method for processing sensitive information provided in an embodiment of the present application;

[0034] Figure 2 A flowchart of a method for processing sensitive information provided in an embodiment of the present application;

[0035] Figure 3 A flowchart of a configuration method provided in an embodiment of the present application;

[0036] Figure 4A flowchart of a decryption method provided in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of a sensitive information processing device provided in an embodiment of the present application;

[0038] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.

[0040] The acquisition, storage, use, and processing of data in the embodiments of this application comply with the relevant provisions of national laws and regulations.

[0041] First, some concepts involved in the embodiments of the present application are introduced.

[0042] Microservices: Microservices are small services composed of a single application, with their own itinerary and lightweight processing. Services are designed according to business functions, deployed in a fully automatic manner, and communicate with other services using the application interface of the application layer protocol. At the same time, the service will use the smallest scale of centralized management (such as Docker) capabilities, and the service can be implemented with different programming languages ​​and database components.

[0043] Configuration Center: Deployed in the microservice system, in this application, the configuration center is used to assign permissions to users at all levels, then collect information configured by each user for sensitive information, and process the sensitive information accordingly based on the configured information.

[0044] Sensitive information: Information that is important to the user can be considered sensitive information, such as database passwords, user mobile phone numbers, ID card numbers, etc. The embodiments of the present application do not specifically limit the categories of sensitive information.

[0045] Application: deployed on the user side, used to complete specific functions when accessing the microservice system, for example, the target application completes the function of accessing service node 1. In the embodiment of the present application, the application is built based on at least one software package.

[0046] Service node: In the embodiment of the present application, the service node can be a Pod. Pod is the smallest resource management component in K8s. Pod is also the resource object that minimizes the running of containerized applications. A Pod represents a process running in the cluster. Most other components in K8s are centered around Pod to support and expand Pod functions.

[0047] Self-developed encryption component strategy: encryption strategy provided by the existing configuration center. Self-developed encryption component technology is a technology that uniformly decrypts ciphertext in loaded files at the beginning of system startup. It is based on the basic loading sequence of the framework and is personalized by R&D personnel according to specific needs. The advantage of this technology is that it is highly flexible and can perform customized encryption processing according to different application scenarios and security requirements, that is, different keys can be provided for different applications to prevent data from being accessed or tampered with without authorization. Although custom encryption technology can reduce the visibility of passwords, the lack of authorization and management of keys means that attackers may obtain keys by analyzing the normal class loading operations of the system and try to crack passwords.

[0048] Jasypt encryption strategy: encryption strategy provided by the existing configuration center. Jasypt encryption strategy performs well in handling encryption and decryption operations in Java applications, and it is particularly suitable for scenarios where data security needs to be maintained during these operations. In some applications, the integration process of Jasypt is relatively simple, which makes it easier for developers to apply it to projects. Jasypt supports multiple fixed encryption strategies, which means that developers can choose the most suitable strategy according to their needs. This flexibility makes Jasypt a very practical tool because it can adapt to a variety of different encryption needs. A potential problem with Jasypt is the configuration of secret keys. In Jasypt, secret keys are usually hard-coded in the code or configured in the configuration file. There is a lack of authorized management of secret keys, that is, secret keys are easy to leak. In addition, Jasypt also has the following problems:

[0049] When configuring Jasypt, you need to correctly set parameters such as encryption keys and algorithms, which may increase the complexity of configuration; Jasypt uses an encryption algorithm (PBEWithMD5AndDES) by default, which may not meet the security requirements of all scenarios. If a more advanced encryption algorithm is required, a custom encryptor may be required; when using Jasypt, you need to pay attention to version compatibility issues. Different versions of Jasypt may have different bugs or features, which may affect the stability and security of the application.

[0050] The following describes in detail the method for processing sensitive information in the embodiments of the present application in conjunction with the accompanying drawings.

[0051] like Figure 1 The application scenario of the sensitive information processing method is shown, and the application scenario includes a microservice system 101 and at least one user terminal (user terminal 102_1, user terminal 102_2, ..., user terminal 102_N in the figure). The microservice system 101 includes a control node 101_1, at least one service node (service node 1, service node 2, ..., service node 3 in the figure) and a configuration center 101_2.

[0052] The service node in the microservice system is used to provide various business services to at least one user terminal outside the microservice system 101. The service node can be a Pod, and the Pod can be composed of one container or multiple containers. The control node 101_1 is used to manage various nodes in the microservice system, and the configuration center 101_2 is used to implement a sensitive information processing method provided in an embodiment of the present application.

[0053] The control node 101_1 and the configuration center 101_2 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide 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 (CDN), as well as big data and artificial intelligence platforms.

[0054] Based on the problem of easy leakage of sensitive information in microservice scenarios in the prior art, the embodiment of the present application provides a method for processing sensitive information, which is applied to the configuration center, such as Figure 2 As shown, the method includes:

[0055] S201: Collect information configured for sensitive information by users with different configuration permissions, where the configured information includes an encryption policy configured for each piece of sensitive information by a user with configuration policy permission, and a value configured for each piece of sensitive information by a user with configuration value permission.

[0056] In order to prevent relevant personnel at multiple levels from obtaining the specific value of sensitive information, the embodiment of the present application expands the permission allocation function for the configuration center, that is, different configuration permissions for sensitive information are allocated to users of different levels. In other words, users with different configuration permissions can configure different information for sensitive information. The permissions allocated by the configuration center can be specifically divided into the following situations.

[0057] (1) Users with policy configuration permissions and users with value configuration permissions.

[0058] For sensitive information, the specific value is very important. In order to avoid leakage, special personnel are needed to configure and manage it (such as administrators). For example, the password of the database is "123456@". "123456@" is the value of the sensitive information "database password". Therefore, users with the authority to configure values ​​only configure the value for each sensitive information. The name of each sensitive information, the application identifier of the target application, and the encryption policy and decryption policy of each sensitive information can all be configured by users with the authority to configure policies. The above configuration process can be performed on the display interface.

[0059] Among them, the target application is deployed on the user side. When the user wants to access the microservice system, he can access it through the target application. During the operation of the target application, different applications that need to use sensitive information implement different functions. For example, when a user wants to access service node 1, the user side needs to use the target application to implement the function of accessing service node 1. In the process of the target application implementing the function of accessing service node 1, the sensitive information "address of service node 1" is required.

[0060] In a possible implementation, the process of a user configuring information for sensitive information is as follows:

[0061] First, the user with the policy configuration permission configures the name of each sensitive information, the encryption policy and decryption policy of each sensitive information, and the application identifier of the target application; then the user with the value configuration permission configures the value for each sensitive information.

[0062] For example, a user with policy configuration authority configures the name of sensitive information as "address of service node 1", the encryption / decryption strategy as "national secret algorithm", and the application identifier of the target application as "APP1"; a user with value configuration authority configures the value of sensitive information "address of service node 1" as "XXX.XXX". In the configuration center, multiple types of encryption / decryption strategies can be extended, and users with policy configuration authority can select the required encryption / decryption strategy on the display interface.

[0063] (2) Users who configure policy permissions, users who configure identification permissions, users who configure value permissions, and users who configure name permissions.

[0064] In an embodiment of the present application, different types of information can also be configured by users with different configuration permissions. For example, a user with configuration policy permissions configures encryption policies and decryption policies for each piece of sensitive information, a user with configuration value permissions configures a value for each piece of sensitive information, a user with configuration identification permissions configures an application identifier for a target application, and a user with configuration name permissions or the user with configuration policy permissions configures a name for each piece of sensitive information. This embodiment of the present application does not specifically limit this.

[0065] In a possible implementation, the process of a user configuring information for sensitive information is as follows:

[0066] First, the user with policy configuration authority configures the name of each sensitive information; the user with policy configuration authority configures the encryption policy and decryption policy of each sensitive information; the user with identity configuration authority configures the application identity of the target application; and then the user with value configuration authority configures the value for each sensitive information.

[0067] For example, a user with the permission to configure the name configures the name of the sensitive information as "address of service node 1"; a user with the permission to configure the policy configures the encryption / decryption policy as "national secret algorithm"; a user with the permission to configure the identification configures the application identification of the target application as "APP1"; and then a user with the permission to configure the value configures the value of the sensitive information "address of service node 1" as "XXX.XXX". Among them, multiple categories of encryption / decryption policies can be extended in the configuration center, and users with the permission to configure the policy can select the required encryption / decryption policy on the display interface. The embodiment of the present application does not limit the order of configuring the name, identification and encryption / decryption policy, as long as they are before the configuration value.

[0068] In addition, when the user who configures the numerical authority configures the numerical value for each sensitive information, the numerical value of any sensitive information can be input into the position corresponding to the name of any sensitive information on the display interface. In other words, the user who configures the numerical authority can view the information configured by other users on the display interface. Furthermore, the user who configures the numerical authority can be provided with the authority to modify the information. If the user who configures the numerical authority believes that the encryption / decryption strategy configured previously is unreasonable, the user can reselect the encryption / decryption strategy. Then, the configuration center will perform encryption / decryption operations on the data of the sensitive information according to the encryption / decryption strategy reselected by the user who configures the numerical authority.

[0069] S202: In response to the encryption instruction, for any piece of sensitive information, encrypt the value of the any piece of sensitive information using the encryption strategy of the any piece of sensitive information to obtain the ciphertext of the any piece of sensitive information.

[0070] After users with different configuration permissions complete the configuration of sensitive information, they can implement the encryption and decryption process in the configuration center. The specific implementation method can be as follows:

[0071] (1) Encryption.

[0072] After the user with the authority to configure numerical values ​​completes configuring the numerical values ​​for each piece of sensitive information, he or she may click the "Submit" or "Complete" button on the display interface, or trigger the encryption instruction by voice. The configuration center may then use the encryption strategy of any piece of sensitive information to encrypt the numerical value of any piece of sensitive information to obtain the ciphertext of any piece of sensitive information. The embodiments of the present application do not limit the specific method of responding to encryption instructions.

[0073] After obtaining the ciphertext of each sensitive information, a target configuration file with the file name as the application identifier is generated based on the decryption strategy of each sensitive information, so as to facilitate the execution of the decryption process in the configuration center. The target configuration file can be shown in the following Table 1.

[0074] Table 1

[0075]

[0076] (2) Decryption.

[0077] The decryption process will only start when the configuration center responds to the decryption instruction, where the decryption instruction can be triggered by receiving a decryption request sent by the target application. Since the value of sensitive information is needed when the target application is running, if the value of the sensitive information is encrypted, it needs to be decrypted at the configuration center. The specific process is as follows:

[0078] First, the user-end device accesses the microservice system by running the target application. In the process of running the target application, the value of sensitive information is needed. When the value encryption of the sensitive information is determined, a request for querying the configuration file is sent to the configuration center. The request carries the application identifier of the target application, such as APP1. The configuration center queries the matching target configuration file based on APP1; then, the configuration center uses the decryption strategy in the target configuration file to decrypt the ciphertext of the corresponding sensitive information to obtain the value of the sensitive information, which can also be called plaintext; finally, the value of each sensitive information obtained by decryption is fed back to the target application, so that the device where the target application is located completes the function of the target application according to the value of each sensitive information.

[0079] In a possible implementation, when configuring sensitive information, for some unimportant sensitive information, no encryption policy may be configured, and then the sensitive information exists in plain text in the configuration file of the configuration center, that is, the configuration file contains ciphertext and plain text. When decrypting, only the ciphertext is decrypted, and then the encrypted plain text and the original plain text are fed back to the user end. Although this type of sensitive information is not encrypted, the plain text of the sensitive information is stored in the configuration center, not on the client, which can also ensure the security of the sensitive information.

[0080] The following is based on Figure 3 A process for configuring sensitive information in an embodiment of the present application is introduced in detail.

[0081] The R&D personnel apply for configuration policy permissions from the configuration center of the microservice system through the user end; after receiving the request from the R&D personnel, the configuration center assigns configuration policy permissions to the R&D personnel; after obtaining the permissions, the R&D personnel configure the encryption policy, decryption policy and name of each sensitive information, as well as the application identifier of the target application on the display interface of the user end, and submit them to the configuration center. The sensitive information is needed during the operation of the target application; after receiving the information configured by the R&D personnel, the configuration center stores it for subsequent use.

[0082] After confirming that the R&D personnel configuration is completed, the administrator applies to the configuration center for configuration value permission through the user end; after receiving the request, the configuration center assigns configuration value permission to the administrator, and feeds back to the user end the encryption policy, decryption policy and name of each sensitive information configured by the R&D personnel previously stored, as well as the application identifier of the target application; the administrator enters the corresponding value in the position corresponding to the name of each sensitive information on the display interface, and submits it to the configuration center; the configuration center uses the encryption policy configured by the R&D personnel to encrypt the value of the sensitive information configured by the administrator to obtain the ciphertext of each sensitive information, and then generates a target configuration file with the file name as the application identifier based on the decryption policy and ciphertext and stores it for subsequent decryption process.

[0083] The administrator can apply for the permission to configure the value from the configuration center at the same time as the R&D personnel, or after the R&D personnel apply for the permission to configure the policy or after the configuration is completed. This embodiment of the application does not specifically limit this. The above embodiment only provides two levels of users to configure sensitive information. In addition, four levels of users can also apply for configuration permissions, which is not specifically limited in this embodiment of the application.

[0084] The following is based on Figure 4 A decryption process of an embodiment of the present application is introduced in detail.

[0085] The user end sends a query request to the configuration center through the target application, wherein the query request carries the application identifier of the target application; after receiving the request, the configuration center queries the target configuration file that matches the application identifier of the target application; decrypts the ciphertext of the sensitive information using the decryption strategy of the target configuration file to obtain the value of each sensitive information; feeds back the value of each sensitive information to the user end; after receiving the value of the sensitive information, the user end uses the value of the sensitive information through the target application to complete the corresponding function.

[0086] The present application embodiment provides a method for processing sensitive information, which is applied to a configuration center. By extending the functions of the configuration center, the configuration center can assign different configuration permissions to users of different levels:

[0087] R&D personnel create relevant configuration information corresponding to their own services on the control console interface of the configuration center, and initialize the required sensitive information respectively. Among them, R&D personnel can configure the name of sensitive information, encryption policy, decryption policy, and application identification of the target application. After submission, these configurations will be subject to review by the administrator. During the configuration process, R&D personnel need to log in to the control console interface of the configuration center, where they will see a series of available configuration options and tools that enable them to easily create and manage configuration information related to their own services. To further protect the security of sensitive information, R&D personnel can select the encryption policy required by the system. This may involve encrypting sensitive information using an encryption algorithm to prevent unauthorized access or tampering. The choice of encryption policy depends on the security requirements of the organization and the specific needs of the system.

[0088] After the administrator successfully logs in to the configuration center, he or she has the authority to configure values ​​for sensitive information and the authority to review the information configured by the R&D personnel. The administrator can fill in the values ​​of sensitive information. When filling in sensitive information, the input is plain text information, that is, the original text without any encryption. These plain text information may contain important data, such as passwords, keys, or other confidential information. When the administrator completes the sensitive information and clicks the Submit button, the configuration center will encrypt the plain text information according to the previously configured encryption policy. The encryption process uses advanced encryption algorithms to convert plain text information into ciphertext that is difficult to crack, thereby protecting sensitive information from unauthorized access or tampering. Once sensitive information is encrypted, only the encrypted sensitive information can be viewed in the configuration center. These encrypted information can be used as needed, but the original plain text content cannot be directly obtained. This "divided authority" mechanism ensures the security of sensitive information during transmission and storage, and reduces the risk of data leakage.

[0089] After logging into the configuration center, the administrator can also review the configuration submitted by the R&D personnel, and fill in and modify the encryption policy for the sensitive information. In this way, sensitive information is effectively protected, and R&D personnel can also access and use the encrypted sensitive information when needed.

[0090] Based on the same inventive concept, the embodiment of the present application also provides a sensitive information processing device, such as Figure 5 As shown, the device comprises:

[0091] The collection module 501 is used to collect information configured by users with different configuration permissions for sensitive information, wherein the configured information includes an encryption policy configured for each piece of sensitive information by a user with configuration policy permissions, and a value configured for each piece of sensitive information by a user with configuration value permissions;

[0092] The encryption module 502 is used to respond to the encryption instruction and, for any piece of sensitive information, encrypt the value of the any piece of sensitive information using the encryption strategy of the any piece of sensitive information to obtain the ciphertext of the any piece of sensitive information.

[0093] In a possible implementation manner, the configured information further includes an application identifier configured for the target application by a user with configuration identifier authority or the user with configuration policy authority, wherein the value of the sensitive information is required during the operation of the target application;

[0094] The device also includes a generating module, which is used to generate a target configuration file corresponding to the application identifier.

[0095] In a possible implementation manner, the configured information further includes a decryption policy configured for each piece of sensitive information by a user with configuration policy authority;

[0096] The generation module is used to generate a target configuration file whose file name is the application identifier based on the ciphertext of each piece of sensitive information obtained by encryption and the decryption strategy of each piece of sensitive information.

[0097] In a possible implementation, the device further includes a decryption module, configured to:

[0098] In response to a decryption instruction, determine an identifier of a target application program contained in the decryption instruction, and query a target configuration file that matches the identifier; for any piece of sensitive information, determine a ciphertext of any piece of sensitive information in the target configuration file and a decryption strategy corresponding to the ciphertext of any piece of sensitive information; use the decryption strategy of any piece of sensitive information to decrypt the ciphertext of any piece of sensitive information to obtain a value of any piece of sensitive information.

[0099] In a possible implementation, the decryption module is used to:

[0100] The values ​​of each sensitive information obtained after decryption are fed back to the target application, so that the device where the target application is located can complete the function of the target application according to the values ​​of each sensitive information.

[0101] In a possible implementation, the decryption module is used to:

[0102] Responding to a decryption instruction triggered by receiving a decryption request sent by the target application.

[0103] In a possible implementation manner, the configured information further includes a name configured for each piece of sensitive information by a user with configuration name authority or a user with configuration policy authority;

[0104] The device also includes an input module for inputting the numerical value of any piece of sensitive information into a position corresponding to the name of any piece of sensitive information on the display interface.

[0105] Based on the same inventive concept, an embodiment of the present application further provides an electronic device, the device comprising:

[0106] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the sensitive information processing method as described above.

[0107] Refer to the following Figure 6 The electronic device 60 according to this embodiment of the present application is described. Figure 6 The electronic device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0108] like Figure 6 As shown, the electronic device 60 is in the form of a general electronic device. The components of the electronic device 60 may include but are not limited to: at least one processor 61, at least one memory 62, and a bus 63 connecting different system components (including the memory 62 and the processor 61).

[0109] The processor 61 is used to read and execute instructions in the memory 62, so that the at least one processor can execute a sensitive information processing method provided in the above embodiment.

[0110] Bus 63 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0111] The memory 62 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 621 and / or a cache memory 622 , and may further include a read-only memory (ROM) 623 .

[0112] The memory 62 may also include a program / utility 625 having a set (at least one) of program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0113] The electronic device 60 may also communicate with one or more external devices 64 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable an administrator to interact with the electronic device 60, and / or may communicate with any device that enables the electronic device 60 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 65. Furthermore, the electronic device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 66. As shown, the network adapter 66 communicates with other modules for the electronic device 60 via a bus 63. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0114] In some possible implementations, various aspects of a method for processing sensitive information provided by the present application may also be implemented in the form of a program product, which includes program code. When the program product runs on a computer device, the program code is used to enable the computer device to execute the steps of a method for processing sensitive information according to various exemplary implementations of the present application described above in this specification.

[0115] In addition, the present application also provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, wherein the computer program is used to enable a computer to execute any of the methods described in the above embodiments.

[0116] These computer program instructions may be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0118] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0119] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for processing sensitive information, characterized in that: The method comprises: Collect information configured by users with different configuration permissions for sensitive information, where the configured information includes an encryption policy configured by a user with configuration policy permissions for each piece of sensitive information, and a value configured by a user with configuration value permissions for each piece of sensitive information; In response to the encryption instruction, for any piece of sensitive information, the encryption strategy of any piece of sensitive information is used to encrypt the value of the any piece of sensitive information to obtain the ciphertext of any piece of sensitive information.

2. The method according to claim 1, characterized in that The configured information also includes an application identifier configured for a target application by a user with configuration identifier authority or a user with configuration policy authority, wherein the value of the sensitive information is required during the operation of the target application; After obtaining the ciphertext of any sensitive information, the method further includes: Generate a target configuration file corresponding to the application identifier.

3. The method according to claim 2, characterized in that The configured information also includes a decryption policy configured for each piece of sensitive information by a user with configuration policy authority; The generating a target configuration file corresponding to the application identifier includes: Based on the encrypted ciphertext of each piece of sensitive information and the decryption strategy of each piece of sensitive information, a target configuration file whose file name is the application identifier is generated.

4. The method according to claim 3, characterized in that After generating a target configuration file whose file name is the application identifier, the method further includes: In response to the decryption instruction, determining an identifier of a target application program included in the decryption instruction, and querying a target configuration file that matches the identifier; For any piece of sensitive information, determine the ciphertext of any piece of sensitive information in the target configuration file and the decryption strategy corresponding to the ciphertext of any piece of sensitive information; The ciphertext of the any piece of sensitive information is decrypted using the decryption strategy of the any piece of sensitive information to obtain the value of the any piece of sensitive information.

5. The method according to claim 4, characterized in that The method further comprises: The values ​​of each sensitive information obtained after decryption are fed back to the target application, so that the device where the target application is located can complete the function of the target application according to the values ​​of each sensitive information.

6. The method according to claim 4, characterized in that The response decryption instruction includes: Responding to a decryption instruction triggered by receiving a decryption request sent by the target application.

7. The method according to claim 1, characterized in that The configured information also includes a name configured for each piece of sensitive information by a user with configuration name authority or a user with configuration policy authority; Before encrypting the value of any piece of sensitive information by using the encryption strategy of any piece of sensitive information, the method further includes: On the display interface, the value of any piece of sensitive information is input into the position corresponding to the name of the any piece of sensitive information.

8. A sensitive information processing device, characterized in that: The device comprises: A collection module, used to collect information configured by users with different configuration permissions for sensitive information, wherein the configured information includes an encryption policy configured for each piece of sensitive information by a user with configuration policy permissions, and a value configured for each piece of sensitive information by a user with configuration value permissions; The encryption module is used to respond to the encryption instruction, and for any piece of sensitive information, encrypt the value of the any piece of sensitive information using the encryption strategy of the any piece of sensitive information to obtain the ciphertext of the any piece of sensitive information.

9. An electronic device, characterized in that: The device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor so that the at least one processor can execute any one of the methods of claims 1-7.

10. A computer program product, characterized in that The computer program product is used to make a computer execute the method according to any one of claims 1 to 7.

11. A computer storage medium, characterized in that: The computer storage medium stores a computer program, and the computer program is used to make a computer execute any one of the methods according to claims 1-7.