CN109828954B - Data erasing method and device - Google Patents

Data erasing method and device Download PDF

Info

Publication number
CN109828954B
CN109828954B CN201811580604.2A CN201811580604A CN109828954B CN 109828954 B CN109828954 B CN 109828954B CN 201811580604 A CN201811580604 A CN 201811580604A CN 109828954 B CN109828954 B CN 109828954B
Authority
CN
China
Prior art keywords
application program
erasing
data
file
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811580604.2A
Other languages
Chinese (zh)
Other versions
CN109828954A (en
Inventor
刘佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxin Technology Group Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxin Technology Group Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN201811580604.2A priority Critical patent/CN109828954B/en
Publication of CN109828954A publication Critical patent/CN109828954A/en
Application granted granted Critical
Publication of CN109828954B publication Critical patent/CN109828954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a data erasing method and device. The method is applied to an application program which is packaged with an erasing module used for executing a data erasing function in advance, and comprises the following steps: receiving a data erasing instruction of a server, and acquiring a target object carried in the data erasing instruction; performing fuzzy matching on the target object in a folder of the application program; and controlling the erasing module to erase the matched files and/or folders. The embodiment of the invention solves the problem that the data of the application program cannot be erased in a targeted manner by a data clearing mechanism in the prior art.

Description

Data erasing method and device
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data erasing method and device.
Background
With the rapid development of mobile communication technology, mobile terminals such as smart phones become an indispensable part of people's lives, various applications on the mobile terminals are gradually increased, and the internal functions of many applications are more perfect, which provides users with much convenience. When the sensitive data are used, if the sensitive data are not cleared in time, the application program is easily attacked by a malicious program, so that the sensitive data are leaked, and adverse consequences are caused.
The data clearing mechanism in the prior art can not erase the data of the application program in a targeted manner; taking the android system as an example, a specific application program is usually used to erase data of a target application program, and since the specific application program is limited as a third-party application program in terms of access rights to the target application program, it is difficult to achieve targeted data erasure for the target application program.
For the iOS system, a Mobile Device Management (MDM) framework is usually used, and a user is first guided to install an MDM description file on a terminal of the user, and then all data on the Mobile phone Device is erased in a manner that a MDM instruction is sent by a server, and data erasure in a targeted manner by a target application program cannot be achieved.
Disclosure of Invention
The embodiment of the invention provides a data erasing method and a data erasing device, which are used for solving the problem that the data of an application program cannot be erased in a targeted manner by a data erasing mechanism in the prior art.
In one aspect, an embodiment of the present invention provides a data erasing method, where the method is applied to an application program, and the application program is pre-packaged with an erasing module for executing a data erasing function, where the method includes:
receiving a data erasing instruction of a server, and acquiring a target object carried in the data erasing instruction;
performing fuzzy matching on the target object in a folder of the application program;
and controlling the erasing module to erase the matched files and/or folders.
In one aspect, an embodiment of the present invention provides a data erasing method, where the method is applied to a server, and the method includes:
receiving a data erasing instruction aiming at an application program, and acquiring a target object to be erased; the application program is pre-packaged with an erasing module for executing a data erasing function;
and sending a data erasing instruction carrying the target object to the application program, so that the erasing module erases the file and/or folder obtained by fuzzy matching of the application program on the target object.
On the other hand, an embodiment of the present invention provides a data erasing apparatus, where the apparatus is applied to an application program, and the application program is pre-packaged with an erasing module for executing a data erasing function, where the apparatus includes:
the command receiving module is used for receiving a data erasing command of a server and acquiring a target object carried in the data erasing command;
the matching module is used for carrying out fuzzy matching on the target object in the folder of the application program;
and the erasing execution module is used for controlling the erasing module to erase the matched files and/or folders.
On the other hand, an embodiment of the present invention provides a data erasing apparatus, where the apparatus is applied to a server, and the apparatus includes:
the indication receiving module is used for receiving a data erasing indication aiming at an application program and acquiring a target object to be erased; the application program is pre-packaged with an erasing module for executing a data erasing function;
and the instruction sending module is used for sending a data erasing instruction carrying the target object to the application program, so that the erasing module erases the file and/or folder obtained by fuzzy matching of the application program on the target object.
On the other hand, the embodiment of the present invention further provides an electronic device, which includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor, where the processor implements the steps in the data erasing method when executing the program.
In still another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps in the data erasing method.
According to the data erasing method and device provided by the embodiment of the invention, an application program obtains a target object carried in a data erasing instruction by receiving the data erasing instruction of a server side, wherein the target object can be the name, the format and/or the storage path of a file or data; performing fuzzy matching on the target object in a folder of the application program; the erasing module which is packaged in the application program in advance and used for executing the data erasing function is controlled to erase the matched files and/or folders, and the files and/or folders which are obtained by matching are erased in a targeted mode according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a data erasing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an exemplary scenario in accordance with an embodiment of the present invention;
FIG. 3 is a second flowchart illustrating a data erasing method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a data erasing apparatus according to an embodiment of the present invention;
FIG. 5 is a second schematic structural diagram of a data erasing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "an embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrase "in an embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
Fig. 1 is a schematic flowchart illustrating a data erasing method according to an embodiment of the present invention.
As shown in fig. 1, the data erasing method provided in the embodiment of the present invention is applied to an application program, where the application program is pre-packaged with an erasing module for executing a data erasing function, and the method specifically includes the following steps:
step 101, receiving a data erasing instruction of a server, and acquiring a target object carried in the data erasing instruction.
The application program is packaged with an erasing module in advance, and the erasing module is used for executing a data erasing instruction sent by the server; and the encapsulation is to add the encapsulation configuration file of the erasing module on the basis of the original program file of the application program.
For example, referring to fig. 2, the server sends a data erasing instruction to the application program according to a preset data erasing start cycle or according to an instruction of a user, and the data erasing instruction carries a target object, where the target object may be a name, a format, and/or a storage path of a file or data, so that when the application program receives the data erasing instruction, an erasing operation is performed according to the data erasing instruction.
And 102, performing fuzzy matching on the target object in a folder of the application program.
The fuzzy matching is fuzzy search, and a preset difference between the searched information and the search keyword is allowed in the fuzzy search process, for example, when searching for a "file", a "document", "folder", and the like similar to the searched information and the search keyword are found. The fuzzy search process can also comprise synonym search, and synonyms are configured in advance. For example, if "computer" is searched after "computer" is configured as a synonym with "computer", a file containing "computer" is also searched.
Optionally, in the fuzzy matching process, a regular expression may be established according to the target object, and the regular expression is used to dynamically search the folder of the application program.
And 103, controlling the erasing module to erase the matched files and/or folders.
With continued reference to fig. 2, the application program controls the erasing module to erase data of the matched file and/or folder, so that the erasing module built in the application program can directionally erase user data for the target object, for example, when the target object is "login", all data related to the login can be erased.
In the embodiment of the invention, an application program obtains a target object carried in a data erasing instruction by receiving the data erasing instruction of a server, wherein the target object can be the name, the format and/or the storage path of a file or data; performing fuzzy matching on the target object in a folder of the application program; the erasing module which is packaged in the application program in advance and used for executing the data erasing function is controlled to erase the matched files and/or folders, and the files and/or folders which are obtained by matching are erased in a targeted mode according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured. The embodiment of the invention solves the problem that the data of the application program cannot be erased in a targeted manner by a data clearing mechanism in the prior art.
Optionally, the data erasing method provided in the embodiment of the present invention is applied to the iOS terminal.
Optionally, in this embodiment of the present invention, the step of performing fuzzy matching on the target object in the folder of the application program includes:
and in the folder of the application program, the search name, format and/or storage path comprise the file and/or folder in the target object.
Searching files and/or folders related to a target object in folders of an application program, wherein the files and/or folders comprise names, formats and/or storage paths and comprise the files and/or folders in the target object; alternatively, the scope of the search may be preset for the application.
Optionally, in the embodiment of the present invention, the data erasure instruction further carries a data erasure rule;
the data erasing rule comprises the storage time length of the erased target data in the file and/or the folder and/or the data volume of the erased target data.
The data erasing rule may be preset for an application program, for example, for an application program, the erased data range is set as target data stored in the application program for more than a preset time duration; or each time data is erased, erasing a preset amount of target data, such as erasing 1MB of data.
Optionally, in this embodiment of the present invention, before the step of receiving the data erasure instruction of the server, the method further includes:
and packaging the erasing module into the application program.
And according to a preset packaging rule, packaging the packaging configuration file of the erasing module and the original program file of the application program to obtain a target program file of the application program, wherein the target program file is a program file capable of executing an erasing function.
Further, in the embodiment of the present invention, the step of packaging the erase module into the application program includes:
acquiring an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object;
and packaging the packaging configuration file and the original program file.
The package configuration file comprises a program library file and a configuration parameter file, wherein the program library file is used for reading the configuration parameter file when the application program runs, initializing the execution environment and executing corresponding functions according to the configuration parameter file.
Specifically, an original program file of the application program and a package configuration file of the erasing module are obtained, the original program file and the package configuration file can be preset, and the package configuration file and the original program file are packaged.
In the embodiment of the invention, an application program obtains a target object carried in a data erasing instruction by receiving the data erasing instruction of a server, wherein the target object can be the name, the format and/or the storage path of a file or data; performing fuzzy matching on the target object in a folder of the application program; the erasing module which is packaged in the application program in advance and used for executing the data erasing function is controlled to erase the matched files and/or folders, and the files and/or folders which are obtained by matching are erased in a targeted mode according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured.
The data erasing method provided by the embodiment of the invention is described from the application program side, and the data erasing method provided by the embodiment of the invention is described from the service end side.
Referring to fig. 3, an embodiment of the present invention provides a data erasing method, which is applied to a server, and the method includes:
step 301, receiving a data erasing instruction for an application program, and acquiring a target object to be erased; wherein the application program is pre-packaged with an erase module for performing a data erase function.
The data erasing indication may be an indication from a user, or may be a data erasing indication that the server is self-started and triggered according to a preset starting period.
After receiving the data erasing indication, obtaining the indicated target object to be erased, where the target object may be a name, a format, and/or a storage path of a file or data.
The application program is pre-packaged with an erasing module, and the erasing module is used for executing a data erasing instruction sent by the server; and the encapsulation is to add the encapsulation configuration file of the erasing module on the basis of the original program file of the application program.
For example, referring to fig. 2, the server sends a data erasing instruction to the application program according to a preset data erasing start cycle or according to an instruction of a user, and the data erasing instruction carries a target object, where the target object may be a name, a format, and/or a storage path of a file or data, so that when the application program receives the data erasing instruction, the application program controls the erasing module to execute an erasing operation according to the data erasing instruction.
Step 302, sending a data erasing instruction carrying the target object to the application program, so that the erasing module erases a file and/or a folder obtained by fuzzy matching of the application program on the target object.
The server carries the target object in the data erasing instruction and sends the target object to the application program, so that the application program can carry out fuzzy matching on the target object to obtain a file and/or a folder, and the file and/or the folder can be erased through an erasing module arranged in the application program.
Optionally, in this embodiment of the present invention, the step of obtaining the target object to be erased includes:
acquiring a target object in the data erasing indication;
or
And acquiring a preset target object corresponding to the application program.
The target object may be carried in the data erasure indication, for example, the indication from the user includes the target object; the target object may also be preset, for example, for a certain application program, the erased target object is preset at the server, and when the server starts data erasure for the application program, the target object is directly carried in the data erasure indication and sent to the application program.
In the embodiment of the invention, a target object to be erased is obtained by receiving a data erasing instruction aiming at an application program; the application program is packaged with an erasing module for executing a data erasing function in advance, and the target object can be the name, the format and/or the storage path of a file or data; sending a data erasing instruction carrying the target object to the application program, enabling the erasing module to erase the file and/or the folder obtained by fuzzy matching of the application program on the target object, controlling the erasing module which is packaged in advance in the application program and used for executing a data erasing function to erase the file and/or the folder obtained by matching, and realizing targeted erasing of the file and/or the folder obtained by matching according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured. The embodiment of the invention solves the problem that the data of the application program cannot be erased in a targeted manner by a data clearing mechanism in the prior art.
From the above description of the data erasing method provided by the embodiment of the present invention, the data erasing apparatus provided by the embodiment of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 4, an embodiment of the present invention provides a data erasing apparatus, which is applied to an application program, where the application program is pre-packaged with an erasing module for executing a data erasing function, and the apparatus includes:
the instruction receiving module 401 is configured to receive a data erasing instruction of a server, and acquire a target object carried in the data erasing instruction.
The application program is packaged with an erasing module in advance, and the erasing module is used for executing a data erasing instruction sent by the server; and the encapsulation is to add the encapsulation configuration file of the erasing module on the basis of the original program file of the application program.
For example, referring to fig. 2, the server sends a data erasing instruction to the application program according to a preset data erasing start cycle or according to an instruction of a user, and the data erasing instruction carries a target object, where the target object may be a name, a format, and/or a storage path of a file or data, so that when the application program receives the data erasing instruction, an erasing operation is performed according to the data erasing instruction.
A matching module 402, configured to perform fuzzy matching on the target object in the folder of the application program.
The fuzzy matching is fuzzy search, and a preset difference between the searched information and the search keyword is allowed in the fuzzy search process, for example, when searching for a "file", a "document", "folder", and the like similar to the searched information and the search keyword are found. The fuzzy search process can also comprise synonym search, and synonyms are configured in advance. For example, if "computer" is searched after "computer" is configured as a synonym with "computer", a file containing "computer" is also searched.
Optionally, in the fuzzy matching process, a regular expression may be established according to the target object, and the regular expression is used to dynamically search the folder of the application program.
And an erasing execution module 403, configured to control the erasing module to erase the matched file and/or folder.
The erasing module is controlled to erase data of the matched files and/or folders, so that user data can be directionally erased according to the target object through the erasing module arranged in the application program, for example, when the target object is 'login', all data related to login can be erased.
Optionally, in this embodiment of the present invention, the matching module 402 is configured to:
and in the folder of the application program, the search name, format and/or storage path comprise the file and/or folder in the target object.
Searching files and/or folders related to a target object in folders of an application program, wherein the files and/or folders comprise names, formats and/or storage paths and comprise the files and/or folders in the target object; alternatively, the scope of the search may be preset for the application.
Optionally, in the embodiment of the present invention, the data erasure instruction further carries a data erasure rule;
the data erasing rule comprises the storage time length of the erased target data in the file and/or the folder and/or the data volume of the erased target data.
The data erasing rule may be preset for an application program, for example, for an application program, the erased data range is set as target data stored in the application program for more than a preset time duration; or each time data is erased, erasing a preset amount of target data, such as erasing 1MB of data.
Optionally, in an embodiment of the present invention, the apparatus further includes:
and the packaging module is used for packaging the erasing module into the application program.
And according to a preset packaging rule, packaging the packaging configuration file of the erasing module and the original program file of the application program to obtain a target program file of the application program, wherein the target program file is a program file capable of executing an erasing function.
Optionally, in an embodiment of the present invention, the encapsulation module includes:
and the obtaining submodule is used for obtaining an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object.
And the processing submodule is used for packaging the packaging configuration file and the original program file.
The package configuration file comprises a program library file and a configuration parameter file, wherein the program library file is used for reading the configuration parameter file when the application program runs, initializing the execution environment and executing corresponding functions according to the configuration parameter file.
Specifically, an original program file of the application program and a package configuration file of the erasing module are obtained, the original program file and the package configuration file can be preset, and the package configuration file and the original program file are packaged.
In the embodiment of the present invention, a data erasing instruction of a server is received by an instruction receiving module 401, and a target object carried in the data erasing instruction is obtained, where the target object may be a name, a format, and/or a storage path of a file or data; the matching module 402 performs fuzzy matching on the target object in the folder of the application program; the erasing execution module 403 controls an erasing module, which is pre-packaged in the application program and used for executing the data erasing function, to erase the matched files and/or folders, so that the matched files and/or folders are erased in a targeted manner according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured.
Further, referring to fig. 5, an embodiment of the present invention provides a data erasing apparatus, applied to a server, where the apparatus includes:
an indication receiving module 501, configured to receive a data erasure indication for an application program, and obtain a target object to be erased; wherein the application program is pre-packaged with an erase module for performing a data erase function.
The data erasing indication may be an indication from a user, or may be a data erasing indication that the server is self-started and triggered according to a preset starting period.
After receiving the data erasing indication, obtaining the indicated target object to be erased, where the target object may be a name, a format, and/or a storage path of a file or data.
The application program is pre-packaged with an erasing module, and the erasing module is used for executing a data erasing instruction sent by the server; and the encapsulation is to add the encapsulation configuration file of the erasing module on the basis of the original program file of the application program.
For example, referring to fig. 2, the server sends a data erasing instruction to the application program according to a preset data erasing start cycle or according to an instruction of a user, and the data erasing instruction carries a target object, where the target object may be a name, a format, and/or a storage path of a file or data, so that when the application program receives the data erasing instruction, an erasing operation is performed according to the data erasing instruction.
The instruction sending module 502 is configured to send a data erasing instruction carrying the target object to the application program, so that the erasing module erases a file and/or a folder obtained by fuzzy matching of the application program on the target object.
The server carries the target object in a data erasing instruction and sends the target object to the application program, so that the application program can perform fuzzy matching on the target object to obtain a file and/or a folder, and the file and/or the folder can be erased through an erasing module arranged in the application program.
Optionally, in this embodiment of the present invention, the indication receiving module 501 is configured to:
acquiring a target object in the data erasing indication;
or
And acquiring a preset target object corresponding to the application program.
In the embodiment of the present invention, the indication receiving module 501 receives a data erasing indication for an application program, and obtains a target object to be erased; the application program is packaged with an erasing module for executing a data erasing function in advance, and the target object can be the name, the format and/or the storage path of a file or data; the instruction sending module 502 sends a data erasing instruction carrying the target object to the application program, so that the erasing module erases a file and/or a folder obtained by fuzzy matching of the application program on the target object, and controls the erasing module which is packaged in advance in the application program and used for executing a data erasing function to erase the file and/or the folder obtained by matching, thereby realizing targeted erasing of the file and/or the folder obtained by matching according to the target object; the erasing process is simple and is carried out in the application program, so that the data can be prevented from being intercepted by a malicious application program, and the data security of the application program is ensured.
Fig. 6 is a schematic structural diagram of an electronic device according to yet another embodiment of the present invention.
As shown in fig. 6, the electronic device may include: a processor (processor)610, a communication Interface (Communications Interface)620, a memory (memory)630 and a communication bus 640, wherein the processor 610, the communication Interface 620 and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call logic instructions in the memory 630 to perform the following method:
receiving a data erasing instruction of a server, and acquiring a target object carried in the data erasing instruction;
performing fuzzy matching on the target object in a folder of the application program;
and controlling the erasing module to erase the matched files and/or folders.
Or
Receiving a data erasing instruction aiming at an application program, and acquiring a target object to be erased; the application program is pre-packaged with an erasing module for executing a data erasing function;
and sending a data erasing instruction carrying the target object to the application program, so that the erasing module erases the file and/or folder obtained by fuzzy matching of the application program on the target object.
In addition, the logic instructions in the memory 630 may be implemented in software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
In another embodiment of the present invention, a non-transitory computer-readable storage medium is provided, where a computer program is stored on the non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the steps in the method provided in the foregoing embodiment of the present invention are implemented, and details of the implementation are not repeated.
Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. A data erasing method is applied to an application program, and is characterized in that the application program is pre-packaged with an erasing module used for executing a data erasing function, and the method comprises the following steps:
receiving a data erasing instruction of a server, and acquiring a target object carried in the data erasing instruction;
performing fuzzy matching on the target object in a folder of the application program;
controlling the erasing module to erase the matched files and/or folders;
before the step of receiving a data erasure instruction of the server, the method further includes:
packaging the erasing module into the application program;
wherein the step of encapsulating the erase module into the application comprises:
acquiring an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object;
and packaging the packaging configuration file and the original program file.
2. The method of claim 1, wherein the step of fuzzy matching the target object in the folder of the application program comprises:
and searching files and/or folders with names, formats and/or storage paths including the target object in the folders of the application program.
3. The method according to claim 1, wherein the data erasure command further carries a data erasure rule;
the data erasing rule comprises the storage time length of the erased target data in the file and/or the folder and/or the data volume of the erased target data.
4. A data erasing method is applied to a server side, and is characterized by comprising the following steps:
receiving a data erasing instruction aiming at an application program, and acquiring a target object to be erased; the application program is pre-packaged with an erasing module for executing a data erasing function;
sending a data erasing instruction carrying the target object to the application program, and enabling the erasing module to erase a file and/or a folder obtained by fuzzy matching of the application program on the target object;
before receiving a data erasing instruction sent by a server, the application program is used for packaging the erasing module into the application program; wherein the step of encapsulating the erase module into the application comprises: acquiring an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object; and packaging the packaging configuration file and the original program file.
5. The method of claim 4, wherein the step of obtaining the target object to be erased comprises:
acquiring a target object in the data erasing indication;
or
And acquiring a preset target object corresponding to the application program.
6. A data erasing apparatus applied to an application program, wherein the application program is pre-packaged with an erasing module for performing a data erasing function, the apparatus comprising:
the command receiving module is used for receiving a data erasing command of a server and acquiring a target object carried in the data erasing command;
the matching module is used for carrying out fuzzy matching on the target object in the folder of the application program;
the erasing execution module is used for controlling the erasing module to erase the matched files and/or folders;
wherein the apparatus further comprises:
the packaging module is used for packaging the erasing module into the application program;
the encapsulation module is specifically configured to:
acquiring an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object;
and packaging the packaging configuration file and the original program file.
7. A data erasing device applied to a server side is characterized by comprising:
the indication receiving module is used for receiving a data erasing indication aiming at an application program and acquiring a target object to be erased; the application program is pre-packaged with an erasing module for executing a data erasing function;
the instruction sending module is used for sending a data erasing instruction carrying the target object to the application program, so that the erasing module erases a file and/or a folder obtained by fuzzy matching of the application program on the target object;
before receiving a data erasing instruction sent by a server, the application program is used for packaging the erasing module into the application program; wherein the step of encapsulating the erase module into the application comprises: acquiring an original program file of the application program and a packaging configuration file of the erasing module, wherein the packaging configuration file at least comprises a program library file and a configuration parameter file comprising the target object; and packaging the packaging configuration file and the original program file.
8. An electronic device comprising a memory, a processor, a bus and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the data erasing method as claimed in any one of claims 1 to 5 when executing the program.
9. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that: the program when executed by a processor implements the steps in a data erasure method as claimed in any one of claims 1 to 5.
CN201811580604.2A 2018-12-24 2018-12-24 Data erasing method and device Active CN109828954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811580604.2A CN109828954B (en) 2018-12-24 2018-12-24 Data erasing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811580604.2A CN109828954B (en) 2018-12-24 2018-12-24 Data erasing method and device

Publications (2)

Publication Number Publication Date
CN109828954A CN109828954A (en) 2019-05-31
CN109828954B true CN109828954B (en) 2021-03-12

Family

ID=66860630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811580604.2A Active CN109828954B (en) 2018-12-24 2018-12-24 Data erasing method and device

Country Status (1)

Country Link
CN (1) CN109828954B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1708097A1 (en) * 2005-03-31 2006-10-04 Ubs Ag Computer Network System for the Synchronisation of a Second Database with a First Database
CN104881496A (en) * 2015-06-15 2015-09-02 北京金山安全软件有限公司 File name identification and file cleaning method and device
CN104881495A (en) * 2015-06-15 2015-09-02 北京金山安全软件有限公司 Folder path identification and folder cleaning method and device
CN104899049A (en) * 2014-03-04 2015-09-09 北京金山安全软件有限公司 File deletion method and device
CN105554144A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Application data processing method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1708097A1 (en) * 2005-03-31 2006-10-04 Ubs Ag Computer Network System for the Synchronisation of a Second Database with a First Database
CN104899049A (en) * 2014-03-04 2015-09-09 北京金山安全软件有限公司 File deletion method and device
CN104881496A (en) * 2015-06-15 2015-09-02 北京金山安全软件有限公司 File name identification and file cleaning method and device
CN104881495A (en) * 2015-06-15 2015-09-02 北京金山安全软件有限公司 Folder path identification and folder cleaning method and device
CN105554144A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Application data processing method, device and system

Also Published As

Publication number Publication date
CN109828954A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US10205778B2 (en) Method and apparatus for sharing application data
CN108027741B (en) File processing method, device, terminal and storage medium based on patch upgrade
EP3324325B1 (en) Method, client, and system for testing application
US20090298468A1 (en) System and method for deleting data in a communication device
CN109359091B (en) File management method, device, terminal and computer readable storage medium
CN106713004B (en) Router adaptation method and system
KR20110124342A (en) Method and apparatus to vet an executable program using a model
US11099889B2 (en) Method-call-chain tracking method, electronic device, and computer readable storage medium
US20140258891A1 (en) Electronic device, storage medium and method for processing information
CN112565026B (en) Test frame generation method, device and equipment
WO2014110929A1 (en) Method, device, and system for uploading data
CN106605231A (en) Accounts control
TW201923659A (en) Service process starting method and apparatus
CN111881470A (en) Data access method and device and computer readable storage medium
CN109145589B (en) Application program acquisition method and device
US10503430B2 (en) Method and device for clearing data and electronic device
CN113961179A (en) Service access method, system, electronic device and storage medium of SOAR platform
CN109828954B (en) Data erasing method and device
CN111212418A (en) Device and method for safely downloading mobile terminal application
CN109739548B (en) Program packaging method, program packaging device and computer readable storage medium
CN115795544A (en) File security attribute storage method and related device
CN114253441B (en) Method and device for enabling target function, storage medium and electronic device
CN109558375B (en) Optimized file storage method, storage medium, equipment and system
US10869216B2 (en) System and method for managing filtering rules from a remote server
CN108897639B (en) File processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 332, 3 / F, Building 102, 28 xinjiekouwei street, Xicheng District, Beijing 100088

Applicant after: Qianxin Technology Group Co.,Ltd.

Address before: 100015 15, 17 floor 1701-26, 3 building, 10 Jiuxianqiao Road, Chaoyang District, Beijing.

Applicant before: Beijing Qi'anxin Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant