Data processing method and device

By using target drivers and filter drivers in electronic devices for encryption processing, the problems of user account switching and data access between different applications are solved, and high-security data storage and seamless switching are achieved, avoiding data leakage and loss.

CN119089467APending Publication Date: 2024-12-06LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When implementing data encryption of electronic equipment, it is difficult to ensure the seamlessness of user account switching and access to the same account between different applications. In addition, the hardware encryption device has the problem of data leakage and data loss after the same key, and the hardware encryption device has the same problem, resulting in data leakage and corruption.

Method used

By introducing target drivers and filter drivers in electronic devices, using target keys to encrypt data to be written, and performing encryption and decryption operations in kernel state, ensuring that different applications use the same or different keys to achieve transparent encryption and decryption. Prevent illegal attackers from locate data.

Benefits of technology

It realizes high security storage of user data and seamless account switching, avoids data leakage and loss, and improves data transparency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089467A_ABST
    Figure CN119089467A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device.The method comprises the steps that in response to an obtained target data writing request, encryption processing is conducted on to-be-written data through a target driver matched with the target data writing request; storing a target encrypted file obtained by encrypting the to-be-written data to a target file system; wherein the target driver performs encryption processing on the to-be-written data by using a target key, and the target key is a key generated at least based on target user information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to but is not limited to the field of computer technology, and in particular to a data processing method and device. Background Art

[0002] For users of electronic devices, the data security of data stored on the electronic devices is very important, especially data involving the user's personal privacy or business secrets. Therefore, how to encrypt user data to ensure the security of user data has become an urgent problem to be solved. Summary of the invention

[0003] In view of this, the present application at least provides a data processing method and device.

[0004] The technical solution of this application is implemented as follows:

[0005] In one aspect, the present application provides a data processing method, the method comprising:

[0006] In response to obtaining a target data write request, encrypting the data to be written using a target driver matching the target data write request;

[0007] The target encrypted file obtained by encrypting the data to be written is stored in the target file system;

[0008] The target drive encrypts the data to be written using a target key, and the target key is a key generated based on at least target user information.

[0009] In some embodiments, the method further comprises:

[0010] In response to obtaining a target data read request, decrypting the target data using a filter driver matching the target data read request to obtain data information to be read;

[0011] The target encrypted file is read from the target file system using the data information to be read, and the target encrypted file is decrypted using the filter driver to provide a decrypted target file.

[0012] In some embodiments, in response to obtaining a target data write request, encrypting the data to be written using a target filter driver matching the target data write request includes:

[0013] In response to obtaining a target data write request, determining a target filter driver matching the target data write request based on the target reference information;

[0014] Control the target filter driver to encrypt the data to be written using the target key to obtain the target encrypted file;

[0015] Wherein, the target key is a key generated based on at least one of user login information, target token, and device identification information;

[0016] The target reference information includes the source of the target data write request and / or attribute information of the data to be written.

[0017] In some embodiments, determining a target filter driver matching the target data write request based on the target reference information includes at least one of the following:

[0018] In response to obtaining a data write request of a target application, determining a first filter driver matching the data write request based on application information of the target application and / or first attribute information of the generated data to be written;

[0019] In response to obtaining a data write request generated by an operation of a target user on a target file, determining a second filter driver matching the data write request based on user login information of the target user and / or second attribute information of the target file;

[0020] In response to obtaining a data write request of the electronic device, a third filter driver matching the data write request is determined based on the operation information of the electronic device and / or the third attribute information.

[0021] In some embodiments, controlling the target filter driver to encrypt the data to be written using the target key to obtain the target encrypted file includes:

[0022] Sending at least one of the obtained user login information, target token, and device identification information to the target chip to generate a target key using the target chip;

[0023] Using the user login information and the fourth attribute information of the target chip to configure the file name of the data to be written;

[0024] The target filter driver is controlled to encrypt the data to be written after the configuration file name using the target key to obtain the target encrypted file.

[0025] In some embodiments, storing the target encrypted file obtained by encrypting the data to be written to the target file system includes:

[0026] The target encrypted file is stored in the target file system by using the filter manager in the kernel state, wherein the keys corresponding to different applications for encrypting the data to be written are the same or different, and the file names of the target encrypted files corresponding to different applications are different;

[0027] and / or,

[0028] The method further includes:

[0029] A first security verification is performed on the target data write request. After the verification is passed, a step of encrypting the data to be written using a target driver matching the target data write request is executed.

[0030] On the other hand, the present application also proposes a data processing method, comprising:

[0031] In response to obtaining a target data read request, decrypting the target data using a filter driver matching the target data read request to obtain data information to be read;

[0032] The target encrypted file is read from the target file system using the data information to be read, and the target encrypted file is decrypted using the filter driver to provide a decrypted target file.

[0033] In some embodiments, decrypting the target data read request using a filter driver that matches the target data read request to obtain the data information to be read includes at least one of the following:

[0034] In response to obtaining a target data read request of a target application, determining a fourth filter driver matching the target data read request based on application information of the target application and / or fifth attribute information of the data to be read, and redirecting the file name of the data to be read in the target data read request by using the fourth filter driver to obtain file name information of a target encrypted file that can be recognized by the target file system;

[0035] In response to obtaining a target data read request triggered by a target user, a fifth filter driver matching the target data read request is determined based on the target user's login information and / or the sixth attribute information of the data to be read, and the fifth filter driver is used to redirect the file name of the data to be read in the target data read request to obtain the file name information of the target encrypted file that can be recognized by the target file system.

[0036] In some embodiments, decrypting a target encrypted file using a filter driver to provide a decrypted target file includes:

[0037] The target encrypted file read from the target file system is sent to the corresponding filter driver by the filter manager in the kernel state for decryption, and the decrypted target file is returned to the target application in the user state for output;

[0038] and / or,

[0039] The method also includes:

[0040] A second security verification is performed on the target read request, and after the verification passes, a step of decrypting the target read request using a filter driver that matches the data read request is executed.

[0041] In another aspect, the present application further provides a data processing device, comprising:

[0042] an encryption module, configured to, in response to obtaining a target data write request, encrypt the data to be written using a target filter driver matching the target data write request; wherein the target filter driver encrypts the data to be written using a target key, the target key being a key generated based at least on target user information;

[0043] The storage module is used to store the target encrypted file obtained by encrypting the data to be written into the target file system.

[0044] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0046] Figure 1 A schematic diagram of the implementation flow of a data processing method provided in this application;

[0047] Figure 2 A schematic diagram of the implementation flow of another data processing method provided in this application;

[0048] Figure 3 A schematic diagram of the implementation flow of another data processing method provided in this application;

[0049] Figure 4 A system block diagram of a data processing system for executing the data processing method provided by the present application;

[0050] Figure 5 A system block diagram of another data processing system for executing the data processing method provided by the present application;

[0051] Figure 6 A schematic diagram of the structure of a data processing device provided in this application;

[0052] Figure 7 A schematic diagram of the composition structure of another data processing device provided by the present application;

[0053] Figure 8 A hardware entity schematic diagram of an electronic device provided in this application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting 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.

[0055] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0056] The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged with a specific order or sequence where permitted so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0057] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.

[0058] In the related art, in order to improve the security of data stored by users on electronic devices, the following data encryption schemes are proposed:

[0059] Solution 1: When different user accounts are logged into the operating system, the data of different users are stored separately. For example, users with different accounts can only view user data related to their own accounts in the system disk (e.g., C drive) of the electronic device. It can be seen that the problem with Solution 1 is that it is impossible to switch user accounts without shutting down or restarting the operating system, that is, it is impossible to switch user accounts seamlessly;

[0060] Solution 2 is to provide users with a unified user account, that is, when multiple applications are installed on an electronic device, users can use the unified user account to log in to the multiple applications, and can switch the login account of one of the applications to achieve unified switching of the login accounts of other applications without closing the applications. For example, Lenovo Xiaotian and Lenovo Artificial Intelligence Creator Zone (AI Painter) are related applications. Users can log in using a Lenovo unified account (for example, Lenovo Identity document, LID), and after the user switches the login account of Lenovo Xiaotian, the login account information in the AI ​​Painter will be switched synchronously. However, Solution 2 cannot achieve same-account data access between different applications, that is, the data generated or stored by the user through Lenovo Xiaotian cannot be accessed by the AI ​​Painter;

[0061] Solution 3: Use an encryption card, such as a USB shield, to encrypt data on electronic devices to achieve hardware-level encryption of user data. However, the problem with Solution 3 is that different user accounts running on the same hardware have the same encryption key, which means that after switching user accounts, data from other user accounts can be seen by using the hardware encryption device. In addition, if the hardware encryption device is damaged, it cannot be decrypted, causing the user to lose the corresponding encrypted data.

[0062] Solution 4: Use hook technology to achieve transparent encryption at the application layer. However, hook technology can easily destroy the stability of the operating system and can be easily cracked by reverse hook technology.

[0063] Based on this, the present application provides a data processing method, which can be executed by a processor of an electronic device. The electronic device may refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with data processing capabilities.

[0064] Figure 1 A schematic diagram of the implementation flow of a data processing method provided in this application, such as Figure 1 As shown, the method includes the following steps S101 to S102:

[0065] Step S101, in response to obtaining a target data write request, encrypting the data to be written using a target driver matching the target data write request; wherein the target driver encrypts the data to be written using a target key, and the target key is a key generated based on at least target user information.

[0066] Here, the data to be written may be any type of data or file, for example, vector data, text data, image data, audio data, video data, etc.

[0067] In some embodiments, the data to be written may include a personal knowledge base (PKB) file generated by the target application, for example, vector data or application data generated by an AI application based on interaction with a user.

[0068] In some embodiments, the data to be written may include files that need to be stored in a designated space by the target user; wherein the designated space is an encrypted space corresponding to the target user, for example, a safe space in an electronic device.

[0069] In some embodiments, the data to be written may include a file specified by a target user that needs to be encrypted using a file encryption application.

[0070] In some embodiments, the target data write request refers to a request to write the data to be written into a specified storage space, for example, a write request for PKB data, a request to store the data to be written into a safe space of an electronic device, a request to create a file in the safe space, and an encryption operation for a user-specified file.

[0071] In some embodiments, the target driver may be a filter driver or other types of virtual drivers located in the kernel state of the electronic device to perform encryption processing on the to-be-written data generated by at least one application running in the user state.

[0072] The target driver includes a filter driver for encrypting the data to be written. In some embodiments, the target filter driver can use corresponding software and / or firmware to perform encryption processing on the data to be written.

[0073] In some embodiments, the target filter driver may be a driver based on a Trusted AI Controller (TAC) chip. Here, the target filter driver may generate a target key using a key generation function of the TAC chip, so as to encrypt the data to be written using the generated target key.

[0074] In some embodiments, the target filter driver may be a driver based on a fingerprint chip. Here, the target filter driver may utilize the key generation function and fingerprint recognition function of the fingerprint chip to generate a target key and verify the legitimacy of the user, so as to utilize the generated target key to encrypt the data to be written generated by the legitimate user.

[0075] In some embodiments, the target filter driver may be a driver based on a speech recognition engine. Here, the target filter driver may utilize the key generation function and the sound recognition function of the speech recognition engine to generate a target key and verify the legitimacy of the user, so as to utilize the generated target key to encrypt the data to be written generated by the legitimate user.

[0076] In some embodiments, the target filter driver may be a driver based on a TPM (Trusted Platform Module, TPM) security chip. Here, the target filter driver may generate a target key using the key generation function of the TPM security chip, so as to encrypt the data to be written using the generated target key.

[0077] Here, the target key is a key generated based on at least the target user information, that is, the target key is associated with the target user information.

[0078] The target user information may include at least one of the following: the target user's account information registered on the supplier's server, the target user's biometric information (e.g., the target user's fingerprint information, voiceprint information, facial feature information, etc.) and / or the device information of the electronic device used by the target user, etc.

[0079] As in the above embodiment, when the target filter driver is a driver based on a TAC chip, fingerprint chip, voice recognition engine or TPM security chip, the target key is a key generated based on target user information using the TAC chip, fingerprint chip, voice recognition engine or TPM security chip.

[0080] In this way, when a target data write request is received, a target filter driver corresponding to the target data write request is determined, so as to encrypt the data to be written using the target filter driver and the corresponding target key.

[0081] In some embodiments, the data to be written is encrypted, including the data to be written and its corresponding file name. For example, the data to be written is encrypted using a specified encryption algorithm and a target key, and the original file name corresponding to the data to be written is encrypted using target user information and the original file name corresponding to the data to be written.

[0082] In some embodiments, the specified encryption algorithm may include the Advanced Encryption Standard (AES) algorithm, the Data Encryption Standard (DES) algorithm, the International Data Encryption Algorithm (IDEA) algorithm, the RSA encryption algorithm, and any encryption algorithm commonly used in the art.

[0083] Step S102, storing the target encrypted file obtained by encrypting the data to be written into the target file system.

[0084] Here, the target encrypted file refers to a file obtained by encrypting the data to be written, for example, the target encrypted file is obtained by encrypting the data to be written and its original file name.

[0085] The target file system refers to a storage system corresponding to the target encrypted file. In some embodiments, the target file system may be a file system on an electronic device, or a file system on a remote electronic device or server.

[0086] In the data processing method provided by the present application, in response to obtaining a target data write request, the target driver matching the target data write request is used to encrypt the data to be written, and the target encrypted file obtained by encrypting the data to be written is stored in the target file system; wherein, the target driver uses a target key to encrypt the data to be written, and the target key is a key generated based on at least target user information. In this way, since the encryption processing of the data to be written is performed by the target driver using the target key, and the target key is generated based on the target user information, the encryption processing of the data to be written is implemented based on the target user information, that is, the encryption processing of the data to be written corresponding to different applications based on the target user information is implemented;

[0087] In addition, when the target driver works in the kernel state of the electronic device, the process of encrypting the data to be written by using the target driver can be protected by the operating system, and the processing speed is faster and more stable;

[0088] In addition, when the target encrypted file includes the encrypted file of the data to be written itself and the file name after the original file name of the data to be written is encrypted or redirected, the file name operated by the target application or the target user is the original file name of the data to be written, and the file name stored in the target file system is the encrypted or redirected file name, thereby realizing transparent encryption; at the same time, this prevents illegal attackers from locating the data to be written in the target file system based on the file name, thereby improving data security.

[0089] In some embodiments, the data processing method provided by the present application further includes the following steps S103 to S104:

[0090] Step S103 , in response to obtaining the target data read request, decrypting the target data read request using a filter driver matching the target data read request to obtain data information to be read.

[0091] Here, the target data read request refers to a request to read an encrypted file.

[0092] In some embodiments, the target data read request may include a request for the target application to obtain the target file. For example, during the interaction between the target user and the AI ​​application, the AI ​​application requests to read PKB data from the file system; another example, the target user requests to share the encrypted file in the safe space; another example, the target user requests to delete the encrypted file in the safe space; another example, the target user requests to edit any encrypted file; and so on.

[0093] Here, the filter driver refers to a driver for performing decryption processing on encrypted files.

[0094] In some embodiments, the filter driver is a virtual driver running in the kernel mode of the electronic device.

[0095] In some embodiments, the filter driver may perform the decryption process using software and / or firmware.

[0096] In some embodiments, the filter driver that matches the target data read request may be a driver based on a TAC chip, a fingerprint chip, a voice recognition engine, or a TPM security chip.

[0097] In some embodiments, a matching filter driver may be determined based on the source of the target data read request. For example, when the target data read request comes from a target AI application, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target data request comes from a system application, a filter driver based on a fingerprint chip is determined as a matching filter driver; and so on.

[0098] In some embodiments, a matching filter driver may be determined based on the type of the target data read request. For example, when the target data read request is a read request for vector or text data, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target data request is a read request for audio data, a filter driver based on a speech recognition engine is determined as a matching filter driver; and so on.

[0099] In some embodiments, a matching filter driver may be determined based on the request content of the target data read request. For example, when the target data read request is a read request for a file in the first encrypted file set, a filter driver based on a TAC chip is determined as a matching filter driver; when the target data read request is a read request for a file in the second encrypted file set, a filter driver based on a fingerprint chip, a voice recognition engine, or a TPM security chip is determined as a matching filter driver; and so on.

[0100] In some embodiments, a matching filter driver may be determined based on the generation method of the target file requested by the target data read request. For example, when the target file is PKB data automatically generated based on an AI application, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target file is a file determined based on a user download operation, a filter driver based on a fingerprint is determined as a matching filter driver; and so on.

[0101] In some embodiments, a filter driver that performs encryption processing on a target file requested by a target data read request may be determined as a matching filter driver. For example, when a target file requested by a target data read request is encrypted using a filter driver based on a TAC chip, the filter driver based on a TAC chip is determined as a matching filter driver.

[0102] In some embodiments, decrypting the target data read request by using a filter driver that matches the target data read request means decrypting the target data read request based on the target user information by using the matching filter driver to obtain the data information to be read.

[0103] In some embodiments, the data information to be read refers to information related to the target encrypted file of the target file, and the target encrypted file can be uniquely determined based on the data information to be read. For example, the data information to be read can be the file name information of the target encrypted file (corresponding to the encrypted file name of the original file name), file storage location information, file description information, etc.

[0104] Step S104: reading a target encrypted file from the target file system using the to-be-read data information, and decrypting the target encrypted file using the matched filter driver to provide a decrypted target file.

[0105] Here, based on the data information to be read, for example, the encrypted file name, file storage location information and / or file description information, the target encrypted file is read from the target file system.

[0106] After the target encrypted file is obtained, the target encrypted file is decrypted using the matching filter driver to obtain the decrypted target file.

[0107] In some embodiments, the matching filter driver may use a key corresponding to a target key used to encrypt the target file to perform decryption processing on the target encrypted file, for example, using an AES public and private key or an RSA encryption password to perform decryption processing.

[0108] Here, providing the decrypted target file refers to sending the target file to the target application corresponding to the target data read request, so that the target application can display and output the target file or the target application can use the target file to perform subsequent processing.

[0109] In some embodiments, in response to obtaining a target data write request, the target filter driver matching the target data write request is used to encrypt the data to be written, that is, the above step S101 can be implemented as the following steps S1011 to S1012:

[0110] Step S1011, in response to obtaining a target data write request, determining a target filter driver matching the target data write request based on target reference information; the target reference information includes a source of the target data write request and / or attribute information of data to be written.

[0111] Here, the target reference information is information related to the target data write request and / or the data to be written.

[0112] In some embodiments, the target reference information includes source information of the target data write request. In some embodiments, the source information may indicate whether the target data write request is from a save operation of application data generated by a target application, a copy operation or a download operation from another device by a user, an edit operation of data by a user, or an operation of creating a file in a specified file space by a user, etc.

[0113] For example, when the target data write request comes from application data generated by the target application and the target user uses his biometric information to log in to the target application, the target filter driver can be determined as a fingerprint chip-based filter driver; for another example, when the target data write request comes from the user's operation of copying files from other devices, the target filter driver can be determined as a TAC chip-based filter driver.

[0114] In some embodiments, the target reference information includes attribute information of the data to be written; wherein the attribute information includes type information, content information, data volume information, importance information and source information of the data to be written, etc.

[0115] For example, when the data to be written is vector data or text data, the filter driver based on the TAC chip is determined as the target filter driver; for another example, when the data to be written is audio data, the filter driver based on the speech recognition engine is determined as the target filter driver; and so on.

[0116] For example, when the content of the data to be written is data related to the personal privacy of the target user, the filter driver based on the fingerprint chip is determined as the target filter driver; when the content of the data to be written is data related to the work content of the target user, the filter driver based on the TAC chip is determined as the target filter driver.

[0117] For example, when the amount of data to be written is small, the filter driver based on the TAC chip is determined as the target filter driver; when the amount of data to be written is large, the filter driver based on the fingerprint chip is determined as the target filter driver.

[0118] It should be noted that the correspondence between the above target reference information and the target filter driver can be preset by the target user or randomly assigned by the system, and the specific correspondence is not limited here.

[0119] Step S1012, controlling the target filter driver to encrypt the data to be written using the target key to obtain a target encrypted file; wherein the target key is a key generated based on at least one of user login information, a target token, and device identification information.

[0120] Here, the user login information refers to identification information of a user logging into a specified operating system or application, which can characterize the uniqueness of the target user.

[0121] In some embodiments, the user login information may include the user account and password information registered by the target user on the supplier server, and may also include the target user's biometric information, such as fingerprint information, voiceprint information, facial feature information, and the like.

[0122] The target token refers to the token information returned from the supplier server after the target user logs in to the supplier server using the user name and password information or biometric information.

[0123] The device identification information refers to the device identification information of the electronic device currently used by the target user, such as the device serial number of the electronic device, etc.; or, the chip identification information of the target chip used by the target filter driver, such as the chip serial number (Serial Number, SN) of the TAC chip, the chip SN of the fingerprint chip, etc.

[0124] In some embodiments, a target key is generated based on at least one of user login information, target token, and device identification information. The user login information, target token, and device identification information may be used as the key, or a combination of at least two of them may be used as the key, or one of the information or the combination of information may be encrypted or hashed using a specified encryption algorithm or hash function to obtain the target key.

[0125] For example, a target key is generated based on a target token; a target key is generated based on a combination of user login information and a target token; a target key is generated based on user login information, a target token and a target user's biometric information; a target key is generated based on a target user's biometric information; a target key is generated based on user login information, a target token and device identification information; a target key is generated based on a target user's biometric information and device identification information; and so on.

[0126] In this way, the target filter driver is controlled to use the generated target secret key and the specified encryption algorithm to encrypt the data to be written to obtain the target encrypted file.

[0127] In the above embodiment, a target key is generated based on unique information that can identify the target user or user device, and the target key is used to encrypt the data to be written, so that the encryption processing of the data to be written is separated from the specific target application, so that the electronic device can separately manage the data to be written that needs to be encrypted without the need to manage encryption schemes and keys based on applications.

[0128] In some embodiments, determining a target filter driver matching the target data write request based on the target reference information, that is, the above step S1011, can be implemented as at least one of the following steps S1013 to S1015:

[0129] Step S1013 , in response to obtaining a data write request of a target application, determining a first filter driver matching the data write request based on application information of the target application and / or first attribute information of the generated data to be written.

[0130] In some embodiments, the target application may be an AI application, a non-AI application, a system application, or the like.

[0131] The application information of the target application refers to information related to the operation of the target application. In some embodiments, the application information may include application identification information, login information, application type information, usage frequency information, usage duration information, whether it is the first installation information, etc. of the target application.

[0132] In some embodiments, the first attribute information of the data to be written may include type information of the data to be written, for example, vector type, text type, voice type, picture type, video type, PPT type, PDF type, WORD type, and the like.

[0133] For example, for data to be written of vector type, text type, picture type, PPT type, PDF type and / or WORD type, a filter driver based on a TAC chip can be determined as the first filter driver; for data to be written of voice type and video type, a filter driver based on a speech recognition engine can be determined as the first filter driver.

[0134] In some embodiments, the first attribute information of the data to be written may also include content information of the data to be written, for example, the data to be written is a password, a website, chat data, a shared file, and so on.

[0135] For example, for data to be written containing URLs and shared files, a filter driver based on a TAC chip can be determined as the first filter driver; for files to be written containing passwords and chat data, a filter driver based on a fingerprint chip or a voice recognition engine can be determined as the first filter driver.

[0136] In some embodiments, the first attribute information of the data to be written may also include the degree of association between the data to be written and the target user, for example, whether the data to be written belongs to personal data of the target user, and so on.

[0137] For example, for data to be written that is highly associated with the target user, a filter driver based on a fingerprint chip or a voice recognition engine can be determined as the first filter driver; for data to be written that is less associated with the target user, a filter driver based on a TAC chip can be determined as the first filter driver.

[0138] In some embodiments, the first attribute information of the data to be written may also include the data volume of the data to be written.

[0139] In some embodiments, the first attribute information of the data to be written may also include the importance of the data to be written, for example, the importance of the data to be written relative to the personal privacy, public safety, commercial security, etc. of the target user.

[0140] For example, for data to be written with a higher degree of importance, a filter driver based on a fingerprint chip or a voice recognition engine may be determined as the first filter driver; for data to be written with a lower degree of importance, a filter driver based on a TAC chip may be determined as the first filter driver.

