Mobile storage medium locking and unlocking method and mobile storage medium
By realizing smart terminal connection and unlocking software authentication on mobile storage media, the problem of low convenience in using encryption solutions in the prior art is solved, and efficient data decryption operations on any smart terminal are realized.
Patent Information
- Application Number
- CN202410975127.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-08
AI Technical Summary
The encryption scheme of existing mobile storage media is less convenient to use, and users need to install decryption software or use it on specific devices, resulting in inconvenient operation.
It provides a method for unlocking the mobile storage medium by connecting the smart terminal to the mobile storage medium, using the unlocking software to input and verify the authentication password, realizing the encryption and decryption of data, and supporting use on any smart terminal.
It improves the convenience of using data decryption of mobile storage media, and users can easily decrypt data on any smart terminal through the built-in plug-in software, enhancing convenience.
Smart Images

Figure CN118916931A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of encrypted storage, and in particular to a method for encrypting and unlocking a mobile storage medium and a mobile storage medium. Background Art
[0002] With the widespread use of mobile storage media, the requirements for data security and ease of use of mobile storage media are getting higher and higher. At present, the encryption scheme of mobile storage media mainly encrypts the data in the mobile storage media. If users want to obtain the decrypted data, they either need to install decryption software or can only use it on specific fixtures, which is less convenient to use. Summary of the invention
[0003] The present application provides a mobile storage medium encryption and unlocking method and a mobile storage medium, which can solve the technical problem of low convenience in the use of encryption solutions for mobile storage media in the prior art.
[0004] In a first aspect, an embodiment of the present application provides a method for securing and unlocking a mobile storage medium, the method comprising:
[0005] When the mobile storage medium is configured with the first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to the waiting authentication state after powering on;
[0006] When the mobile storage medium is in the authentication state, the data read and write instructions input by the user are refused to be executed;
[0007] After receiving the second authentication password input by the user from the unlocking interface, the encryption and unlocking software sends a password acquisition instruction to the mobile storage medium to acquire the first authentication password from the mobile storage medium. If the first authentication password is the same as the second authentication password, an unlocking instruction is sent to the mobile storage medium to switch the mobile storage medium from a pending authentication state to an authenticated state, wherein the encryption and unlocking software is set in the first storage area of the mobile storage medium;
[0008] When the mobile storage medium is in an authenticated state, a data read and write instruction input by a user is executed in the second storage area.
[0009] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0010] The encryption and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format;
[0011] The message in the first preset format includes an extension identification field and an operation identification field;
[0012] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0013] The Operation ID field is used to specify the operation type as Get Password or Unlock.
[0014] Furthermore, in one embodiment, when the mobile storage medium is configured with a first authentication password, after the step of establishing a connection with the smart terminal and setting its own initial state to a pending authentication state after powering on, the method further includes:
[0015] After receiving the third authentication password input by the user from the lock removal interface, the locking and unlocking software sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, the lock removal instruction is sent to the mobile storage medium to make the mobile storage medium remove the first authentication password and switch from the waiting authentication state or the authenticated state to the unauthenticated state;
[0016] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0017] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to a non-authentication state after establishing a connection with the intelligent terminal and powering on.
[0018] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0019] The encryption and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format;
[0020] The message in the first preset format includes an extension identification field and an operation identification field;
[0021] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0022] The Operation ID field is used to specify the operation type as Get Password, Unlock, or Remove Lock.
[0023] Furthermore, in one embodiment, when the mobile storage medium is configured with a first authentication password, before the step of establishing a connection with the smart terminal and setting its own initial state to a pending authentication state after powering on, the method further includes:
[0024] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on;
[0025] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0026] After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state.
[0027] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0028] The locking and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format;
[0029] The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field;
[0030] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0031] The operation identification field is used to specify the operation type as obtaining a password, unlocking, or locking;
[0032] The locked content field is used to fill in the first authentication password.
[0033] Furthermore, in one embodiment, the mobile storage medium encryption and unlocking method further includes:
[0034] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on;
[0035] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0036] After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium, so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state;
[0037] After the locking and unlocking software receives the third authentication password entered by the user from the lock removal interface, it sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, a lock removal instruction is sent to the mobile storage medium to enable the mobile storage medium to remove the first authentication password and switch from the pending authentication state or the authenticated state to the unauthenticated state.
[0038] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0039] The locking and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format;
[0040] The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field;
[0041] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0042] The Operation Identifier field is used to specify the operation type as Get Password, Unlock, Remove Lock, or Lock;
[0043] The locked content field is used to fill in the first authentication password.
[0044] Further, in one embodiment, the mobile storage medium is a mobile solid-state hard disk;
[0045] The encryption and unlocking software communicates with the mobile solid-state drive through the extended command of the Get Log Page command;
[0046] The extended identification field uses the Log Page Identifier field.
[0047] In a second aspect, an embodiment of the present application further provides a mobile storage medium, the mobile storage medium having a first storage area and a second storage area, the first storage area being provided with encryption and unlocking software;
[0048] When the mobile storage medium is configured with a first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to a waiting-for-authentication state after powering on;
[0049] The mobile storage medium is also used to refuse to execute the data reading and writing instructions input by the user when it is in the waiting authentication state;
[0050] The unlocking software is used to send a password acquisition instruction to the mobile storage medium after receiving the second authentication password input by the user from the unlocking interface, so as to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the second authentication password, an unlocking instruction is sent to the mobile storage medium to convert the mobile storage medium from the waiting authentication state to the authenticated state;
[0051] The mobile storage medium is also used to execute the data reading and writing instructions input by the user in the second storage area when in the authenticated state.
[0052] In the present application, the mobile storage medium has a first storage area and a second storage area. The first storage area is provided with an encryption and unlocking software. When the mobile storage medium is configured with an authentication password, after establishing a connection with the intelligent terminal and powering on, its initial state is set to a waiting-for-authentication state. At this time, the mobile storage medium will refuse to execute the data read and write instructions entered by the user to achieve data encryption. After the user enters the correct authentication password in the unlocking interface of the encryption and unlocking software, the encryption and unlocking software will send an unlocking instruction to the mobile storage medium to convert the mobile storage medium from the waiting-for-authentication state to the authenticated state. At this time, the mobile storage medium will execute the data read and write instructions entered by the user in the second storage area to achieve data decryption. Through the present application, the mobile storage medium can achieve data decryption through its own encryption and unlocking software after establishing a connection with any intelligent terminal and powering on, which is highly convenient to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a flow chart of a method for locking and unlocking a mobile storage medium in one embodiment of the present application;
[0054] Figure 2 This is an interactive schematic diagram of a method for locking and unlocking a mobile storage medium in an embodiment of the present application;
[0055] Figure 3 It is a schematic diagram of the state transition of the mobile storage medium in one embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0058] In a first aspect, an embodiment of the present application provides a method for locking and unlocking a mobile storage medium.
[0059] Figure 1 A schematic diagram of the process of a mobile storage medium encryption and unlocking method in an embodiment of the present application is shown.
[0060] Reference Figure 1 In one embodiment, the method for locking and unlocking a mobile storage medium comprises the following steps:
[0061] S11, when the mobile storage medium is configured with a first authentication password, the mobile storage medium establishes a connection with the intelligent terminal and sets its initial state to a waiting-for-authentication state after powering on;
[0062] S12, when the mobile storage medium is in a waiting-for-authentication state, refusing to execute the data read and write instructions input by the user;
[0063] S13, after receiving the second authentication password input by the user from the unlocking interface, the encryption and unlocking software sends a password acquisition instruction to the mobile storage medium to acquire the first authentication password from the mobile storage medium, and if the first authentication password is the same as the second authentication password, sends an unlock instruction to the mobile storage medium to switch the mobile storage medium from a pending authentication state to an authenticated state, wherein the encryption and unlocking software is set in a first storage area of the mobile storage medium;
[0064] S14: When the mobile storage medium is in an authenticated state, the data read and write instructions input by the user are executed in the second storage area.
[0065] Figure 2 An interactive schematic diagram of a method for locking and unlocking a mobile storage medium in an embodiment of the present application is shown.
[0066] Reference Figure 2 After the mobile storage medium is connected to the smart terminal and powered on, the user can operate the smart terminal to input the authentication password to the encryption and unlocking software. The encryption and unlocking software performs authentication interaction with the mobile storage medium based on the authentication password to realize the state conversion of the mobile storage medium. The user can also operate the smart terminal to input data read and write instructions to the mobile storage medium. The mobile storage medium decides to execute or refuse to execute the data read and write instructions normally based on its own state.
[0067] Specifically, the first storage area of the mobile storage medium cannot be formatted or overwritten to ensure the normal operation of the encryption and unlocking software. The encryption and unlocking software has multiple versions to run on the operating systems of various smart terminals, such as Windows, Linux, macOS, Android, iOS, etc.
[0068] Optionally, the mobile storage medium may be a portable solid state drive (PSSD), a mobile mechanical hard disk, a USB flash drive, etc. Accordingly, the communication method between the smart terminal and the encryption and unlocking software and the mobile storage medium needs to be set according to the type of the mobile storage medium.
[0069] In this embodiment, the mobile storage medium has a first storage area and a second storage area, and the first storage area is provided with an encryption and unlocking software. When the mobile storage medium is configured with an authentication password, after establishing a connection with the intelligent terminal and powering on, its initial state is set to a waiting-for-authentication state. At this time, the mobile storage medium will refuse to execute the data read and write instructions entered by the user to achieve data encryption. After the user enters the correct authentication password in the unlocking interface of the encryption and unlocking software, the encryption and unlocking software will send an unlocking instruction to the mobile storage medium to convert the mobile storage medium from the waiting-for-authentication state to the authenticated state. At this time, the mobile storage medium will execute the data read and write instructions entered by the user in the second storage area to achieve data decryption. Through this embodiment, the mobile storage medium can achieve data decryption through its own encryption and unlocking software after establishing a connection with any intelligent terminal and powering on, and it is highly convenient to use.
[0070] Furthermore, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command, and the encryption and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format. The message in the first preset format includes an extended identification field and an operation identification field, the extended identification field is used to distinguish the corresponding message from the message of the standard command, and the operation identification field is used to specify the operation type as password acquisition or unlocking. In this way, the communication method between the encryption and unlocking software and the mobile storage medium can adapt to the operating systems of various smart terminals, reducing the work of software and hardware development.
[0071] For example, the unlocking operation process includes:
[0072] When the mobile storage medium is configured with the first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to the waiting authentication state after powering on, and the unlocking software runs automatically, and the unlocking interface pops up;
[0073] The user enters the second authentication password on the unlocking interface;
[0074] The encryption and unlocking software sends a password acquisition instruction to the mobile storage medium, and the mobile storage medium returns the first authentication password to the encryption and unlocking software;
[0075] The encryption and unlocking software compares the first authentication password with the second authentication password;
[0076] If the comparison results are the same, the unlocking software sends an unlocking instruction to the mobile storage medium, and the mobile storage medium returns the status result to the unlocking software. If the status reply is successful, the unlocking software determines that the mobile storage medium has become authenticated, and the unlocking software prompts the user that the unlocking is successful. If the status reply fails, the unlocking software determines that the status of the mobile storage medium remains unchanged, and prompts the user that the unlocking fails.
[0077] If the comparison results are not the same, the unlocking software prompts that the user password is incorrect and cannot be unlocked. Please re-enter the password.
[0078] Furthermore, in one embodiment, when the mobile storage medium is configured with a first authentication password, after the step of establishing a connection with the smart terminal and setting its own initial state to a pending authentication state after powering on, the method further includes:
[0079] After receiving the third authentication password input by the user from the lock removal interface, the locking and unlocking software sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, the lock removal instruction is sent to the mobile storage medium to make the mobile storage medium remove the first authentication password and switch from the waiting authentication state or the authenticated state to the unauthenticated state;
[0080] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0081] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to a non-authentication state after establishing a connection with the intelligent terminal and powering on.
[0082] In this embodiment, after the user obtains the mobile storage medium configured with the first authentication password, the locking and unlocking software also provides the user with a lock removal interface. After the user enters the correct authentication password in the lock removal interface, the locking and unlocking software will send a lock removal instruction to the mobile storage medium to enable the mobile storage medium to remove the first authentication password and switch from the pending authentication state or the authenticated state to the no authentication state. Thereafter, as long as the mobile storage medium is powered on, it will execute the data read and write instructions entered by the user in the second storage area without encrypting the data.
[0083] Furthermore, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command, and the encryption and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format. The message in the first preset format includes an extension identification field and an operation identification field, the extension identification field is used to distinguish the corresponding message from the message of the standard command, and the operation identification field is used to specify the operation type as obtaining a password, unlocking, or removing a lock. In this way, the communication method between the encryption and unlocking software and the mobile storage medium can be adapted to the operating systems of a variety of smart terminals, reducing the work of software and hardware development.
[0084] For example, the lock removal process includes:
[0085] When the mobile storage medium is in a waiting-for-authentication state or an authenticated state, the user switches the lock / unlock software to a lock removal interface and enters the third authentication password in the lock removal interface;
[0086] The encryption and unlocking software sends a password acquisition instruction to the mobile storage medium, and the mobile storage medium returns the first authentication password to the encryption and unlocking software;
[0087] The encryption and unlocking software compares the first authentication password with the third authentication password;
[0088] If the comparison results are the same, the encryption and unlocking software sends a lock removal instruction to the mobile storage medium, and the mobile storage medium returns the status result to the encryption and unlocking software. If the status reply is successful, the encryption and unlocking software determines that the mobile storage medium has become an unauthenticated state, and the encryption and unlocking software prompts the user that the lock removal is successful. If the status reply fails, the encryption and unlocking software determines that the state of the mobile storage medium remains unchanged and prompts the user that the lock removal fails.
[0089] If the comparison results are not the same, the unlocking software prompts the user that the password is incorrect and the lock cannot be removed. Please re-enter the password.
[0090] Furthermore, in one embodiment, when the mobile storage medium is configured with a first authentication password, before the step of establishing a connection with the smart terminal and setting its own initial state to a pending authentication state after powering on, the method further includes:
[0091] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on;
[0092] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0093] After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state.
[0094] In this embodiment, after the user obtains a mobile storage medium that is not configured with an authentication password, since the mobile storage medium is in a non-authentication state, as long as it is powered on, the data read and write instructions entered by the user will be executed in the second storage area, and the data will not be encrypted. The locking and unlocking software also provides a locking interface for the user. After the user enters a custom authentication password in the locking interface, the locking and unlocking software will send the authentication password and the locking instruction to the mobile storage medium to configure the authentication password and switch from the non-authentication state to the authenticated state. After powering on again, before the user enters the correct authentication password in the unlocking interface, the mobile storage medium is in a waiting authentication state and refuses to execute the data read and write instructions entered by the user to achieve data encryption.
[0095] Furthermore, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command. The encryption and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format. The message in the first preset format includes an extension identification field and an operation identification field, and the message in the second preset format includes an extension identification field, an operation identification field, and a locking content field. The extension identification field is used to distinguish the corresponding message from the message of the standard command, the operation identification field is used to specify the operation type as password acquisition, unlocking, or locking, and the locking content field is used to fill in the first authentication password. In this way, the communication method between the encryption and unlocking software and the mobile storage medium can adapt to the operating systems of various smart terminals, reducing the work of software and hardware development.
[0096] For example, the locking operation process includes:
[0097] When the mobile storage medium is not configured with the first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to the unauthenticated state after powering on, the locking and unlocking software runs automatically, and the locking interface pops up;
[0098] The user enters the first authentication password on the lock interface;
[0099] The encryption and unlocking software sends a first authentication password and a locking instruction to the mobile storage medium, and the mobile storage medium returns a status result to the encryption and unlocking software. If the status reply is successful, the encryption and unlocking software determines that the mobile storage medium has become an authenticated state, and the encryption and unlocking software prompts the user that the locking is successful. If the status reply fails, the encryption and unlocking software determines that the status of the mobile storage medium remains unchanged, and prompts the user that the locking fails.
[0100] Figure 3 A schematic diagram showing the state transition of a mobile storage medium in an embodiment of the present application is shown.
[0101] Furthermore, in one embodiment, the mobile storage medium encryption and unlocking method further includes:
[0102] When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on;
[0103] When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area;
[0104] After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium, so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state;
[0105] After the locking and unlocking software receives the third authentication password entered by the user from the lock removal interface, it sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, a lock removal instruction is sent to the mobile storage medium to enable the mobile storage medium to remove the first authentication password and switch from the pending authentication state or the authenticated state to the unauthenticated state.
[0106] Reference Figure 3 In this embodiment, the locking and unlocking software provides the user with a locking interface, an unlocking interface, and a lock removal interface. The relevant operation process can refer to the aforementioned embodiment. The user can control the mobile storage medium to switch between the pending authentication state, the authenticated state, and the unauthenticated state according to actual use needs through the operations of locking, unlocking, removing the lock, and re-powering on, which is convenient for use.
[0107] Furthermore, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command. The encryption and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format. The message in the first preset format includes an extension identification field and an operation identification field, and the message in the second preset format includes an extension identification field, an operation identification field, and a locking content field. The extension identification field is used to distinguish the corresponding message from the message of the standard command, the operation identification field is used to specify the operation type as obtaining a password, unlocking, removing a lock, or locking, and the locking content field is used to fill in the first authentication password. In this way, the communication method between the encryption and unlocking software and the mobile storage medium can adapt to the operating systems of a variety of smart terminals, reducing the work of software and hardware development.
[0108] Specifically, the mobile storage medium responds to the password acquisition instruction from the encryption and unlocking software with a message including a status result field and a content result field. The mobile storage medium responds to the unlock instruction, lock removal instruction, and lock instruction from the encryption and unlocking software with a message including a status result field. The status result field is used to feedback whether the operation is successful, and the content result field is used to fill in the first authentication password.
[0109] Optionally, the message sent by the encryption and unlocking software to the mobile storage medium also includes a lock length field and a CRC check information field, the lock length field is used for data interception processing, and the CRC check information field is used for data verification and comparison. The message replied by the mobile storage medium to the encryption and unlocking software also includes an operation instruction field, a content length field, and a CRC check result field of the message reply. The operation instruction field is used to verify the message instruction to prevent message confusion caused by link signal problems, the content length field is used to prepare for data accuracy verification, and the CRC check result field is used to perform CRC calculation after receiving the message reply and compare it with the replied CRC result to ensure the correctness of the message reply.
[0110] Furthermore, in one embodiment, the mobile storage medium is a mobile solid-state hard disk, the encryption / unlocking software communicates with the mobile solid-state hard disk through an extended command of the Get Log Page command, and the extended identification field uses the Log Page Identifier field.
[0111] In this embodiment, the Get Log Page command is a standard command defined in storage interface protocols such as SATA (Serial ATA) and NVMe (Non-Volatile Memory Express), which is used to obtain detailed information and status of the device. Because of the complex management and monitoring requirements of SSD, the Get Log Page command is particularly important on SSD, and the operating systems of various smart terminals will provide corresponding interfaces. In the standard command of Get Log Page, the Log Page Identifier (LiD) field is used to specify the specific log page to be obtained or accessed, and the extended identification field distinguishes the corresponding message from the message of the standard command by filling in the Log Page Identifier field with a value different from the standard command.
[0112] Optionally, other fields in the message sent by the encryption and unlocking software to the mobile storage medium may use other fields in Get LogPage that meet the length requirement. For example, the operation identification field requires 8 bits, which can be represented by 16-23 bits of DWORD10, any 8 bits of DWORD12, or any 8 bits of DWORD13. This application does not limit this.
[0113] In a second aspect, an embodiment of the present application also provides a mobile storage medium.
[0114] The mobile storage medium has a first storage area and a second storage area, and the first storage area is provided with encryption and unlocking software;
[0115] When the mobile storage medium is configured with a first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to a waiting-for-authentication state after powering on;
[0116] The mobile storage medium is also used to refuse to execute the data reading and writing instructions input by the user when it is in the waiting authentication state;
[0117] The unlocking software is used to send a password acquisition instruction to the mobile storage medium after receiving the second authentication password input by the user from the unlocking interface, so as to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the second authentication password, an unlocking instruction is sent to the mobile storage medium to convert the mobile storage medium from the waiting authentication state to the authenticated state;
[0118] The mobile storage medium is also used to execute the data reading and writing instructions input by the user in the second storage area when in the authenticated state.
[0119] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0120] The encryption and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format;
[0121] The message in the first preset format includes an extension identification field and an operation identification field;
[0122] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0123] The Operation ID field is used to specify the operation type as Get Password or Unlock.
[0124] Furthermore, in one embodiment, the locking and unlocking software is further used to send a password acquisition instruction to the mobile storage medium after receiving the third authentication password input by the user from the lock removal interface, so as to obtain the first authentication password from the mobile storage medium; if the first authentication password is the same as the third authentication password, then send a lock removal instruction to the mobile storage medium, so that the mobile storage medium removes the first authentication password and switches from the pending authentication state or the authenticated state to the unauthenticated state;
[0125] The mobile storage medium is also used to execute the data read and write instructions input by the user in the second storage area when in an unauthenticated state;
[0126] The mobile storage medium is also used to set its initial state to a non-authentication state after establishing a connection with the intelligent terminal and powering on when the first authentication password is not configured.
[0127] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0128] The encryption and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format;
[0129] The message in the first preset format includes an extension identification field and an operation identification field;
[0130] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0131] The Operation ID field is used to specify the operation type as Get Password, Unlock, or Remove Lock.
[0132] Furthermore, in one embodiment, the mobile storage medium is also used to establish a connection with the intelligent terminal and set its initial state to a non-authentication state after powering on when the first authentication password is not configured;
[0133] The mobile storage medium is also used to execute the data read and write instructions input by the user in the second storage area when in an unauthenticated state;
[0134] The locking and unlocking software is also used to send the first authentication password and locking instructions to the mobile storage medium after receiving the first authentication password input by the user from the locking interface, so that the mobile storage medium is configured with the first authentication password and converted from an unauthenticated state to an authenticated state.
[0135] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0136] The locking and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format;
[0137] The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field;
[0138] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0139] The operation identification field is used to specify the operation type as obtaining a password, unlocking, or locking;
[0140] The locked content field is used to fill in the first authentication password.
[0141] Furthermore, in one embodiment, the mobile storage medium is also used to establish a connection with the intelligent terminal and set its initial state to a non-authentication state after powering on when the first authentication password is not configured;
[0142] The mobile storage medium is also used to execute the data read and write instructions input by the user in the second storage area when in an unauthenticated state;
[0143] The locking and unlocking software is also used to send the first authentication password and the locking instruction to the mobile storage medium after receiving the first authentication password input by the user from the locking interface, so that the mobile storage medium is configured with the first authentication password and converted from the unauthenticated state to the authenticated state;
[0144] The locking and unlocking software is also used to send a password acquisition instruction to the mobile storage medium after receiving the third authentication password entered by the user from the lock removal interface, so as to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, a lock removal instruction is sent to the mobile storage medium to enable the mobile storage medium to remove the first authentication password and switch from the pending authentication state or the authenticated state to the unauthenticated state.
[0145] Further, in one embodiment, the encryption and unlocking software communicates with the mobile storage medium through an extended command of a standard command;
[0146] The locking and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format;
[0147] The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field;
[0148] The extended identification field is used to distinguish the corresponding message from the message of the standard command;
[0149] The Operation Identifier field is used to specify the operation type as Get Password, Unlock, Remove Lock, or Lock;
[0150] The locked content field is used to fill in the first authentication password.
[0151] Further, in one embodiment, the mobile storage medium is a mobile solid-state hard disk;
[0152] The encryption and unlocking software communicates with the mobile solid-state drive through the extended command of the Get Log Page command;
[0153] The extended identification field uses the Log Page Identifier field.
[0154] Among them, the implementation of each function in the above-mentioned mobile storage medium corresponds to each step in the above-mentioned mobile storage medium encryption and unlocking method embodiment, and its functions and implementation processes are no longer repeated here.
[0155] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0156] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0157] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" 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", "for example" or "for example" is intended to present related concepts in a specific way.
[0158] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0159] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0160] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for locking and unlocking a mobile storage medium, characterized in that: The mobile storage medium locking and unlocking method comprises: When the mobile storage medium is configured with the first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to the waiting authentication state after powering on; When the mobile storage medium is in the authentication state, the data read and write instructions input by the user are refused to be executed; After receiving the second authentication password input by the user from the unlocking interface, the encryption and unlocking software sends a password acquisition instruction to the mobile storage medium to acquire the first authentication password from the mobile storage medium. If the first authentication password is the same as the second authentication password, an unlocking instruction is sent to the mobile storage medium to switch the mobile storage medium from a pending authentication state to an authenticated state, wherein the encryption and unlocking software is set in the first storage area of the mobile storage medium; When the mobile storage medium is in an authenticated state, a data read and write instruction input by a user is executed in the second storage area.
2. The method for encrypting and unlocking a mobile storage medium according to claim 1, characterized in that: The encryption and unlocking software communicates with the mobile storage medium through extended commands of standard commands; The encryption and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format; The message in the first preset format includes an extension identification field and an operation identification field; The extended identification field is used to distinguish the corresponding message from the message of the standard command; The Operation ID field is used to specify the operation type as Get Password or Unlock.
3. The method for encrypting and unlocking a mobile storage medium according to claim 1, wherein: When the mobile storage medium is configured with a first authentication password, after the step of establishing a connection with the smart terminal and setting its own initial state to a waiting-for-authentication state after powering on, the method further includes: After receiving the third authentication password input by the user from the lock removal interface, the locking and unlocking software sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, the lock removal instruction is sent to the mobile storage medium to make the mobile storage medium remove the first authentication password and switch from the waiting authentication state or the authenticated state to the unauthenticated state; When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area; When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to a non-authentication state after establishing a connection with the intelligent terminal and powering on.
4. The method for encrypting and unlocking a mobile storage medium according to claim 3, characterized in that: The encryption and unlocking software communicates with the mobile storage medium through extended commands of standard commands; The encryption and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format; The message in the first preset format includes an extension identification field and an operation identification field; The extended identification field is used to distinguish the corresponding message from the message of the standard command; The Operation ID field is used to specify the operation type as Get Password, Unlock, or Remove Lock.
5. The method for encrypting and unlocking a mobile storage medium according to claim 1, characterized in that: When the mobile storage medium is configured with a first authentication password, before the step of establishing a connection with the smart terminal and setting its own initial state to a pending authentication state after powering on, the method further includes: When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on; When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area; After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state.
6. The method for encrypting and unlocking a mobile storage medium according to claim 5, characterized in that: The encryption and unlocking software communicates with the mobile storage medium through extended commands of standard commands; The locking and unlocking software sends a password acquisition instruction and an unlocking instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format; The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field; The extended identification field is used to distinguish the corresponding message from the message of the standard command; The operation identification field is used to specify the operation type as obtaining a password, unlocking, or locking; The locked content field is used to fill in the first authentication password.
7. The method for encrypting and unlocking a mobile storage medium according to claim 1, wherein: The mobile storage medium locking and unlocking method further comprises: When the mobile storage medium is not configured with the first authentication password, the mobile storage medium sets its initial state to the non-authentication state after establishing a connection with the intelligent terminal and powering on; When the mobile storage medium is in an unauthenticated state, executing the data read and write instructions input by the user in the second storage area; After receiving the first authentication password input by the user from the locking interface, the locking and unlocking software sends the first authentication password and a locking instruction to the mobile storage medium, so that the mobile storage medium is configured with the first authentication password and switches from an unauthenticated state to an authenticated state; After the locking and unlocking software receives the third authentication password entered by the user from the lock removal interface, it sends a password acquisition instruction to the mobile storage medium to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the third authentication password, a lock removal instruction is sent to the mobile storage medium to enable the mobile storage medium to remove the first authentication password and switch from the pending authentication state or the authenticated state to the unauthenticated state.
8. The method for encrypting and unlocking a mobile storage medium according to claim 7, characterized in that: The encryption and unlocking software communicates with the mobile storage medium through extended commands of standard commands; The locking and unlocking software sends a password acquisition instruction, an unlocking instruction, and a lock removal instruction to the mobile storage medium through a message in a first preset format, and sends a first authentication password and a locking instruction to the mobile storage medium through a message in a second preset format; The message of the first preset format includes an extension identification field and an operation identification field, and the message of the second preset format includes an extension identification field, an operation identification field and a lock content field; The extended identification field is used to distinguish the corresponding message from the message of the standard command; The Operation Identifier field is used to specify the operation type as Get Password, Unlock, Remove Lock, or Lock; The locked content field is used to fill in the first authentication password.
9. The method for locking and unlocking a mobile storage medium according to any one of claims 2, 4, 6, and 8, characterized in that: The mobile storage medium is a mobile solid-state hard disk; The encryption and unlocking software communicates with the mobile solid-state drive through the extended command of the Get Log Page command; The extended identification field uses the Log PageIdentifier field.
10. A mobile storage medium, characterized in that: The mobile storage medium has a first storage area and a second storage area, and the first storage area is provided with encryption and unlocking software; When the mobile storage medium is configured with a first authentication password, it establishes a connection with the intelligent terminal and sets its initial state to a waiting-for-authentication state after powering on; The mobile storage medium is also used to refuse to execute the data reading and writing instructions input by the user when it is in the waiting authentication state; The unlocking software is used to send a password acquisition instruction to the mobile storage medium after receiving the second authentication password input by the user from the unlocking interface, so as to obtain the first authentication password from the mobile storage medium. If the first authentication password is the same as the second authentication password, an unlocking instruction is sent to the mobile storage medium to convert the mobile storage medium from the waiting authentication state to the authenticated state; The mobile storage medium is also used to execute the data reading and writing instructions input by the user in the second storage area when in the authenticated state.
