Hidden sector unlocking method, storage device and electronic device

Through Bluetooth communication and server verification methods, the problem of cracking hidden sector access methods is solved, improving the security of storage devices and preventing data loss.

CN119442210APending Publication Date: 2025-02-14SHENZHEN LONGSYS ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310949723.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, the access method of hidden sectors is easily maliciously cracked, resulting in corruption of storage devices and loss of user data.

Method used

Through Bluetooth communication, the storage device's signature code is obtained and the unlock password is checksum verification through the server to ensure that only a legitimate unlock password can open the hidden sector.

Benefits of technology

It effectively avoids remote malicious cracking, ensures the security and reliability of unlock passwords, and prevents corruption of storage devices and loss of user data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442210A_ABST
    Figure CN119442210A_ABST
Patent Text Reader

Abstract

The invention provides a hidden sector unlocking method, storage equipment and electronic equipment. The method comprises the following steps: in response to an unlocking instruction for a hidden sector in the storage equipment, obtaining a feature code of the storage equipment; sending the feature code of the storage device through Bluetooth communication; receiving a returned unlocking password, and verifying the unlocking password; and if the unlocking password passes the verification, opening a hidden sector in the storage device. By means of the method, the safety of hidden sector unlocking can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a hidden sector unlocking method, a storage device and an electronic device. Background Art

[0002] With the rapid development of Internet of Things technology, more and more applications need to use hidden sectors of storage devices (such as solid-state drives) in electronic devices (such as computers and mobile phones). Usually, hidden sectors can be used to store manufacturer-specific program data. For example, program data can be used to implement functions such as recovery or saving key information when the system is abnormal, and the opening / closing and reading / writing of the hidden sector are all performed through a pre-set access method.

[0003] However, currently, the reading and writing of hidden sectors basically adopts standard interfaces. Therefore, by analyzing the behavior of the program, the access method to the hidden sector can be reversed. It can be seen that if the access method is maliciously cracked, it will cause damage to the storage device, resulting in the loss of user data, leading to data leakage and data security risks. Summary of the invention

[0004] In view of the above, it is necessary to provide a hidden sector unlocking method, a storage device and an electronic device, which can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data.

[0005] On the one hand, the present application provides a hidden sector unlocking method, which is applied to a storage device, and the method includes: in response to an unlocking instruction for a hidden sector in the storage device, obtaining a feature code of the storage device, sending the feature code of the storage device via Bluetooth communication, receiving a returned unlocking password, and verifying the unlocking password. If the unlocking password is verified, the hidden sector in the storage device is unlocked.

[0006] In some embodiments of the present application, before sending the characteristic code of the storage device via Bluetooth communication, the method also includes binding the storage device: in response to a binding request, sending the characteristic code of the storage device via Bluetooth communication, receiving binding information and completing a binding handshake operation.

[0007] In some embodiments of the present application, the storage device further stores a verification password for verifying the unlocking password, and the verification of the unlocking password includes: if the unlocking password is the same as the verification password, determining that the unlocking password verification is successful.

[0008] In some embodiments of the present application, the method further includes: if the unlock password is not received or the unlock password verification fails, the hidden sector in the storage device is not enabled, and verification feedback information is generated, wherein the verification feedback information is used to characterize the failure to enable the hidden sector in the storage device.

[0009] Through the above implementation, the storage device communicates via Bluetooth, so that the unlocking of the hidden sector in the storage device requires the user to be near the storage device, thereby avoiding remote malicious cracking operations. Since the feature code of each storage device is unique, it is possible to avoid the situation where multiple storage devices are maliciously damaged due to the same access method of multiple storage devices. Since the unlocking password needs to be verified by the feature code of the storage device, when the verification of the feature code fails, the unlocking password cannot be received, so it is possible to avoid the unlocking password being maliciously cracked, thereby ensuring the security and reliability of the unlocking password. The unlocking password is verified, and when the unlocking password is verified, it is determined that the behavior of opening the hidden sector is legal, and the hidden sector is opened. At this time, the user can access the hidden sector according to a specific access method, so that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data. The technical problem can be solved, thereby improving the security of unlocking the hidden sector.

[0010] On the other hand, the present application provides a hidden sector unlocking method, which is applied to a terminal device, and the terminal device is connected to a storage device via Bluetooth. The method includes: receiving a feature code of the storage device sent from the storage device, and sending the feature code and the device identification code of the terminal device to a server to request an unlocking password, receiving the unlocking password returned by the server, and sending the unlocking password to the storage device, wherein the unlocking password is used to instruct the storage device to open a hidden sector in the storage device.

[0011] In some embodiments of the present application, before receiving the feature code of the storage device sent from the storage device, the method also includes: sending a binding request to the storage device, and receiving the feature code returned by the storage device in response to the binding request, sending the feature code and the device identification code to a server, and completing the binding of the storage device and the terminal device.

[0012] In some embodiments of the present application, the method further includes: receiving verification feedback information returned by the server, where the verification feedback information is obtained by the server verifying the feature code and the device identification code.

[0013] Through the above implementation, the terminal device is usually a device held by the user (such as a mobile phone), and the storage device is connected to the terminal device via Bluetooth, so that the unlocking of the hidden sector in the storage device requires the user to be near the storage device, thereby avoiding remote malicious cracking operations. The storage device is bound to a unique terminal device through the feature code of the storage device. Since the feature code of each storage device is unique, it is possible to avoid the situation where multiple storage devices are accessed in the same way and multiple storage devices are maliciously damaged. Since the unlock password is obtained by the server verifying the feature code and the device identification code, when the terminal device is not bound to the storage device and the verification of the feature code and the device identification code fails, the server will not return the unlock password, but returns verification feedback information of not binding or verification failure, thereby avoiding malicious cracking of the unlock password and ensuring the security and reliability of the unlock password. Since the storage device also stores a verification password, the verification password is used to verify the unlocking password. When the unlocking password is verified, it is determined that the behavior of opening the hidden sector is legal, and the hidden sector is opened. Only then can the user access the hidden sector according to a specific access method. Therefore, it can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0014] On the other hand, the present application provides a storage device that implements the hidden sector unlocking method through Bluetooth communication, the storage device includes a hidden sector and a feature code of the hidden sector, and the storage device determines whether to open the hidden sector through verification.

[0015] On the other hand, the present application provides a storage device, which includes a controller. The storage device stores at least one instruction. The controller obtains the instruction stored in the storage device to implement the hidden sector unlocking method.

[0016] On the other hand, the present application provides an electronic device, comprising: the storage device storing at least one instruction; and a processing device acquiring the instruction stored in the storage device to implement the hidden sector unlocking method. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is an application scenario diagram of a hidden sector unlocking method provided in an embodiment of the present application.

[0018] Figure 2 An interactive flow chart of a hidden sector unlocking method provided in an embodiment of the present application.

[0019] Figure 3 This is a flow chart of a hidden sector unlocking method provided in an embodiment of the present application.

[0020] Figure 4 This is a flowchart of a hidden sector unlocking method provided by another embodiment of the present application.

[0021] Figure 5 This is a flowchart of a hidden sector unlocking method provided by another embodiment of the present application.

[0022] Figure 6 It is a structural diagram of a storage device provided in one embodiment of the present application.

[0023] Figure 7 It is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0024] It should be noted that in this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of the associated objects, indicating that three types of relationships may exist.

[0025] For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The terms "first", "second", "third", "fourth", etc. (if any) in the specification, claims and drawings of this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0026] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. The following embodiments and features in the embodiments may be combined with each other without conflict.

[0027] With the rapid development of Internet of Things technology, more and more applications need to use hidden sectors of storage devices (such as solid-state drives) in electronic devices (such as computers and mobile phones). Usually, hidden sectors can be used to store manufacturer-specific program data. For example, program data can be used to implement functions such as recovery or saving key information when the system is abnormal, and the opening / closing and reading / writing of the hidden sector are all performed through a pre-set access method.

[0028] However, currently, the reading and writing of hidden sectors basically adopts standard interfaces. Therefore, by analyzing the behavior of the program, the access method to the hidden sector can be reversed. It can be seen that if the access method is maliciously cracked, it will cause damage to the storage device, resulting in the loss of user data, leading to data leakage and data security risks.

[0029] In order to solve the above problems, the embodiments of the present application provide a hidden sector unlocking method, a storage device and an electronic device, which can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data. The following is an introduction in conjunction with the application scenarios provided by the embodiments of the present application.

[0030] like Figure 1 , which is an application scenario diagram of a hidden sector unlocking method provided in an embodiment of the present application. Figure 1 All devices and signals presented are for illustrative purposes only and are not limited thereto in practical applications. Figure 1 The storage device 11 in the electronic device 1 is connected to the terminal device 2 via Bluetooth, and the terminal device 2 communicates with the server 3. For example, the terminal device 2 and the server 3 can communicate via Bluetooth, hotspot, Wi-Fi, etc.

[0031] The electronic device 1 may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, etc.

[0032] The storage device 11 is a data storage device, and the storage device 11 may be a solid state disk (SSD) or a USB flash drive built into the electronic device 1. The hardware of the storage device 11 includes, but is not limited to: a controller, a flash memory, a cache, and the like.

[0033] The terminal device 2 may include, but is not limited to: a smart phone, a personal digital assistant

[0034] (Personal Digital Assistant, PDA), game console, interactive network television (Internet Protocol Television, IPTV) and intelligent wearable device, etc. The present application does not limit the terminal device 2.

[0035] The server 3 may be a server corresponding to the manufacturer of the storage device 11 . In the embodiment of the present application, there is no limitation on the electronic device 1 , the storage device 11 , the terminal device 2 and the server 3 .

[0036] The terminal device 2 sends a binding request to the electronic device 1, and the storage device 11 in the electronic device 1 responds to the binding request and sends the feature code of the storage device 11 to the terminal device 2. The terminal device 2 sends the device identification code of the terminal device 2 and the received feature code to the server 3 to bind the storage device 11 to the terminal device 2 in the server 3. After the storage device 11 is bound to the terminal device 2, in response to the unlocking instruction of the hidden sector in the storage device 11 that is triggered, the storage device 11 sends the feature code to the terminal device 2, and the terminal device 2 sends the received feature code and the device identification code to the server 3 to request the unlocking password of the hidden sector. After receiving the unlocking password from the server 3, the terminal device 2 sends the unlocking password to the storage device 11, and the storage device 11 verifies the received unlocking password. When the unlocking password is verified, the storage device 11 opens the hidden sector, so that the user can access the hidden sector through a predetermined access method (access instruction).

[0037] In order to more clearly introduce the data interaction between the storage device and the terminal device to realize the hidden sector unlocking method, the following is combined with Figure 2 Describe the interaction process in detail.

[0038] like Figure 2 , is an interactive flow chart of a hidden sector unlocking method provided by an embodiment of the present application. Applied between a storage device, a terminal device and a server, for example, Figure 1 The storage device 11, the terminal device 2 and the server 3 of the electronic device 1 can be adjusted according to different needs, and some steps can be omitted.

[0039] S201: The terminal apparatus sends a binding request to the storage device.

[0040] In some embodiments of the present application, the terminal device is connected to the storage device via Bluetooth, so the terminal device can send the binding request to the storage device via the Bluetooth protocol. The binding request may include information such as the device identification code of the terminal device and the request string.

[0041] S202: In response to the binding request, the storage device obtains a feature code of the storage device and sends the feature code to the terminal device.

[0042] In some embodiments of the present application, each storage device has a unique feature code, which can be generated by the manufacturer when the storage device is produced, and can be written by the manufacturer into the produced storage device and the manufacturer's server. Since the terminal device is connected to the storage device via Bluetooth, the storage device can send the feature code to the terminal device via the Bluetooth protocol.

[0043] S203, the terminal device sends the received feature code and the device identification code of the terminal device to a server to bind the storage device to the terminal device.

[0044] In some embodiments of the present application, the server may be a server of a manufacturer of the storage device, and the server communicates with the terminal device.

[0045] S204: The server associates the received feature code with the device identification code to complete binding between the storage device and the terminal apparatus.

[0046] In some embodiments of the present application, upon receiving the feature code and the device identification code, the server may search based on the feature code to determine whether there is a device identification code associated with the feature code. If there is no device identification code associated with the feature code, the server associates the received feature code with the device identification code, thereby being able to bind the storage device to the terminal device (handshake), and feed back binding information to the storage device through the terminal device, the binding information being used to indicate that the storage device is successfully bound to the terminal device. Alternatively, if there is a device identification code associated with the feature code, the server sends feedback information of binding failure to the storage device through the terminal device.

[0047] In this embodiment, by associating the unique feature code of each storage device with the device identification code of the terminal device in the server, each storage device can be bound to a unique terminal device, thereby reducing the risk of virus software simulating the terminal device to obtain the unlocking password from the server.

[0048] S205: In response to an unlock instruction for a hidden sector in the storage device, the storage device sends the feature code to the terminal apparatus.

[0049] In some embodiments of the present application, the unlock instruction can be triggered by the user through click or voice, and the unlock instruction includes, but is not limited to: click instruction, gesture instruction, and voice instruction.

[0050] S206, the terminal device sends the feature code and the device identification code to the server to obtain an unlocking password.

[0051] In some embodiments of the present application, the unlock password may be a preconfigured password, or a password randomly generated by the server, or the unlock password may be a password generated by the server performing a hash calculation on a received feature code and / or device identification code.

[0052] S207, the server verifies the received feature code and the device identification code, and generates an unlocking password or verification feedback information according to the verification result.

[0053] In some embodiments of the present application, upon receiving the feature code and the device identification code, the server can determine the device identification code associated with the received feature code by searching, and compare the received device identification code with the associated device identification code. If the received device identification code is the same as the associated device identification code, the server returns the unlock password. Alternatively, if the received device identification code is not the same as the associated device identification code, the server returns verification feedback information to the terminal device, and the verification feedback information is used to indicate that the verification of the feature code and the device identification code has failed.

[0054] S208: The server sends the unlocking password or the verification feedback information to the terminal device.

[0055] In some embodiments of the present application, the server may send the unlock password or the verification feedback information to the terminal device via Bluetooth, hotspot, Wi-Fi, etc.

[0056] S209: The terminal device sends the unlocking password or the verification feedback information to the storage device.

[0057] In some embodiments of the present application, the unlocking password is used to instruct the storage device to unlock a hidden sector in the storage device.

[0058] S210: If the unlocking password returned from the terminal device is received, the storage device verifies the received unlocking password.

[0059] In one embodiment of the present application, the storage device also stores a verification password for verifying the unlocking password, and the storage device verifies the unlocking password including: the storage device compares the unlocking password with the verification password, and if the unlocking password is the same as the verification password, it is determined that the unlocking password verification is passed; if the unlocking password is different from the verification password, it is determined that the unlocking password verification is failed.

[0060] In another embodiment of the present application, the storage device may use a hash algorithm to perform hash calculation on the unlock password to obtain a hash calculation result, and compare the hash settlement result with the verification password. If the hash settlement result is the same as the verification password, it is determined that the unlock password verification is passed. If the hash settlement result is different from the verification password, it is determined that the unlock password verification is not passed. The hash algorithm includes, but is not limited to: a message digest algorithm, a secure hash algorithm (Secure Hash Algorithm, SHA), etc.

[0061] In other embodiments of the present application, the storage device may verify the unlocking password in other ways, which is not limited in the present application.

[0062] S211, the storage device determines whether to enable the hidden sector according to the verification result.

[0063] In some embodiments of the present application, if the verification result is that the unlock password verification is passed, the storage device opens the hidden sector; or, if the verification result is that the unlock password verification is not passed, the storage device does not open the hidden sector.

[0064] In this embodiment, when the unlocking password verification is passed, the storage device determines that the behavior of opening the hidden sector is legal and opens the hidden sector. Only then can the user access the hidden sector according to a specific access method. Therefore, it can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data.

[0065] In other embodiments of the present application, when the unlock password is verified, the storage device can directly unlock (expose) the hidden sector, so that the user can directly access the hidden sector without using a specific access method. After a preset time has passed or when it is detected that the hidden sector has not been accessed, the storage device can automatically close the hidden sector. The preset time can be set by yourself, and the present application does not limit this. For example, the preset time can be 3s or 5s.

[0066] When the unlock password verification fails, the storage device determines that the behavior of opening the hidden sector is illegal and does not open the hidden sector. At this time, the user cannot access the hidden sector according to a specific access method, thereby preventing the hidden sector from being maliciously cracked. In other embodiments of the present application, if the verification feedback information is received from the terminal device (if the unlock password is not received from the terminal device) or the unlock password verification fails, the storage device does not open the hidden sector and generates verification feedback information, and the verification feedback information is used to indicate that the hidden sector fails to be opened.

[0067] Through the above implementation, the terminal device is usually a device held by the user (such as a mobile phone), and the storage device is connected to the terminal device via Bluetooth, so that the unlocking of the hidden sector in the storage device requires the user to be near the storage device to perform, thereby avoiding remote malicious cracking operations. The storage device is bound to a unique terminal device through the feature code of the storage device. Since the feature code of each storage device is unique, it is possible to avoid the situation where multiple storage devices are maliciously damaged due to the same access method of multiple storage devices. Since the unlocking password requires the server to verify the feature code and the device identification of the terminal device, when the terminal device is not bound to the storage device and the server fails to verify the feature code and the device identification code, the server will not return the unlocking password, thereby avoiding the unlocking password from being maliciously cracked, thereby ensuring the security and reliability of the unlocking password. The unlocking password is verified, and when the unlocking password is verified, it is determined that the behavior of opening the hidden sector is legal, and the hidden sector is opened. At this time, the user can access the hidden sector according to a specific access method, thereby solving the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0068] In some embodiments of the present application, Figure 3 FIG. 1 is a flow chart of a hidden sector unlocking method provided by an embodiment of the present application. Figure 3 The process shown is applied to a storage device (e.g., Figure 1 According to different requirements, the order of each step in the flowchart can be adjusted according to actual detection requirements, and some steps can be omitted. Figure 3 The hidden sector unlocking method in includes the following steps:

[0069] S301: In response to a triggered unlocking instruction for a hidden sector in the storage device, the storage device obtains a feature code of the storage device.

[0070] In some embodiments of the present application, the unlocking instruction may be triggered by a user through a click or voice, and the unlocking instruction includes, but is not limited to: a click instruction, a gesture instruction, and a voice instruction, etc. The feature code corresponds to the storage device one by one.

[0071] S302: The storage device sends the feature code to a terminal device connected to the storage device via Bluetooth, and receives an unlocking password returned from the terminal device.

[0072] In some embodiments of the present application, before sending the feature code to a terminal device connected to the storage device by Bluetooth, the method further includes: in response to a binding request sent by the terminal device, the storage device sends the feature code to the terminal device, and the terminal device sends the feature code and the device identification code of the terminal device to a server to complete the binding of the storage device and the terminal device.

[0073] S303: The storage device verifies the unlocking password.

[0074] In one embodiment of the present application, the storage device also stores a verification password for verifying the unlocking password, and the storage device verifies the unlocking password, including: if the unlocking password is the same as the verification password, the storage device determines that the unlocking password verification is successful; if the unlocking password is different from the verification password, the storage device determines that the unlocking password verification is unsuccessful.

[0075] In another embodiment of the present application, the storage device may use a hash algorithm to perform hash calculation on the unlock password to obtain a hash calculation result, and compare the hash settlement result with the verification password. If the hash settlement result is the same as the verification password, it is determined that the unlock password verification is passed. If the hash settlement result is different from the verification password, it is determined that the unlock password verification is not passed. The hash algorithm includes, but is not limited to: a message digest algorithm, a secure hash algorithm (Secure Hash Algorithm, SHA), etc.

[0076] In other embodiments of the present application, the storage device may verify the unlocking password in other ways, which is not limited in the present application.

[0077] S304: The storage device determines whether the unlocking password is verified.

[0078] In this embodiment, if the unlock password verification passes, the storage device executes step S305, or if the unlock password verification fails, the storage device executes step S306.

[0079] S305: The storage device enables the hidden sector.

[0080] In this embodiment, when the unlocking password verification is passed, it is determined that the behavior of opening the hidden sector is legal, and the hidden sector is opened. At this time, the user can access the hidden sector according to a specific access method. Therefore, it can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0081] S306: The storage device does not enable the hidden sector.

[0082] In this embodiment, when the unlock password verification is passed, it is determined that the behavior of opening the hidden sector is illegal, and the hidden sector is not opened. At this time, the user cannot access the hidden sector according to a specific access method, thereby preventing the hidden sector from being maliciously cracked.

[0083] In other embodiments of the present application, if the unlocking password is not received from the terminal device, the storage device does not open the hidden sector and generates verification feedback information, where the verification feedback information is used to indicate that the hidden sector fails to be opened.

[0084] Through the above implementation, the terminal device is usually a device held by the user (such as a mobile phone), and the storage device is connected to the terminal device via Bluetooth, so that the unlocking of the hidden sector in the storage device requires the user to be near the storage device to perform, thereby avoiding remote malicious cracking operations. The storage device is bound to a unique terminal device through the feature code of the storage device. Since the feature code of each storage device is unique, it is possible to avoid the situation where multiple storage devices are maliciously damaged due to the same access method of multiple storage devices. Since the unlocking password requires the server to verify the feature code and the device identification of the terminal device, when the terminal device is not bound to the storage device and the server fails to verify the feature code and the device identification code, the server will not return the unlocking password, thereby avoiding the unlocking password from being maliciously cracked, thereby ensuring the security and reliability of the unlocking password. The unlocking password is verified. When the unlocking password is verified, the storage device determines that the behavior of opening the hidden sector is legal and opens the hidden sector. At this time, the user can access the hidden sector according to a specific access method, thereby solving the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0085] In another embodiment of the present application, if the hidden sector unlocking method is applied to an electronic device including the storage device (eg, Figure 1 Electronic equipment 1). Figure 4FIG. 1 is a flowchart of a hidden sector unlocking method provided by another embodiment of the present application. According to different requirements, the order of each step in the flowchart can be adjusted according to actual detection requirements, and some steps can be omitted. Figure 4 The hidden sector unlocking method in includes the following steps:

[0086] S401, in response to a triggered unlocking instruction for a hidden sector of a storage device in the electronic device, the electronic device obtains a feature code of the storage device from the storage device.

[0087] In some embodiments of the present application, the unlocking instruction may be triggered by a user through a click or voice, and the unlocking instruction includes, but is not limited to: a click instruction, a gesture instruction, and a voice instruction, etc. Each storage device has a unique feature code.

[0088] S402: The electronic device sends the feature code to a terminal device connected to the electronic device via Bluetooth, and receives an unlocking password returned from the terminal device.

[0089] In some embodiments of the present application, before sending the feature code to a terminal device connected to the electronic device via Bluetooth, the method further includes: in response to a binding request sent by the terminal device, the electronic device sends the feature code to the terminal device, and the terminal device sends the feature code and the device identification code of the terminal device to a server to complete the binding of the storage device to the terminal device. The electronic device is connected to the terminal device via Bluetooth, and the electronic device can send the feature code to the terminal device via the Bluetooth protocol.

[0090] S403: The electronic device controls the storage device to verify the unlocking password.

[0091] In one embodiment of the present application, the storage device also stores a verification password for verifying the unlocking password, and the electronic device controls the storage device to verify the unlocking password, including: if the unlocking password is the same as the verification password, the electronic device determines that the unlocking password verification is successful; if the unlocking password is different from the verification password, the electronic device determines that the unlocking password verification is unsuccessful.

[0092] In another embodiment of the present application, the electronic device may use a hash algorithm to perform hash calculation on the unlock password to obtain a hash calculation result, and compare the hash settlement result with the verification password. If the hash settlement result is the same as the verification password, the electronic device determines that the unlock password verification is passed. If the hash settlement result is different from the verification password, the electronic device determines that the unlock password verification is not passed. The hash algorithm includes, but is not limited to: a message digest algorithm, a secure hash algorithm (Secure Hash Algorithm, SHA), etc.

[0093] In other embodiments of the present application, the electronic device may verify the unlocking password in other ways, and the present application does not impose any limitation on this.

[0094] S404: The electronic device determines whether the unlocking password is verified.

[0095] In this embodiment, if the unlock password verification passes, the electronic device executes step S405, or if the unlock password verification fails, the electronic device executes step S406.

[0096] S405: The electronic device controls the storage device to open the hidden sector.

[0097] In this embodiment, when the unlocking password verification is passed, the electronic device determines that the behavior of opening the hidden sector is legal, and controls the storage device to open the hidden sector. Only then can the user access the hidden sector according to a specific access method. Therefore, it can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0098] S406: The electronic device does not control the storage device to open the hidden sector.

[0099] In this embodiment, when the unlocking password verification is passed, the electronic device determines that the behavior of opening the hidden sector is illegal, and the electronic device does not control the storage device to open the hidden sector. At this time, the user cannot access the hidden sector according to a specific access method, thereby avoiding the hidden sector from being maliciously cracked, thereby improving the security of unlocking the hidden sector.

[0100] In other embodiments of the present application, if the unlocking password is not received from the terminal device, the electronic device does not control the storage device to open the hidden sector, and generates verification feedback information, wherein the verification feedback information is used to indicate that the hidden sector fails to be opened.

[0101] Through the above implementation, the terminal device is usually a device held by the user, and the electronic device and the terminal device are connected via Bluetooth, so that the unlocking of the hidden sector of the storage device in the electronic device requires the user to be near the storage device to perform, thereby avoiding remote malicious cracking operations. The storage device is bound to a unique terminal device through a feature code. Since the feature code of each storage device is unique, it can avoid the situation where multiple storage devices are maliciously damaged due to the same method. Since the unlocking password requires the server to verify the feature code and the device identification of the terminal device, when the terminal device is not bound to the storage device and the verification of the feature code and the device identification code fails, the server will not return the unlocking password, which can avoid the unlocking password from being maliciously cracked, thereby ensuring the security and reliability of the unlocking password. The unlocking password is verified. When the unlocking password is verified, the electronic device determines that the behavior of opening the hidden sector is legal, and then controls the storage device to open the hidden sector. At this time, the user can access the hidden sector according to a specific access method, so that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data. The technical problem, thereby improving the security of unlocking the hidden sector.

[0102] Figure 5 FIG. 1 is a flowchart of a hidden sector unlocking method provided by another embodiment of the present application. Figure 5 The process shown is applied to a terminal device (eg, Figure 1 In the terminal device 2), the terminal device and the storage device (such as Figure 1 The storage device 11) is connected to the communication via Bluetooth. According to different requirements, the order of each step in the flow chart can be adjusted according to the actual detection requirements, and some steps can be omitted. Figure 5 The hidden sector unlocking method in includes the following steps:

[0103] S501, the terminal device receives a feature code of the storage device sent from the storage device connected to the terminal device via Bluetooth, and sends the feature code and the device identification code of the terminal device to a server to request an unlocking password.

[0104] In some embodiments of the present application, since the terminal device is connected to the storage device via Bluetooth, the terminal device can receive the characteristic code of the storage device sent from the storage device via the Bluetooth protocol. The terminal device and the server can be connected via Bluetooth, hotspot, Wi-Fi, etc.

[0105] In some embodiments of the present application, before receiving the feature code of the storage device sent from the storage device, the method also includes: the terminal device sends a binding request to the storage device, receives the feature code returned by the storage device in response to the binding request, and sends the feature code and the device identification code to the server to bind the storage device to the terminal device.

[0106] In this embodiment, the decoding password is obtained after the server successfully verifies the received feature code and device identification code. For example, when receiving the feature code and the device identification code, the server can search according to the feature code to determine whether there is a device identification code associated with the feature code. If there is no device identification code associated with the feature code, the server associates the received feature code with the device identification code, so that the storage device can be bound to the terminal device. Alternatively, if there is a device identification code associated with the feature code, the server sends feedback information of binding failure to the terminal device.

[0107] In this embodiment, by associating the unique feature code of each storage device with the device identification code of the terminal device in the server, each storage device can be bound to a unique terminal device, thereby reducing the risk of virus software simulating the terminal device to obtain the unlocking password from the server.

[0108] S502: The terminal device receives the unlocking password returned by the server, and sends the unlocking password to the storage device.

[0109] In some embodiments of the present application, the unlocking password is used to instruct the storage device to unlock a hidden sector in the storage device.

[0110] In other embodiments of the present application, the terminal device receives verification feedback information returned by the server, the verification feedback information is obtained by the server verifying the feature code and the device identification code, and the verification feedback information is used to indicate that the verification of the feature code and the device identification code has failed.

[0111] Through the above implementation, the terminal device is usually a device held by the user (such as a mobile phone), and the storage device is connected to the terminal device via Bluetooth, so that the unlocking of the hidden sector in the storage device requires the user to be near the storage device, thereby avoiding remote malicious cracking operations. The storage device is bound to a unique terminal device through the feature code of the storage device. Since the feature code of each storage device is unique, it is possible to avoid the situation where multiple storage devices are accessed in the same way and multiple storage devices are maliciously damaged. Since the unlock password is obtained by the server verifying the feature code and the device identification code, when the terminal device is not bound to the storage device and the verification of the feature code and the device identification code fails, the server will not return the unlock password, but returns verification feedback information of not binding or verification failure, thereby avoiding malicious cracking of the unlock password and ensuring the security and reliability of the unlock password. Since the storage device also stores a verification password, the verification password is used to verify the unlocking password. When the unlocking password is verified, it is determined that the behavior of opening the hidden sector is legal, and the hidden sector is opened. Only then can the user access the hidden sector according to a specific access method. Therefore, it can solve the technical problem that the access method of the hidden sector in the storage device is cracked, resulting in damage to the storage device and loss of user data, thereby improving the security of unlocking the hidden sector.

[0112] like Figure 6 , which is a schematic diagram of the structure of a storage device provided in one embodiment of the present application.

[0113] In one embodiment of the present application, the storage device 11 includes, but is not limited to, a controller 111, a flash memory 112, and a cache 113. The controller includes a main controller, a flash memory controller, and a cache controller. The main controller is a core component of the solid-state drive and is responsible for managing and coordinating data transmission. The flash memory controller is used to control the flash memory 112, and the flash memory 112 uses non-volatile storage technology to store information or data. The cache controller is used to control the cache 113, and the cache is used to temporarily store data.

[0114] In some embodiments of the present application, the storage device 11 further includes a hidden sector and a feature code of the hidden sector.

[0115] Those skilled in the art will understand that the schematic diagram is merely an example of the storage device 1 and does not constitute a limitation on the storage device 11. The storage device 11 may include more or fewer components than shown in the diagram, or a combination of certain components, or different components. For example, the storage device 11 may also include input and output devices, network access devices, buses, etc.

[0116] like Figure 7, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1 may include a storage device 11, a processing device 12, a communication module 13, an input / output (I / O) interface 14 and a bus 15. The processing device 12 is coupled to the communication module 13, the storage device 11, and the input / output interface 14 through the bus 15.