[0141] In some embodiments, the first attribute information of the data to be written may also include the source of the data to be written, for example, the data to be written comes from data generated by the target application, from user creation, from the network, and so on.

[0142] For example, for data generated by the target application and data to be written created by the user, a filter driver based on a fingerprint chip or a voice recognition engine can be determined as the first filter driver; for data to be written from the network, a filter driver based on a TAC chip can be determined as the first filter driver.

[0143] Here, since different applications, data of different types, contents, data volumes, importance and / or sources require different encryption standards to be executed, determining the first filter driver based on the application information of the target application and / or the first attribute information of the generated data to be written can adapt to different encryption standard requirements.

[0144] Step S1014, in response to obtaining a data write request generated by an operation of a target user on a target file, determining a second filter driver matching the data write request based on the user login information of the target user and / or the second attribute information of the target file.

[0145] Here, the target user's operation on the target file refers to a data write request for writing the target file into the target file system generated by the target user's save operation, download operation, edit operation, storage location migration operation, etc. on the target file.

[0146] User login information refers to the login information of the target user logging into the electronic device or the target application.

[0147] In some embodiments, the user login information may include the user name and password information, biometric information, login time information, location coordinate information, etc. of the target user logging into the electronic device or the target application.

[0148] For example, when the target user logs in using username and password information, the filter driver based on the TAC chip is determined as the second filter driver; when the target user logs in using fingerprint, the filter driver based on the fingerprint chip is determined as the second driver.

[0149] For another example, when the target user's login time information indicates that the user logged in during non-working hours, the fingerprint chip-based filter driver is determined as the second filter driver; when the target user's login time information indicates that the user logged in during working hours, the TAC chip-based filter driver is determined as the second filter driver.

[0150] For another example, when the location coordinates of the target user represent that the user is logged in in a public place, the filter driver based on the fingerprint chip is determined as the second filter driver; when the location coordinates of the target user represent that the user is logged in in a private environment, the filter driver based on the TAC chip is determined as the second filter driver.

[0151] In some embodiments, the second attribute information of the target file may include type information, content information, data volume information, importance, source, etc. of the target file. Here, for the detailed description of the type information, content information, data volume information, importance, and source, please refer to the detailed description of the first attribute information above; for the specific implementation of determining the second filter driver based on the second attribute information, please refer to the detailed description of determining the first filter driver based on the first attribute information above.

[0152] Step S1015 , in response to obtaining a data write request of the electronic device, determining a third filter driver matching the data write request based on the operation information and / or third attribute information of the electronic device.

[0153] Here, the data write request of the electronic device may include system data, application cache data, etc. generated during the operation of the electronic device. The electronic device writes such data to the target file system, which can facilitate users to search for the operation information of the electronic device and assist the electronic device in restoring related functions.

[0154] The operation information of an electronic device refers to information related to the operation status or operation mode of the electronic device.

[0155] In some embodiments, the operation information of the electronic device may include application information and operation mode information of the electronic device, for example, the electronic device is in personal computer (PC) mode, monitor mode, game mode, tablet mode, etc.

[0156] For example, when the electronic device is in PC mode, the filter driver based on the fingerprint chip can be determined as the third filter driver; when the electronic device is in game mode, the filter driver based on the TAC chip can be determined as the third filter driver.

[0157] The third attribute information refers to the device information of the electronic device. In some embodiments, the third attribute information may include device identification information, device software and / or hardware configuration information of the electronic device, and the like.

[0158] For example, a correspondence between the device identification information and the filter driver is pre-established, so that the corresponding third filter driver can be determined based on the device identification information.

[0159] In some embodiments, when the device configuration information of the electronic device indicates that the software and / or hardware configuration of the electronic device is higher, a filter driver with higher encryption complexity can be determined as the third filter driver; otherwise, a filter driver with lower encryption complexity can be determined as the third filter driver.

[0160] In the above embodiment, the third filter driver is determined based on the operation information, device identification and / or device configuration information of the electronic device, so that the encryption method of the electronic device data can be adapted to the current operation state and / or device configuration of the electronic device.

[0161] In some embodiments, the target filter driver is controlled to encrypt the data to be written using the target key to obtain a target encrypted file, that is, the above step S1012 can be implemented as the following steps S1016 to S1018:

[0162] Step S1016, sending at least one of the obtained user login information, target token, and device identification information to the target chip, so as to generate the target key using the target chip.

[0163] Here, the target chip refers to the chip that assists the target filter driver in generating the target key.

[0164] In some embodiments, the target chip includes a TAC chip, a fingerprint chip, a voice recognition engine, a TMP security chip, and any data encryption chip commonly used in the art.

[0165] Here, after at least one of the user login information, the target token, and the device identification information is sent to the target chip, the target chip can automatically generate a corresponding target key based on the received information.

[0166] Step S1017: configure the file name of the data to be written using the user login information and the fourth attribute information of the target chip.

[0167] Here, the fourth attribute information of the target chip may include identification information of the target information, SN, and the like.

[0168] The file name of the data to be written is configured using the user login information, the fourth attribute information of the target chip, and the original file name of the data to be written, that is, the original file name of the data to be written is redirected to obtain the redirected file name. For example, the user name information in the user login information, the chip SN of the target chip, and the original file name of the data to be written are combined to obtain the redirected file name.

[0169] After redirection processing is performed on the original file name of the data to be written, when reading the data, it is necessary to search for the corresponding encrypted file based on the redirected file name. In this way, if any one of the user name information of the encrypted file, the fourth attribute information of the target chip, and the original file name of the data to be written is wrong, the correct encrypted file cannot be found, thereby improving the security of the data.

[0170] In some embodiments, the redirected file name of the data to be written is encrypted or hashed to obtain an encrypted file name corresponding to the data to be written.

[0171] For example, first, the redirected file name is determined as "user login information + TAC chip SN + original file name"; then, the file name is hashed to obtain a hashed file name, such as "a3f7ca8de0b". It can be seen that after the hashing process, the user login information, TAC chip SN, and original file name are hidden in the hashed file name, thereby further improving data security.

[0172] Step S1018, controlling the target filter driver to use the target key to encrypt the data to be written after the configuration file name to obtain a target encrypted file.

[0173] Here, the target filter driver is used to encrypt the data to be written based on the target secret key and the specified encryption algorithm to obtain the target encrypted file.

[0174] In the above embodiment, while the data to be written is encrypted, the file name of the data to be written is redirected, so that an illegal user cannot find the input to be written based on the file name of the data to be written.

[0175] In some embodiments, the target encrypted file obtained by encrypting the data to be written is stored in the target file system, that is, the above step S102 can be implemented as the following step S1021:

[0176] Step S1021, using the filter manager in kernel state to store the target encrypted file to the target file system, wherein the keys corresponding to different applications for encrypting the data to be written are the same or different, and the file names of the target encrypted files corresponding to different applications are different.

[0177] Here, the target encrypted file includes the encrypted data obtained by encrypting the data to be written and the redirected file name obtained by redirecting the original file name of the data to be written.

[0178] A filter manager refers to a software program or firmware used to control and manage at least one filter driver in an electronic device.

[0179] The filter manager runs in the kernel state of the electronic device. In this way, when the application data generated by different applications running in the user state or the data edited, deleted or created by the user is encrypted through the filter manager and the filter driver, the encryption processing action is executed in the kernel state, so that the encryption processing action of the target filter driver on the written data will not be perceived by the user state application and the target user, thereby realizing transparent encryption; at the same time, the program running in the kernel state can be protected by the operating system, and the processing speed is faster and more stable.

[0180] Here, the keys corresponding to different applications for encrypting the data to be written are the same, so the filter driver can manage the same encryption key for each application, thereby saving storage space and computing resources; when the keys corresponding to different applications for encrypting the data to be written are different, different keys can be set for applications with different security levels or open levels for differentiated management.

[0181] When redirecting the original file name of the data to be written, the identification information corresponding to the application can be used as part of the redirected file name, so that the file names of target encrypted files corresponding to different applications are different, so as to distinguish the encrypted files corresponding to different applications.

[0182] In some embodiments, the data processing method further includes the following steps S105:

[0183] Step S105 , performing a first security verification on the target data write request, and after the verification passes, executing a step of encrypting the data to be written by using a target filter driver matching the target data write request.

[0184] In some embodiments, performing a first security verification on a target data write request refers to verifying the legitimacy of the target data write request.

[0185] In some embodiments, it is verified whether the target application that generates the target data write request is a legitimate application; it is verified whether the target user currently logged into the target application is a legitimate user; it is verified whether the target file corresponding to the target data write request is a legitimate file, and so on.

[0186] In this way, after the verification is passed, encryption processing is performed on the data to be written, which can prevent illegal users or illegal applications from writing attack data into the target file system, thereby improving the data security of the electronic device.

[0187] On the other hand, the present application also provides a data processing method, which can be executed by a processor of an electronic device. The electronic device may refer to a server, a laptop, a tablet computer, a desktop computer, a smart TV, a set-top box, a mobile device (such as a mobile phone, a portable video player, a personal digital assistant, a dedicated messaging device, a portable gaming device) and other devices with data processing capabilities.

[0188] like Figure 2 As shown, the data processing method includes the following steps S201 to S202:

[0189] Step S201 , in response to obtaining a target data read request, decrypting the target data read request using a filter driver matching the target data read request to obtain data information to be read.

[0190] Here, the target data read request refers to a request to read an encrypted file.

[0191] In some embodiments, the target data read request includes a request by the target application to obtain the target file. For example, during the interaction between the target user and the AI ​​application, the AI ​​application requests to read PKB data from the file system; another example, the target user requests to share the encrypted file in the safe space; another example, the target user requests to delete the encrypted file in the safe space; another example, the target user requests to edit any encrypted file; and so on.

[0192] Here, the matched filter driver refers to a driver for performing decryption processing on the encrypted file.

[0193] In some embodiments, the matching filter driver is a virtual driver running in the kernel mode of the electronic device.

[0194] In some embodiments, the filter driver may perform the decryption process using software and / or firmware.

[0195] In some embodiments, the matching filter driver can be a filter driver based on a TAC chip, a filter driver based on a fingerprint chip, a filter driver based on a TPM security chip, a filter driver based on a speech recognition engine, or a filter driver based on any type of encryption chip commonly used in the art.

[0196] In some embodiments, a matching filter driver may be determined based on the source of the target data read request. For example, when the target data read request comes from a target AI application, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target data request comes from a system application, a filter driver based on a fingerprint chip is determined as a matching filter driver; and so on.

[0197] In some embodiments, a matching filter driver may be determined based on the type of the target data read request. For example, when the target data read request is a read request for vector or text data, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target data request is a read request for audio data, a filter driver based on a speech recognition engine is determined as a matching filter driver; and so on.

[0198] In some embodiments, a matching filter driver may be determined based on the request content of the target data read request. For example, when the target data read request is a read request for a file in the first encrypted file set, a filter driver based on a TAC chip is determined as a matching filter driver; when the target data read request is a read request for a file in the second encrypted file set, a filter driver based on a fingerprint chip, a voice recognition engine, or a TPM security chip is determined as a matching filter driver; and so on.

[0199] In some embodiments, a matching filter driver may be determined based on the generation method of the target file requested by the target data read request. For example, when the target file is PKB data automatically generated based on an AI application, a filter driver based on a TAC chip is determined as a matching filter driver; for another example, when the target file is a file determined based on a user download operation, a filter driver based on a fingerprint is determined as a matching filter driver; and so on.

[0200] In some embodiments, a filter driver that performs encryption processing on a target file requested by a target data read request may be determined as a matching filter driver. For example, when a target file requested by a target data read request is encrypted using a filter driver based on a TAC chip, the filter driver based on a TAC chip is determined as a matching filter driver.

[0201] In some embodiments, decrypting the target data read request by using a filter driver that matches the target data read request means decrypting the target data read request based on the target user information by using the matching filter driver to obtain the data information to be read.

[0202] Here, the target key is a key generated based on at least the target user information, that is, the target key is associated with the target user information.

[0203] The target user information may include at least one of the following: the target user's account information registered on the supplier's server, the target user's biometric information (e.g., the target user's fingerprint information, voiceprint information, facial feature information, etc.) and / or the device information of the electronic device used by the target user, etc.

[0204] As in the above embodiment, when the matching filter driver is a driver based on a TAC chip, fingerprint chip, voice recognition engine or TPM security chip, the target key is the key generated based on the target user information using the TAC chip, fingerprint chip, voice recognition engine or TPM security chip.

[0205] In some embodiments, the data information to be read refers to information related to the target encrypted file of the target file, and the target encrypted file can be uniquely determined based on the data information to be read. For example, the data information to be read can be the file name information of the target encrypted file (corresponding to the encrypted file name of the original file name), file storage location information, file description information, etc.

[0206] Step S202, using the data information to be read to read the target encrypted file from the target file system, using the filter driver to decrypt the target encrypted file based on the target key to provide a decrypted target file; wherein the target key is a key generated based on at least target user information.

[0207] Here, based on the data information to be read, for example, the encrypted file name, file storage location information and / or file description information, the target encrypted file is read from the target file system.

[0208] After the target encrypted file is obtained, the target encrypted file is decrypted using the matching filter driver to obtain the decrypted target file.

[0209] In some embodiments, the matching filter driver may use a key corresponding to a target key used to encrypt the target file to perform decryption processing on the target encrypted file, for example, using an AES public and private key or an RSA encryption password to perform decryption processing.

[0210] Here, providing the decrypted target file refers to sending the target file to the target application corresponding to the target data read request, so that the target application can display and output the target file or the target application can use the target file to perform subsequent processing.

[0211] In the above data processing method provided by the present application, in response to obtaining a target data read request, the target data read request is decrypted using a filter driver matching the target data read request to obtain data information to be read; the target encrypted file is read from the target file system using the data information to be read, and the target encrypted file is decrypted using the filter driver to provide a decrypted target file. In this way, since the target data read request for the target file is obtained by decrypting based on the target key using the filter driver matching the target data read request, and the target key is generated based on the target user information, the target file can be decrypted while keeping the target application running, and the target files belonging to the same target user information can be decrypted using the same key, without the need to manage different decryption schemes and keys for different applications, saving computing resources of the electronic device.

[0212] In addition, when the matching filter driver works in the kernel state of the electronic device, the process of decrypting the data to be read by using the matching filter driver can be protected by the operating system, and the processing speed is faster and more stable;

[0213] In addition, when the target encrypted file includes the encrypted file of the data to be written itself and the file name after the original file name of the data to be written is encrypted or redirected, the file name operated by the target application or the target user is the original file name of the data to be written, and the file name stored in the target file system is the encrypted or redirected file name, thereby realizing transparent decryption; at the same time, this prevents illegal attackers from locating the data to be read in the target file system based on the file name, thereby improving data security.

[0214] In some embodiments, the data read request is decrypted by using a filter driver matching the data read request to obtain the data information to be read, that is, the above step S201 can be implemented as at least one of the following steps S2011 to S2012:

[0215] Step S2011, in response to obtaining a data read request from a target application, determining a fourth filter driver that matches the data read request based on application information of the target application and / or fifth attribute information of the data to be read, and using the fourth filter driver to redirect the file name of the data to be read in the data read request to obtain file name information of a target encrypted file that can be recognized by the target file system.

[0216] Here, the data read request of the target application refers to a read request for data to be read generated during the operation of the target application, for example, a read request for PKB data of the target user generated by an AI application.

[0217] The application information of the target application refers to information related to the operation of the target application. In some embodiments, the application information may include application identification information, login information, application type information, usage frequency information, usage duration information, whether it is the first installation information, etc. of the target application.

[0218] Here, for a specific implementation of determining the fourth filter driver based on the application information of the target application, reference may be made to the above description of determining the first filter driver based on the application information of the target application.

[0219] In some embodiments, the fifth attribute information of the data to be read may include information such as the type of the data to be read, the degree of association with the target user, and the degree of importance.

[0220] Here, for a specific implementation of determining the fourth filter driver based on the type of data to be read, the degree of association with the target user, and the degree of importance, please refer to the above description of determining the first filter driver based on the first attribute information of the data to be written.

[0221] In some embodiments, the fifth attribute information of the data to be read may include information of the target filter driver used when performing encryption processing on the data to be read. In this way, the target filter driver used to perform encryption processing on the data to be read may be determined as the fourth filter driver.

