Data protection method and storage device
By obtaining destruction parameters and automatically destroying data when powered on, the problem of illegal users viewing important data when electronic devices are lost is solved, and data protection is achieved without the need for manual operation by users.
Patent Information
- Application Number
- CN202111509067.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-12-10
AI Technical Summary
In the event that the electronic device is not in the hands of the user, other illegal users may view the user's important data.
When powered on, the storage device obtains the destruction parameters associated with the time information and automatically destroys the specified data when the destruction parameters meet the preset conditions.
When electronic devices are not in the hands of users, prevent illegal users from viewing important data and improve data security.
Smart Images

Figure CN114201768B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data protection, and particularly relates to a data protection method and a storage device. Background Art
[0002] With the increasing popularity of electronic devices, more and more important data is stored on electronic devices. How to protect the important data on electronic devices is an issue worthy of attention.
[0003] A common way adopted by related technologies in the process of protecting important data is to delete important data. For example, after a user finds the data to be deleted, the user actively issues a deletion instruction to delete the data.
[0004] However, the application of this way of protecting important data is relatively limited. For example, when the electronic device is not in the user's hand, the user cannot delete the important data in the electronic device, which may cause other illegal users to view the user's important data. Summary of the Invention
[0005] Embodiments of this application provide a data protection method and a storage device, which can solve the problem that other illegal users may view the user's important data when the electronic device is not in the user's hand.
[0006] In a first aspect, embodiments of this application provide a data protection method, which is executed by a storage device. The storage device includes:
[0007] When the storage device is powered on, obtain a destruction parameter associated with time information;
[0008] When the destruction parameter meets a first preset condition, destroy the specified data stored in the storage device.
[0009] In a second aspect, embodiments of this application provide a storage device, which includes:
[0010] An obtaining module, configured to obtain a destruction parameter associated with time information when the storage device is powered on;
[0011] A processing module, configured to destroy the specified data stored in the storage device when the destruction parameter meets a first preset condition.
[0012] In a third aspect, embodiments of this application provide an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.
[0013] Fourthly, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] Fifthly, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.
[0015] Sixthly, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0016] In the embodiment of the present application, when the storage device is powered on, a destruction parameter associated with time information is obtained; when the destruction parameter meets a first preset condition, specified data stored in the storage device is destroyed. In this way, by obtaining, when the storage device is powered on, a destruction parameter associated with time information by the storage device itself, and when the destruction parameter meets the first preset condition, destroying the specified data stored in the storage device by the storage device itself without manual triggering by the user, it is possible to destroy the specified data stored in the storage device by the storage device itself even when the electronic device is not in the user's hand, so that other illegal users cannot view the user's important data, thus solving the problem that other illegal users may view the user's important data when the electronic device is not in the user's hand. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, where:
[0018] Figure 1 is a flowchart of a data protection method provided by an embodiment of the present application;
[0019] Figure 2 is a flowchart of another data protection method provided by an embodiment of the present application;
[0020] Figure 3 is a flowchart of another data protection method provided by an embodiment of the present application;
[0021] Figure 4 is a flowchart of another data protection method provided by an embodiment of the present application;
[0022] Figure 5It is a flowchart of the process for obtaining the time information of a removable storage device during the current power-on in an embodiment of the present application;
[0023] Figure 6 It is a flowchart of another data protection method provided by the present application;
[0024] Figure 7 It is a flowchart of another data protection method provided by the present application;
[0025] Figure 8 It is a structural block diagram of a storage device provided by the present application;
[0026] Figure 9 It is a schematic diagram of a storage device provided by the present application. Detailed implementation manners
[0027] Next, the technical solutions in the embodiments of the present application will be clearly described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0028] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. generally belong to the same category, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally represents an "or" relationship between the associated objects before and after.
[0029] Next, the data protection method provided in the embodiments of the present application will be described in detail in conjunction with the accompanying drawings, through specific embodiments and their application scenarios.
[0030] Figure 1 It is a flowchart of a data protection method provided in an embodiment of the present application. Referring to Figure 1 , the data protection method provided in the embodiments of the present application can be executed by a storage device. In the embodiments of the present application, the storage device can be a hard disk, a mobile hard disk, a USB flash drive, a T card, a Secure Digital (SD) card, and other devices.
[0031] The data protection method provided in the embodiments of the present application may include:
[0032] Step 110: Obtain destruction parameters associated with time information when the storage device is powered on;
[0033] Step 120: Destroy the specified data stored in the storage device when the destruction parameters meet the first preset condition.
[0034] Among them, the specified data may be important data to be protected, such as privacy data, security data, and confidential data.
[0035] In the embodiments of the present application, the specified data may be located in a certain partition of the storage device or distributed throughout the storage device. When the specified data is located in a certain partition of the storage device, only the data under the entire partition can be deleted; when the specified data is distributed throughout the storage device, the data on the entire storage device can be deleted.
[0036] In the embodiments of the present application, the storage device itself may not have a battery, and time information can be obtained when the storage device is powered on.
[0037] In the embodiments of the present application, when the storage device is powered on, obtain destruction parameters associated with time information; when the destruction parameters meet the first preset condition, destroy the specified data stored in the storage device. In this way, by obtaining the destruction parameters associated with time information by the storage device when the storage device is powered on, and when the destruction parameters meet the first preset condition, the storage device itself destroys the specified data stored in the storage device, without the need for the user to manually trigger the destruction of the specified data stored in the storage device. Therefore, even when the electronic device is not in the user's hand, the storage device itself can destroy the specified data stored in the storage device, preventing other illegal users from viewing the user's important data, thus solving the problem that other illegal users may view the user's important data when the electronic device is not in the user's hand.
[0038] It should also be noted that the storage device can perform various operations after being powered on. Among them, the storage device may include a timer. When the storage device is powered on, the timer can perform the following operations: automatic timing synchronization, internal timing, timing verification, etc.
[0039] In an embodiment of the present application, the destruction parameters may include: the time interval between the current power-on and the previous power-off of the storage device. In this case, the step of destroying the data stored in the storage device when the destruction parameters meet the first preset condition in Step 120 may include: destroying the specified data stored in the storage device when the time interval is greater than the preset value.
[0040] In another embodiment of the present application, the storage device may be a removable storage device, and the destruction parameter may include: the time information of the removable storage device during the current power-on. In this case, in step 110, when the storage device is powered on, obtaining the destruction parameter associated with the time information includes: when the removable storage device is plugged into the physical machine and powered on, obtaining the time information of the removable storage device during the current power-on. Correspondingly, the data protection method in the embodiment of the present application may further include: obtaining the time information of the physical machine when the removable storage device is powered on this time. Correspondingly, in step 120, when the destruction parameter meets the first preset condition, destroying the specified data stored in the storage device includes: when the time information of the removable storage device during the current power-on does not match the time information of the physical machine when the removable storage device is powered on this time, destroying the specified data stored in the storage device.
[0041] In another embodiment of the present application, the storage device is a removable storage device adapted to the physical machine, and the destruction parameter may include: the time interval between the current power-on and the previous power-off of the removable storage device and the time information of the removable storage device during the current power-on. In step 120, when the destruction parameter meets the first preset condition, destroying the data stored in the storage device may include: when the time interval is less than or equal to the preset value, obtaining the time information of the physical machine when the removable storage device is powered on this time; when the time information of the removable storage device during the current power-on does not match the time information of the physical machine when the removable storage device is powered on this time, destroying the specified data stored in the storage device.
[0042] In the embodiment of the present application, the first preset condition may be that the time interval is greater than the preset value or the time information of the removable storage device during the current power-on does not match the time information of the physical machine when the removable storage device is powered on this time, etc. Among them, the preset value may be a time interval such as 1 hour, 1 day, 7 days, etc.
[0043] In the embodiment of the present application, when the destruction parameter includes the time interval between the current power-on and the previous power-off of the storage device and the time information of the storage device during the current power-on, Figure 1Based on the above, the data protection method provided by the embodiments of the present application may further include: accessing the specified data stored in the removable storage device when the destruction parameter meets the second preset condition; wherein, the second preset condition includes: the time interval is less than or equal to a preset value and the time information of the removable storage device at the time of this power-on matches the time information of the physical machine at the time of the removable storage device at the time of this power-on.
[0044] In the embodiments of the present application, the storage device may include a general partition and a security partition, and the specified data may be located in the security partition.
[0045] Next, refer to Figure 2 The data protection method in the case where the destruction parameter includes that the time interval between this power-on and the previous power-off of the storage device is greater than a preset value will be discussed.
[0046] Figure 2 is a flowchart of a data protection method provided by the embodiments of the present application. Refer to Figure 2 In the data protection method provided by the embodiments of the present application, it may be executed by a storage device and may include:
[0047] Step 210, when the storage device is powered on, obtain the time interval between this power-on and the previous power-off of the storage device;
[0048] Step 220, when the time interval is greater than a preset value, destroy the specified data stored in the storage device.
[0049] In the data protection method provided by the embodiments of the present application, when the storage device is powered on, the time interval between this power-on and the previous power-off of the storage device is obtained; when the time interval is greater than a preset value, the specified data stored in the storage device is destroyed. In this way, by destroying the specified data stored in the storage device by the storage device itself when the time interval is greater than a preset value, there is no need to worry that important data will be viewed by illegal users when the power-off time interval of the storage device is greater than a preset value, thus solving the problem that other illegal users may view the important data of the user when the electronic device is not in the user's hands.
[0050] Next, refer to Figure 3 The data protection method in the case where the destruction parameter includes the time information of the removable storage device at the time of this power-on will be discussed.
[0051] Figure 3 is a flowchart of a data protection method provided by the embodiments of the present application. Refer to Figure 3, the data protection method provided by the embodiments of the present application can be executed by a storage device, and the storage device can be a removable storage device adapted to a physical machine. Among them, the physical machine can be a host, a laptop, a television, etc. The data protection method provided by the embodiments of the present application may include:
[0052] Step 310, when the removable storage device is plugged into the physical machine and powered on, obtain the time information of the removable storage device at the time of this power-on;
[0053] Step 320, obtain the time information of the physical machine at the time when the removable storage device is powered on this time;
[0054] Step 330, when the time information of the removable storage device at the time of this power-on does not match the time information of the physical machine at the time when the removable storage device is powered on this time, destroy the specified data stored in the removable storage device. Among them, the storage device includes a general partition and a security partition, and the specified data is located in the security partition.
[0055] Among them, the time information of the removable storage device at the time of this power-on can refer to the time information at the moment when the removable storage device is powered on this time. The mismatch may include that, compared with the time information of the removable storage device at the time of this power-on, the time of the physical machine is ahead (that is, in the direction of future time) or behind (that is, in the direction of historical time).
[0056] In the embodiments of the present application, the mismatch between the time information of the removable storage device at the time of this power-on and the time information of the physical machine at the time when the removable storage device is powered on this time may also include: the difference (here the difference is in the category of absolute value) between the time information of the removable storage device at the time of this power-on and the time information of the physical machine at the time when the removable storage device is powered on this time is greater than a critical value, and the critical value can be set as needed. For example, the critical value is 5 seconds, 10 seconds, or 100 seconds, etc. That is to say, when this difference is greater than this critical value, it can be regarded as a mismatch; and when this difference is less than or equal to this critical value, it can be regarded as a match.
[0057] In an embodiment of the present application, when a removable storage device is plugged into the physical machine and powered on, obtain the time information of the removable storage device when it is powered on this time; obtain the time information of the physical machine when the removable storage device is powered on this time; when the time information of the removable storage device when it is powered on this time does not match the time information of the physical machine when the removable storage device is powered on this time, destroy the specified data stored in the storage device. In this way, when the time information when the storage device is powered on does not match the time information of the physical machine when the removable storage device is powered on this time, the storage device itself destroys the specified data stored in the storage device, thereby solving the problem that illegal users may view the important data of the storage device.
[0058] The following refers to Figure 4 Discuss the data protection method in the case where the destruction parameters include the time interval between the current power-on and the previous power-off of the storage device and the time information of the storage device when it is powered on this time.
[0059] Figure 4 It is a flowchart of a data protection method provided by an embodiment of the present application. Refer to Figure 4 In an embodiment of the present application, the data protection method can be executed by a storage device, and the storage device can be a removable storage device adapted to a physical machine. Some functions of the storage device can be implemented by a storage controller, and the storage controller can be various storage-related controllers such as a mechanical hard disk controller, a solid-state disk controller, and a USB flash drive controller. The storage device in an embodiment of the present application may further include an interface. The interface can be various interfaces such as USB (Universal Serial Bus), SATA (Serial Advanced Technology Attachment), PCIe (Peripheral Component Interconnect express), SD (Secure Digital), eMMC (Embedded Multi Media Card), and UFS (Universal File Store). The physical machine can be a host, a laptop computer, a television, etc.
[0060] As Figure 4 shown, the data protection method provided by an embodiment of the present application may include:
[0061] Step 410: When the removable storage device is powered on, obtain the time interval between the current power-on and the previous power-off of the removable storage device; wherein, the time interval between the current power-on and the previous power-off can be the difference between the time at the moment of the current power-on and the time at the moment of the previous power-off.
[0062] Step 420: When the time interval is less than or equal to the preset value, obtain the time information of the physical machine at the time when the removable storage device is powered on this time.
[0063] Step 430: When the time information of the removable storage device at the time of this power-on does not match the time information of the physical machine at the time when the removable storage device is powered on this time, destroy the specified data stored in the removable storage device.
[0064] Wherein, the non-match may be that, compared with the time information of the removable storage device at the time of this power-on, the time of the physical machine is ahead (i.e., in the future time direction) or behind (i.e., in the historical time direction).
[0065] In the embodiments of the present application, the non-match between the time information of the removable storage device at the time of this power-on and the time information of the physical machine at the time when the removable storage device is powered on this time may also include: the difference (here the difference is in the category of absolute value) between the time information of the removable storage device at the time of this power-on and the time information of the physical machine at the time when the removable storage device is powered on this time is greater than a critical value, and the critical value can be set as needed. For example, the critical value is 5 seconds, 10 seconds, 100 seconds, etc. That is to say, when this difference is greater than this critical value, it can be regarded as a non-match; and when this difference is less than or equal to this critical value, it can be regarded as a match.
[0066] In an embodiment of the present application, when the time interval is less than or equal to the preset value, obtain the time information of the physical machine when the removable storage device is powered on this time, and when the time information of the removable storage device when it is powered on this time does not match the time information of the physical machine when the removable storage device is powered on this time, destroy the specified data stored in the storage device. In this way, when the time interval between the power-on of the storage device this time and the power-off last time is less than or equal to the preset value, by further determining whether the time information of the removable storage device when it is powered on this time matches the time information of the physical machine when the removable storage device is powered on this time, and when the time information of the removable storage device when it is powered on this time does not match the time information of the physical machine when the removable storage device is powered on this time, destroying the specified data stored in the storage device can prevent illegal users from viewing the specified data stored in the storage device, thereby further improving the security of the specified data.
[0067] Figure 5 is a flowchart of the process for obtaining the time information of a removable storage device when it is powered on this time provided by an embodiment of the present application. Refer to Figure 5 , when the storage device is a removable storage device adapted to the physical machine, the process for obtaining the time information of the removable storage device when it is powered on this time provided by an embodiment of the present application may include:
[0068] Step 510, obtain the time information of the removable storage device when it was powered off last time;
[0069] Step 520, obtain the time interval between the power-on of the storage device this time and the power-off last time;
[0070] Step 530, use the sum of the time information of the removable storage device when it was powered off last time and the time interval as the time information of the removable storage device when it is powered on this time.
[0071] In an embodiment of the present application, by obtaining the time information of the removable storage device when it was powered off last time; obtaining the time interval between the power-on of the storage device this time and the power-off last time; using the sum of the time information of the removable storage device when it was powered off last time and the time interval as the time information of the removable storage device when it is powered on this time. In this way, the time information of the removable storage device when it is powered on this time can be accurately obtained.
[0072] Figure 6 is a flowchart of another data protection method provided by the present application. In Figure 6An authentication process is introduced in the data protection method. Among them, the authentication can be password authentication, identity authentication, fingerprint authentication, UKey authentication and other authentication methods. Refer to Figure 6 , the data protection method provided by the embodiment of the present application may include:
[0073] Step 610, the physical machine sends time information to the storage device.
[0074] Step 620, does the storage device determine whether the time information stored by itself matches the time information sent by the physical machine?
[0075] In the embodiment of the present application, the storage device can determine whether the two match by calculating the absolute value of the difference between the time information stored by itself and the time information sent by the physical machine. Specifically, when the absolute value of the difference between the time information stored by itself and the time information sent by the physical machine is greater than a critical value, it can be determined that the two do not match. When the absolute value of the difference between the time information stored by itself and the time information sent by the physical machine is less than or equal to a critical value, it can be determined that the two match. For example, if this difference is 0, it can be determined that the two match. The critical value can be set as needed. For example, the critical value is 5 seconds, 10 seconds, 50 seconds or 100 seconds, etc.
[0076] Step 630, when the time information stored by the storage device itself matches the time information sent by the physical machine, the storage device performs authentication and determines whether the authentication passes.
[0077] Step 640, when the time information stored by the storage device itself does not match the time information sent by the physical machine, notify the physical machine that the time verification fails.
[0078] Step 650, when the authentication passes, unlock the secure partition.
[0079] In this step, when the physical machine passes the authentication, it can access the secure partition of the storage device.
[0080] Step 660, when the authentication fails, destroy the specified data in the secure partition.
[0081] It should be noted that in the embodiment of the present application, the authentication process can also be performed first, and the timing synchronization process can be executed after the authentication passes. That is, first perform the authentication in step 630, and then execute steps 610, 620, 640 and 650 after the authentication passes.
[0082] The data protection method provided by the embodiments of the present application can prevent illegal users from accessing the specified data in the secure partition by deliberately modifying the clock of the physical machine through double verification of time verification and identity authentication, further improving the security of the specified data in the secure partition.
[0083] Figure 7 is a flowchart of another data protection method provided by the present application. In Figure 7 the data protection method, a time synchronization process is introduced. The storage device itself may not have a battery, so the timing can be started only when the storage device is connected to the physical machine and powered on. Referring to Figure 7 , the data protection method provided by the embodiments of the present application may include:
[0084] Step 710, when the storage device is powered on, read the stored device time.
[0085] Step 720, the storage device uses the local clock for timing and generates a timing result.
[0086] In this step, the timing result can be calculated based on the result recorded during the previous power-on. For example, if the result of the previous power-on was 7:00 and an hour has passed in between, then the result of this power-on can be 8:00, and the difference can be 1 hour.
[0087] Step 730, does the storage device detect whether the timing result is overdue?
[0088] In this step, the storage device can compare the timing result with the timing result recorded during the previous power-on, calculate the difference in between, and determine whether the timing result is overdue based on this difference. For example, the difference can be compared with a threshold. If the difference is greater than the threshold, it can be determined as overdue; if the difference is less than the threshold, it can be determined as not overdue.
[0089] Step 740, in the case where the storage device is overdue, lock the secure partition on the storage device, prevent access to the data on the secure partition, and destroy the specified data in the secure partition.
[0090] Step 750, in the case where the storage device is not overdue, store the timing result.
[0091] Step 760, the storage device determines whether the physical machine initiates synchronous timing.
[0092] Step 770, in the case where the physical machine does not initiate synchronous timing, determine whether the non-initiation of synchronous timing is overdue?
[0093] In this step 770, the storage device can start timing at the time point when it determines that the physical machine does not initiate synchronous timing, count the duration of the non-initiation of synchronous timing, and determine whether it is overdue based on this duration.
[0094] In an embodiment of the present application, when it is determined that the synchronization timing has not timed out, step 740 is executed; when it is determined that the synchronization timing has not timed out, step 720 is executed.
[0095] Step 780, when the physical machine initiates synchronization timing, the storage device stores the synchronization timing result.
[0096] In the timing synchronization process of the data protection method provided in the embodiment of the present application, the storage device starts timing after being powered on, and the current value of the timing has two sources. First, the last stored timing value can be obtained locally from the storage device; second, the storage device can obtain a new timing value according to the timing synchronization with the physical machine and continue timing. Once the timing synchronization does not match, the destruction program can be immediately started. If the physical machine does not initiate timing synchronization after timing out after being powered on, the storage device may be used in an illegal environment, and the destruction program will also be started.
[0097] Figure 8 It is a structural block diagram of a storage device provided by the present application. Refer to Figure 8 , the storage device includes: an acquisition module 810 and a processing module 820.
[0098] Among them, the acquisition module 810 is used to acquire a destruction parameter associated with time information when the storage device is powered on.
[0099] The processing module 820 is used to destroy the specified data stored in the storage device when the destruction parameter meets the first preset condition.
[0100] The storage device provided in the embodiment of the present application acquires a destruction parameter associated with time information when the storage device is powered on; when the destruction parameter meets the first preset condition, the specified data stored in the storage device is destroyed. In this way, by acquiring the destruction parameter associated with time information by the storage device when the storage device is powered on, and when the destruction parameter meets the first preset condition, the storage device itself destroys the specified data stored in the storage device, thereby solving the problem that illegal users may view important data of the storage device.
[0101] Optionally, in an embodiment of the present application, the destruction parameter includes: the time interval between the current power-on and the previous power-off of the storage device. In the process of destroying the data stored in the storage device when the destruction parameter meets the first preset condition, the processing module 820 is specifically used to: when the time interval is greater than a preset value, destroy the specified data stored in the storage device.
[0102] Optionally, in an embodiment of the present application, the storage device is a removable storage device adapted to a physical machine, and the destruction parameter includes: time information of the removable storage device when it is powered on this time; when the storage device is powered on and the destruction parameter associated with the time information is being obtained, the obtaining module 810 can be used to: when the removable storage device is plugged into the physical machine and powered on, obtain the time information of the removable storage device when it is powered on this time; the obtaining module 810 can also be used to: obtain the time information of the physical machine when the removable storage device is powered on this time.
[0103] Correspondingly, when the destruction parameter meets the first preset condition and the specified data stored in the storage device is being destroyed, the processing module 820 is specifically used to: when the time information of the removable storage device when it is powered on this time does not match the time information of the physical machine when the removable storage device is powered on this time, destroy the specified data stored in the storage device.
[0104] Optionally, in an embodiment of the present application, the destruction parameter further includes: the time information of the removable storage device when it is powered on this time. When the destruction parameter meets the first preset condition and the data stored in the storage device is being destroyed, the processing module 820 is further used to: when the time interval is less than or equal to the preset value, obtain the time information of the physical machine when the removable storage device is powered on this time; when the time information of the removable storage device when it is powered on this time does not match the time information of the physical machine when the removable storage device is powered on this time, destroy the specified data stored in the storage device.
[0105] Optionally, in an embodiment of the present application, when obtaining the time information of the removable storage device when it is powered on this time, the obtaining module 810 is specifically used to: obtain the time information of the removable storage device when it was powered off last time; obtain the time interval between this power-on and the last power-off; use the sum of the time information of the removable storage device when it was powered off last time and the time interval as the time information of the removable storage device when it is powered on this time.
[0106] Optionally, in an embodiment of the present application, the storage device is a removable storage device adapted to a physical machine, and the destruction parameter includes: the time interval between the current power-on and the previous power-off of the removable storage device, and the time information of the removable storage device at the current power-on. The storage device may include: an access module; the access module is configured to access specified data stored in the storage device when the destruction parameter meets a second preset condition; wherein, the second preset condition includes: the time interval is less than or equal to a preset value and the time information of the removable storage device at the current power-on matches the time information of the physical machine at the time of the current power-on of the removable storage device.
[0107] Figure 9 FIG. 4 is a schematic diagram of a storage device provided by the present application; the storage device provided by the embodiments of the present application may include: a processor 910 and a memory 920. Among them, a program or instruction may be stored on the memory, and when the program or instruction is executed, any data protection method provided by the embodiments of the present application is implemented.
[0108] In an embodiment of the present application, when the storage device is powered on, a destruction parameter associated with time information is obtained; when the destruction parameter meets a first preset condition, specified data stored in the storage device is destroyed. In this way, by obtaining, when the storage device is powered on, a destruction parameter associated with time information by the storage device, and when the destruction parameter meets the first preset condition, the storage device itself destroys the specified data stored in the storage device, without the need for the user to manually trigger the destruction of the specified data stored in the storage device. Therefore, even when the electronic device is not in the user's hand, the storage device itself can destroy the specified data stored in the storage device, preventing other unauthorized users from viewing the user's important data.
[0109] The embodiments of the present application further provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned data protection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be elaborated here.
[0110] Among them, the processor is the processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disc, etc.
[0111] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to run programs or instructions to implement each process of the above data protection method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0112] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0113] The embodiments of the present application provide a computer program product, which is stored in a storage medium and is executed by at least one processor to implement each process of the above data protection method embodiment and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0114] It should be noted that in this article, the term "including", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0115] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0116] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative rather than restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.
Claims
1. A data protection method, characterized in that, Executed by a storage device, the data protection method includes: When the storage device is powered on, obtaining destruction parameters associated with time information; the destruction parameters include: the time interval between the current power-on and the previous power-off of the storage device, and the time information of the storage device at the current power-on; When the time interval is greater than a preset value, destroying the specified data stored in the storage device; When the time interval is less than or equal to the preset value, obtaining the time information of the physical machine at the time when the storage device is powered on; When the time information of the storage device at the current power-on does not match the time information of the physical machine at the time when the storage device is powered on, destroying the specified data stored in the storage device; Wherein, the storage device is a removable storage device adapted to the physical machine.
2. The data protection method according to claim 1, characterized in that When the storage device is powered on, obtaining the destruction parameters associated with time information includes: when the removable storage device is plugged into the physical machine and powered on, obtaining the time information of the removable storage device at the current power-on.
3. The data protection method according to claim 2, wherein Obtaining the time information of the removable storage device at the current power-on includes: Obtaining the time information of the removable storage device at the previous power-off; Obtaining the time interval between the current power-on and the previous power-off; Taking the sum of the time information of the removable storage device at the previous power-off and the time interval as the time information of the removable storage device at the current power-on.
4. The data protection method according to claim 1, characterized in that The data protection method further includes: When the destruction parameters meet the second preset condition, accessing the specified data stored in the removable storage device; Wherein, the second preset condition includes: the time interval is less than or equal to the preset value, and the time information of the removable storage device at the current power-on matches the time information of the physical machine at the time when the removable storage device is powered on.
5. The data protection method according to claim 1, characterized in that The storage device includes a normal partition and a security partition, and the specified data is located in the security partition.
6. A storage device, characterized in that, The storage device includes: An obtaining module, configured to obtain destruction parameters associated with time information when the storage device is powered on; the destruction parameters include: the time interval between the current power-on and the previous power-off of the storage device, and the time information of the storage device at the current power-on; A processing module, configured to destroy the specified data stored in the storage device when the time interval is greater than the preset value; obtain the time information of the physical machine at the time when the storage device is powered on when the time interval is less than or equal to the preset value; and destroy the specified data stored in the storage device when the time information of the storage device at the current power-on does not match the time information of the physical machine at the time when the storage device is powered on; Wherein, the storage device is a removable storage device adapted to the physical machine.
Citation Information
Patent Citations
Hard disk data destruction method, computer equipment and storage medium
CN111310244A