[0117] The communication module 13 may include a wired communication module and / or a wireless communication module. The wired communication module may provide one or more wired communication solutions such as universal serial bus (USB), controller area network bus (CAN, Controller Area Network). The wireless communication module may provide one or more wireless communication solutions such as wireless fidelity (Wi-Fi), Bluetooth (BT), mobile communication network, frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc.

[0118] The storage device 11 may be a solid state drive or a USB flash drive, and the storage device 11 includes components such as a controller, a flash memory, and a cache.

[0119] The storage device 11 is used to store one or more computer programs. The one or more computer programs are configured to be executed by the processing device 12. The one or more computer programs include multiple instructions, and when the multiple instructions are executed by the processing device 12, the hidden sector unlocking method executed on the electronic device 1 can be implemented.

[0120] The processing device 12 may include one or more processing units, for example, the processing device 12 may include an application processor (AP), a modem processing device, a graphics processing unit (GPU), an image signal processing device (ISP), a controller, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processing devices.

[0121] The processing device 12 provides computing and control capabilities. For example, the processing device 12 is used to execute a computer program stored in the storage device 11 to implement the above-mentioned hidden sector unlocking method.

[0122] The input / output interface 14 is used to provide a channel for user input or output. For example, the input / output interface 14 can be used to connect various input and output devices, such as a mouse, keyboard, touch device, display screen, etc., so that the user can enter information or visualize information.

[0123] The bus 15 is at least used to provide a channel for mutual communication among the storage device 11 , the processing device 12 , the communication module 13 , and the input / output interface 14 in the electronic device 1 .

[0124] In other embodiments, Figure 6 The electronic device 1 shown also includes an external memory interface for connecting to an external memory to expand the storage capacity of the electronic device 1 .

[0125] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 1. In other embodiments of the present application, the electronic device 1 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0126] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.

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

[0128] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0129] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0130] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in this application can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A hidden sector unlocking method, applied to a storage device, characterized in that: The method comprises: In response to an unlock instruction for a hidden sector in the storage device, acquiring a feature code of the storage device; Sending a characteristic code of the storage device via Bluetooth communication; Receive the returned unlock password and verify the unlock password; If the unlock password is verified successfully, the hidden sector in the storage device is opened.

2. The hidden sector unlocking method according to claim 1, characterized in that: Before sending the characteristic code of the storage device via Bluetooth communication, the method further includes binding the storage device: In response to the binding request, sending a characteristic code of the storage device via Bluetooth communication; Receive binding information and complete the binding handshake operation.

3. The hidden sector unlocking method according to claim 1, characterized in that: The storage device also stores a verification password for verifying the unlocking password, and the verification of the unlocking password includes: If the unlocking password is the same as the verification password, it is determined that the unlocking password verification is successful.

4. The hidden sector unlocking method according to claim 1, characterized in that: The method further comprises: If the unlock password is not received or the unlock password verification fails, the hidden sector in the storage device is not opened, and verification feedback information is generated, wherein the verification feedback information is used to indicate that the hidden sector in the storage device fails to be opened.

5. A hidden sector unlocking method, applied to a terminal device, characterized in that: The terminal device is connected to the storage device via Bluetooth, and the method includes: receiving a feature code of the storage device sent from the storage device, and sending the feature code and a device identification code of the terminal device to a server to request an unlocking password; The unlocking password returned by the server is received, and the unlocking password is sent to the storage device, wherein the unlocking password is used to instruct the storage device to open a hidden sector in the storage device.

6. The hidden sector unlocking method according to claim 5, characterized in that: Before receiving the characteristic code of the storage device sent from the storage device, the method further includes: Sending a binding request to the storage device, and receiving the feature code returned by the storage device in response to the binding request; The feature code and the device identification code are sent to a server to complete the binding of the storage device and the terminal device.

7. The hidden sector unlocking method according to claim 5, characterized in that: The method further comprises: Receive verification feedback information returned by the server, where the verification feedback information is obtained by the server verifying the feature code and the device identification code.

8. A storage device implementing the hidden sector unlocking method according to any one of claims 1 to 4 through Bluetooth communication, characterized in that: The storage device includes a hidden sector and a feature code of the hidden sector, and the storage device determines whether to open the hidden sector by verification.

9. A storage device, characterized in that: The storage device includes a controller, The storage device stores at least one instruction; and The controller obtains the instruction stored in the storage device to implement the hidden sector unlocking method according to any one of claims 1 to 4.

10. An electronic device, characterized in that: The electronic device comprises a storage device as claimed in claim 8 or 9 and a processor: The storage device stores at least one instruction; and The processor obtains the instruction stored in the storage device to implement the hidden sector unlocking method.