[0222] In some embodiments, using the fourth filter driver to redirect the file name of the data to be read in the target data read request means using the fourth filter driver to redirect the original file name of the data to be read based on the source file name of the data to be read and information related to the target user, target application and / or electronic device.

[0223] In some embodiments, the file name of the data to be read is redirected using the user login information, the fourth attribute information of the target chip, and the file name of the data to be read. For example, the user name information in the user login information, the chip SN of the target chip, and the file name of the data to be read are combined to obtain the redirected file name.

[0224] Here, the file name obtained after redirection is the file name information of the target encrypted file corresponding to the data to be read and stored in the target file system.

[0225] Since the redirected file name is determined based on the user login information, the fourth attribute information of the target chip and the original file name of the data to be read, if an error occurs when searching for the encrypted file's user name information, the fourth attribute information of the target chip and the original file name, the correct encrypted file cannot be found, thereby improving data security.

[0226] Step S2012, in response to obtaining a data read request triggered by a target user, determining a fifth filter driver that matches the data read request based on the user login information of the target user and / or the sixth attribute information of the data to be read, and using the fifth filter driver to redirect the file name of the data to be read in the data read request to obtain the file name information of the target encrypted file that can be recognized by the target file system.

[0227] Here, the data read request triggered by the target user refers to the data read request generated by the target user for editing, deleting, moving, sharing, etc. of the data to be read. For example, the target user is used to edit, move, share, etc. the encrypted files in the safe space.

[0228] User login information refers to the identification information used by a user to log into a specified operating system or application, which can uniquely identify the target user.

[0229] In some embodiments, the user login information may include the user account and password information registered by the target user on the supplier server, and may also include the target user's biometric information, such as fingerprint information, voiceprint information, facial feature information, and the like.

[0230] Here, the specific implementation of determining the fifth filter driver based on the user login information may refer to the above description on determining the second filter driver based on the user login information.

[0231] The sixth attribute information of the data to be read may include information such as the type of the data to be read, the degree of association with the target user, the importance and the source of the data.

[0232] Here, the specific implementation manner of determining the fifth filter driver based on the sixth attribute information of the data to be read may refer to the above description on determining the first filter driver based on the first attribute information of the data to be written.

[0233] Here, the specific implementation method of using the fifth filter driver to redirect the file name of the data to be read to obtain the file name information of the target encrypted file that can be recognized by the target file system can refer to the above description of using the fourth filter driver to redirect the file name of the data to be read.

[0234] In some embodiments, the target encrypted file is decrypted by using the filter driver to provide a decrypted target file, that is, the above step S202 can be implemented as the following step S2021:

[0235] Step S2021: Using the filter manager in kernel state, the target encrypted file read from the target file system is sent to the corresponding filter driver for decryption, and the decrypted target file is returned to the target application in user state for output.

[0236] Here, the filter manager refers to a software program or firmware used to control and manage at least one filter driver in an electronic device.

[0237] The filter manager runs in the kernel state of the electronic device. In this way, when data read requests generated by different applications running in the user state or data read requests triggered by the target user can be decrypted by the corresponding filter driver, the decryption processing action is executed by the filter manager running in the kernel state to control the corresponding filter driver, so that the decryption action of the corresponding filter driver on the target encrypted file will not be perceived by the user state application and the target user.

[0238] In some embodiments, the data processing method provided by the present application further includes the following steps S203:

[0239] Step S203, performing a second security verification on the target read request, and after the verification passes, executing a step of decrypting the target read request by using a filter driver matching the data read request.

[0240] In some embodiments, performing a second security verification on the target data read request refers to verifying the legitimacy of the target data read request.

[0241] In some embodiments, it is verified whether the target application that generates the target data read request is a legitimate application; it is verified whether the target user currently logged into the target application is a legitimate user; it is verified whether the file name corresponding to the target data read request is a legitimate file name, and so on.

[0242] In this way, after the verification is passed, the decryption processing of the data to be read is performed, which can prevent illegal users or illegal applications from obtaining encrypted files stored in the electronic device, thereby improving the data security of the electronic device.

[0243] In some embodiments, a second security verification is performed using a filter driver corresponding to the target data read request.

[0244] On the other hand, the present application also provides a data processing method, which can be executed by a processor of an electronic device.

[0245] like Figure 3 The data processing method includes the following steps S301 to S302:

[0246] Step S301 , in response to obtaining a data read / write request of a target application, performing a corresponding first process on the data read / write request using a target filter driver to obtain a first process result, wherein the target filter driver is a driver matching the data read / write request.

[0247] Here, the target application refers to an application running on an electronic device that can generate data read and write requests or display output data.

[0248] In some embodiments, the target application may include social applications (e.g., QQ applications, WeChat), AI applications (e.g., Lenovo Xiaotian), video applications (e.g., Tik Tok), conference applications (e.g., Teams), camera applications, and the like.

[0249] Data read and write requests, that is, data read requests for data to be read, and data write requests for data to be written.

[0250] In some embodiments, a data read request for data to be read may be a request determined based on the target user's operating instructions for the target application; a data write request for data to be written may be based on data edited by the target user using the target application process (for example, chat data), or data generated by the target application (for example, PKB data), and so on.

[0251] The target filter driver refers to a driver for encrypting the data to be written and decrypting the data read request. In some embodiments, the target filter driver can use corresponding software and / or firmware to perform encryption processing on the data to be written and decrypt the data read request.

[0252] In some embodiments, the target filter driver can be a filter driver based on a TAC chip, a filter driver based on a fingerprint chip, a filter driver based on a TMP security chip, a filter driver based on a speech recognition engine, or a filter driver of any data encryption chip commonly used in the art.

[0253] The target filter driver is a driver that matches the data read and write request. Here, for the specific implementation of determining the target filter driver corresponding to the data read and write request, reference can be made to the detailed description of determining the target filter driver corresponding to the target data write request and determining the filter driver corresponding to the target read request.

[0254] In some embodiments, when a data read / write request represents a data write request, performing a first processing corresponding to the data read / write request using a target filter driver means, in response to obtaining a data write request from a target application, performing an encryption operation on the data to be written using a filter driver corresponding to the data write request.

[0255] In this way, the first processing result corresponding to the first processing refers to the target encrypted file obtained after the encryption processing is performed on the data to be written.

[0256] In some embodiments, when a data read / write request represents a data read request, performing a first processing on the data read / write request corresponding to the data read / write request using a target filter driver means that in response to obtaining a data read request from a target application, the filter driver corresponding to the data read request is used to decrypt the data to obtain the data information to be read.

[0257] For example, the target filter driver is used to redirect the file name of the data to be read corresponding to the data read request to obtain a redirected file name; wherein the redirected file name is a file name of the target encrypted file that can be recognized by the target file system.

[0258] In this way, the first processing result corresponding to the first processing refers to the to-be-read data information obtained after decrypting the data read request, for example, the file name after redirection.

[0259] Step S302: performing corresponding second processing on the first processing result based on the target file system, where the second processing is different from the first processing.

[0260] In some embodiments, when the data read / write request represents a data write request, performing corresponding second processing on the first processing result based on the target file system refers to storing the target file obtained by encrypting the data to be written in the target file system.

[0261] In some embodiments, when a data read and write request represents a data read request, performing a corresponding second processing on the first processing result based on the target file system refers to reading a target encrypted file from the target file system using the data information to be read; and decrypting the target encrypted file using the filter driver to provide the decrypted target file to the target application.

[0262] Here, for the specific implementation of the second process, reference may be made to the detailed description of step S102 and step S202 above.

[0263] It should be noted that the descriptions of the above method embodiments are similar and have similar beneficial effects. In some embodiments, the technical details not disclosed in the above method embodiments can be understood by referring to the relevant parts of other method embodiments.

[0264] Next, combine Figure 4 , taking the target filter driver as a filter driver based on a TAC chip as an example, an embodiment of a data processing system for implementing the data processing method provided by the present application is described in detail.

[0265] like Figure 4 As shown, the data processing system 400 includes a filter driver 410, a TAC chip 420, a file system 430, a first application 440, a second application 450 and a remote server 460; wherein:

[0266] When a user logs in to the first application 440 or the second application 450 using the user name and password information, the user's login information is registered through the user interface 411 in the filter driver 410, and the server 460 corresponding to the first application 440 and the second application 450 returns the token information corresponding to the user's login information to the user interface 411;

[0267] The user interface 411 may send the token information corresponding to the user to the TAC chip, so that the TAC chip stores the user information and generates a user secret key based on the token information; thereafter, the TAC chip sends the generated user secret key to the user interface 411;

[0268] After receiving the user key, the user interface 411 sends the user key information to the server 460 so that the user key is associated with the user information and stored in the server 460;

[0269] In this way, when the filter driver 400 receives a data read / write request from the first application 440 or the second application 450 through the user interface 411, the filter driver 400 first uses the security verifier 412 to verify the legitimacy of the data read / write request; when the data read / write request is verified to be legal, the data read / write request is sent to the driver core 413; the driver core 413 encrypts the data to be written or decrypts the data read request based on the data read / write request and the user key stored in the TAC chip; when performing decryption, the driver core 413 returns the decrypted data to be read to the corresponding application through the user interface 411.

[0270] In some embodiments, when the TAC chip 420 is damaged, the user logs in to the filter driver 400 through the first application 440 or the second application 450; the user interface 411 of the filter driver 400 sends a user key request to the server 460, and at the same time, the replaced TAC chip generates a new user key based on the user login information; after receiving the user key request sent by the filter driver 400, the server 460 returns the corresponding user key to the filter driver 400 based on the user information in the request; thereafter, the filter driver 400 decrypts the encrypted file stored in the file system 430 based on the obtained user key, and re-encrypts the decrypted file using the new user key generated by the replaced TAC chip.

[0271] In some embodiments, the data processing system for executing the data processing method provided by the present application also includes a filter manager.

[0272] Next, combine Figure 5 , taking the target filter driver as a filter driver based on a TAC chip as an example, the steps of processing a data write request using a data processing system 500 including a filter manager are described.

[0273] First, the process of executing a data write request using the data processing system 500 is as follows:

[0274] The third application 510 running in the user state generates PKB data, and determines the original file name of the PKB data as "file A"; the third application 510 generates a data write request for file A, and sends the data write request to the I / O manager 550 in the kernel state;

[0275] The I / 0 manager 550 sends the received data write request to the filter manager 560;

[0276] The filter manager 560 determines to use the filter driver based on the TAC chip to perform data encryption based on the data type of the file A corresponding to the data write request, and then sends the data write request to the driver core 530 of the filter driver based on the TAC chip;

[0277] The driver core 530 calls the redirection service 533 to redirect the original file name of the PKB data (i.e., "file A") to obtain a redirected file name based on the user name (e.g., LID), the TAC chip SN, and file A, which is referred to as "file B" herein;

[0278] The driver core 530 calls the encryption service 534; the encryption service 534 encrypts the PKB data using the user key and the specified encryption algorithm to obtain encrypted PKB data;

[0279] Here, after the user logs in to the third application 510 based on the user name and password information, the token information corresponding to the user's login information is sent to the microport 531 in the driver core 530 through the user interface 520; the microport 531 verifies the legitimacy of the user based on the received token information, and if the verification is legitimate, the user's token information is sent to the key query 532, and the key query 532 sends it to the TAC chip 540; the TAC chip 540 determines the corresponding user key based on the user token information, and sends the user key to the driver core 530 of the filter driver.

[0280] The driver core 530 sends the file name "File B" and the encrypted PKB data to the filter manager 560;

[0281] The filter manager 560 sends the file name “File B” and the encrypted PKB data to the file system driver 570 , so that the file system driver 570 stores the File B and the encrypted PKB data to the corresponding storage device.

[0282] First, the process of executing a data read request using the data processing system 500 is as follows:

[0283] After the user logs in to the third application 510, the user searches for the PKB data with the original file name "File A" through the third application 510;

[0284] The third application 510 sends the file name “File A” and the generated data read request to the I / O manager 550;

[0285] The I / O manager 550 sends the file name "File A" and the data read request to the filter manager 560;

[0286] Based on the file type of file A, the filter manager 560 determines to use the filter driver based on the TAC chip to decrypt the encrypted file corresponding to file A; then, the filter manager 560 sends the file name "file A" and the data read request to the driver core 530;

[0287] The driver core 530 calls the redirection service 533 to redirect the file name "File A" and obtains the redirected file name generated based on the user name (e.g., LID), the TAC chip SN and the file A, that is, "File B";

[0288] The driver core 530 sends the file name "file B" obtained after redirection to the filter manager 560;

[0289] Filter manager 560 sends the file name "File B" to file system driver 570;

[0290] The file system driver 570 obtains the encrypted PKB data from the corresponding storage device based on the file name “File B” and sends the encrypted PKB data to the filter manager 560;

[0291] The filter manager 560 sends the encrypted PKB data to the driver core 530;

[0292] After receiving the encrypted PKB data, the driver core 530 calls the decryption service 535 to perform decryption processing on the encrypted PKB data using the decryption service 535 to obtain the decrypted PKB data;

[0293] The driver core 530 returns the decrypted PKB data to the filter manager 560 , and the filter manager 560 returns the decrypted PKB data to the third application 510 through the I / O manager 550 .

[0294] It should be noted that, in the case where the above-mentioned filter driver is a filter driver based on a fingerprint chip, the user inputs the fingerprint information through the fingerprint acquisition device, and after the fingerprint information is verified by the fingerprint chip, the user logs in to the first application 440, the second application 450 or the third application 510; at the same time, the fingerprint chip generates a user key based on the user's fingerprint information, stores the user fingerprint information and the user key, and sends the user fingerprint information and the user key to the server 460 for cloud storage. When processing data read and write requests using a filter driver based on a fingerprint chip, the original file name is redirected based on the user's fingerprint information, the serial number of the fingerprint chip, and the original file name of the data to be written or the original file name of the data to be read. The other processing procedures for executing data read and write requests using a filter driver based on a fingerprint chip are similar to those of a filter driver based on a TAC chip, and will not be repeated here.

[0295] It can be seen from the above embodiments that in the data processing method provided by the present application, the encryption processing of the data to be written and the decryption processing of the data read request are both executed in the kernel state of the electronic device, and for various applications running in the user state, the encryption and decryption processing are transparent, that is, when the application and / or the user writes or reads data, the file name used is the original file name (for example, the file name "file A" in the above embodiment), and the storage file name after the file is encrypted is redirected (for example, the file name "file B" in the above embodiment), so the attacker cannot locate the corresponding encrypted file based on the file name, thereby improving data security; in addition, since the encryption operation and / or decryption operation works in the kernel layer, it can be protected by the operating system, and the uniform speed is faster and more stable.

[0296] Based on the foregoing embodiments, an embodiment of the present application provides a data processing device, which includes the units included and the modules included in the units, which can be implemented by a processor in an electronic device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0297] Figure 6 A schematic diagram of the structure of a data processing device provided in this application is shown in FIG. Figure 6 As shown, the data processing device 600 includes: an encryption and decryption module 610 and a storage module 620, wherein:

[0298] The encryption module 610 is used for, in response to obtaining a target data write request, encrypting the data to be written using a target driver matching the target data write request; wherein the target driver encrypts the data to be written using a target key, and the target key is a key generated based on at least target user information;

[0299] The storage module 620 is used to store the target encrypted file obtained by encrypting the data to be written into the target file system.

[0300] In some embodiments, the apparatus 600 further includes:

[0301] A first decryption module 630 is used to, in response to obtaining a target data read request, decrypt the target data read request using a filter driver matching the target data read request to obtain data information to be read;

[0302] The second interface module 640 is used to read the target encrypted file from the target file system using the to-be-read data information, and decrypt the target encrypted file using the matched filter driver to provide a decrypted target file.

[0303] In some embodiments, the encryption module 610 includes:

[0304] A first determination module 611 is configured to, in response to obtaining a target data write request, determine a target filter driver matching the target data write request based on target reference information;

[0305] The encryption submodule 612 is used to control the target filter driver to encrypt the data to be written using the target key to obtain a target encrypted file;

[0306] Wherein, the target key is a key generated based on at least one of user login information, target token, and device identification information;

[0307] The target reference information includes the source of the target data write request and / or attribute information of the data to be written.

[0308] In some embodiments, the first determining module 611 is configured to perform at least one of the following:

[0309] In response to obtaining a data write request of a target application, determining a first filter driver matching the data write request based on application information of the target application and / or first attribute information of the generated data to be written;

[0310] In response to obtaining a data write request generated by an operation of a target user on a target file, determining a second filter driver matching the data write request based on user login information of the target user and / or second attribute information of the target file;

[0311] In response to obtaining a data write request of the electronic device, a third filter driver matching the data write request is determined based on the operation information and / or third attribute information of the electronic device.

[0312] In some embodiments, the encryption submodule 612 is used to:

[0313] Sending at least one of the obtained user login information, target token, and device identification information to the target chip, so as to generate the target key using the target chip;

[0314] Using the user login information and the fourth attribute information of the target chip to configure the file name of the data to be written;

[0315] The target filter driver is controlled to use the target key to encrypt the data to be written after the configuration file name to obtain a target encrypted file.

[0316] In some embodiments, the storage module 620 is used to store the target encrypted file in the target file system using the filter manager in the kernel state, wherein the keys corresponding to different applications for encrypting the data to be written are the same or different, and the file names of the target encrypted files corresponding to different applications are different;

[0317] and / or,

[0318] The device 600 further includes:

[0319] The first verification module 650 is used to perform a first security verification on the target data write request, and after the verification is passed, execute the step of encrypting the data to be written by using a target filter driver matching the target data write request.

[0320] On the other hand, the present application also provides a data processing device. Figure 7 As shown, the data processing device 700 includes: a first decryption module 710 and a second decryption module 720; wherein:

[0321] A first decryption module 710 is used to, in response to obtaining a target data read request, decrypt the target data read request using a filter driver matching the target data read request to obtain data information to be read;

[0322] The second decryption module 720 is used to read the target encrypted file from the target file system using the data information to be read, and decrypt the target encrypted file based on the target key using the filter driver to provide a decrypted target file; wherein the target key is a key generated based at least on the target user information.

[0323] In some embodiments, the first decryption module 710 is configured to perform at least one of the following:

[0324] In response to obtaining a data read request of a target application, determining a fourth filter driver matching the data read request based on application information of the target application and / or fifth attribute information of the data to be read, and redirecting the file name of the data to be read in the target data read request by using the fourth filter driver to obtain file name information of a target encrypted file that can be recognized by a target file system;

[0325] In response to obtaining a data read request triggered by a target user, a fifth filter driver matching the data read request is determined based on the user login information of the target user and / or the sixth attribute information of the data to be read, and the file name of the data to be read in the data read request is redirected using the fifth filter driver to obtain the file name information of the target encrypted file that can be recognized by the target file system.

[0326] In some embodiments, the second decryption module 720 is used to:

[0327] Using the filter manager in kernel state to send the target encrypted file read from the target file system to the corresponding filter driver for decryption, and returning the decrypted target file to the target application in user state for output;

[0328] and / or,

[0329] The device 700 further includes:

[0330] The second verification module 730 is used to perform a second security verification on the target read request, and after the verification is passed, execute the step of decrypting the target read request by using a filter driver matching the data read request.

[0331] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0332] It should be noted that in the embodiment of the present application, if the above-mentioned data processing method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.

[0333] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.

[0334] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in an electronic device, a processor in the electronic device executes some or all of the steps for implementing the above method.

[0335] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.

[0336] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.

[0337] It should be noted that Figure 8 is a hardware entity schematic diagram of an electronic device in an embodiment of the present application, such as Figure 8 As shown, the hardware entity of the electronic device 800 includes: a processor 801, a communication interface 802 and a memory 803, wherein:

[0338] The processor 801 generally controls the overall operation of the electronic device 800 .

[0339] The communication interface 802 enables the electronic device to communicate with other terminals or servers through a network.

[0340] The memory 803 is configured to store instructions and applications executable by the processor 801, and can also cache data to be processed or processed by the processor 801 and each module in the electronic device 800 (for example, image data, audio data, voice communication data, and video communication data), which can be implemented by flash memory (FLASH) or random access memory (Random Access Memory, RAM). Data transmission can be performed between the processor 801, the communication interface 802, and the memory 803 through the bus 804.

[0341] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.

[0342] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0343] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0344] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0345] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0346] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0347] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0348] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A data processing method, include: In response to obtaining a target data write request, encrypting the data to be written using a target driver matching the target data write request; The target encrypted file obtained by encrypting the data to be written is stored in the target file system; The target drive encrypts the data to be written using a target key, and the target key is a key generated based on at least target user information.

2. The method according to claim 1, further comprising: include: In response to obtaining a target data read request, decrypting the target data using a filter driver matching the target data read request to obtain data information to be read; The target encrypted file is read from the target file system using the data information to be read, and the target encrypted file is decrypted using the filter driver to provide a decrypted target file.

3. The method according to claim 1 or 2, in, In response to obtaining a target data write request, encrypting the data to be written using a target driver matching the target data write request, including: In response to obtaining a target data write request, determining a target filter driver matching the target data write request based on target reference information; Controlling the target filter driver to encrypt the data to be written using the target key to obtain a target encrypted file; Wherein, the target key is a key generated based on at least one of user login information, target token, and device identification information; The target reference information includes the source of the target data write request and / or attribute information of the data to be written.

4. The method according to claim 3, in, Determining a target filter driver matching the target data write request based on the target reference information includes at least one of the following: In response to obtaining a data write request of a target application, determining a first filter driver matching the data write request based on application information of the target application and / or first attribute information of the generated data to be written; In response to obtaining a data write request generated by an operation of a target user on a target file, determining a second filter driver matching the data write request based on user login information of the target user and / or second attribute information of the target file; In response to obtaining a data write request of the electronic device, a third filter driver matching the data write request is determined based on the operation information and / or third attribute information of the electronic device.

5. The method according to claim 3, in, Controlling the target filter driver to encrypt the data to be written using the target key to obtain a target encrypted file, including: Sending at least one of the obtained user login information, target token, and device identification information to the target chip, so as to generate the target key using the target chip; Using the user login information and the fourth attribute information of the target chip to configure the file name of the data to be written; The target filter driver is controlled to use the target key to encrypt the data to be written after the configuration file name to obtain a target encrypted file.

6. The method according to claim 1 or 5, in, The step of storing a target encrypted file obtained by encrypting the data to be written into a target file system includes: Using a filter manager in a kernel state to store the target encrypted file in a target file system, wherein the keys corresponding to different applications for encrypting the data to be written are the same or different, and the file names of the target encrypted files corresponding to different applications are different; and / or, The method further comprises: A first security verification is performed on the target data write request, and after the verification is passed, a step of encrypting the data to be written by using a target driver matching the target data write request is executed.

7. A data processing method, include: In response to obtaining a target data read request, decrypting the target data using a filter driver matching the target data read request to obtain data information to be read; The target encrypted file is read from the target file system using the data information to be read, and the target encrypted file is decrypted using the filter driver to provide a decrypted target file.

8. The method according to claim 7, in, Decrypting the target data read request using a filter driver that matches the target data read request to obtain data information to be read, including at least one of the following: In response to obtaining a target data read request of a target application, determining a fourth filter driver matching the target data read request based on application information of the target application and / or fifth attribute information of the data to be read, and redirecting the file name of the data to be read in the target data read request by using the fourth filter driver to obtain file name information of a target encrypted file that can be recognized by a target file system; In response to obtaining a target data read request triggered by a target user, a fifth filter driver matching the target data read request is determined based on the user login information of the target user and / or the sixth attribute information of the data to be read, and the fifth filter driver is used to redirect the file name of the data to be read in the target data read request to obtain the file name information of the target encrypted file that can be recognized by the target file system.

9. The method according to claim 7 or 8, in, Decrypting the target encrypted file using the filter driver to provide a decrypted target file includes: Using the filter manager in kernel state to send the target encrypted file read from the target file system to the corresponding filter driver for decryption, and returning the decrypted target file to the target application in user state for output; and / or, The method further comprises: A second security verification is performed on the target read request, and after the verification passes, a step of decrypting the target read request by using a filter driver matching the data read request is executed.

10. A data processing device, include: an encryption module, configured to, in response to obtaining a target data write request, encrypt the data to be written using a target filter driver that matches the target data write request; wherein the target filter driver encrypts the data to be written using a target key, and the target key is a key generated based on at least target user information; The storage module is used to store the target encrypted file obtained by encrypting the data to be written into the target file system.