Data encryption method based on solid state disk and solid state disk
By setting the primary disk and secondary disk in the SSD, and using a custom protocol to implement write protection, encryption and hiding functions, the problem of SSD being unable to encrypt and hide the hard disk partition is solved, achieving safe and reliable data storage and resource saving.
Patent Information
- Application Number
- CN202411067268.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-09-20
AI Technical Summary
Existing SSD solid-state drives cannot encrypt and hide hard disk partitions, resulting in a waste of storage resources when storing private data and ordinary data, and lack a disk lock function to improve security.
Design a data encryption method based on solid state drives. Use the SSD management system tool software to set two hard disk partitions with the same capacity before leaving the factory, the main disk and the secondary disk. The primary disk is used as the system disk or data disk, and the secondary disk is hidden by default. Partition, use custom protocols to implement write protection, encryption, decryption, hiding and destruction functions to ensure data security.
It realizes SSD that stores private data and ordinary data at the same time, reduces the risk of system crash caused by misoperation or network attack, enhances confidentiality, and saves storage resources.
Smart Images

Figure CN118673539A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid state hard disk data encryption, and in particular to a solid state hard disk with reading encryption, hiding and destruction functions. Background Art
[0002] Most SSDs on the market read and write data based on a protocol, such as the common USB / IDE / SATA / NVMe protocols. Most of their encryption methods usually encrypt the entire hard disk, and cannot encrypt and hide the hard disk partition. When storing data that needs to be encrypted, if a single hard disk is used, storage resources will be wasted. Storing private data and ordinary data in one SSD can save storage resources, but there is currently no SSD that can achieve both a disk lock function and store private data and ordinary data at the same time. Summary of the invention
[0003] The present invention creates an SSD that can store private data and ordinary data at the same time. At the same time, in order to improve the safe and reliable operation of the main disk (system disk), a main disk / slave disk write protection (lock disk) setting is added by using a custom protocol command. The SSD unlocks the corresponding disk write protection only when data needs to be written, which greatly reduces the SSD naked swimming time, and also greatly reduces the chance of system disk crash due to misoperation or network virus (Trojan program, etc.) attack; it avoids the attack of malicious viruses and Trojans and also strengthens confidentiality.
[0004] A specific technical solution for achieving the purpose of the present invention (see accompanying drawings) Figure 2 The detailed process of SSD data encryption method is as follows: A data encryption method based on a solid state drive and a solid state drive, the encryption method is a method of sending a command to the SSD by a specific SSD management system tool software, the solid state drive SSD is opened with two hard disk partitions of the same capacity before leaving the factory, the main disk (disk A) and the secondary disk (disk B). The main disk (disk A) can be used as a system disk, the secondary disk (disk B) can only be used as a data disk, and the manufacturer sets the secondary disk (disk B) as a hidden partition by default when opening the card, see step S100.
[0005] The main disk (disk A) can be a system disk or a data disk. Install the operating system on the system disk and install the SSD management system dedicated to the SSD manufacturer. The SSD management system can lock the main disk (disk A) and the secondary disk (disk B). See step S110; if the main disk (disk A) is a data disk, it can only be used as a normal data disk and cannot be encrypted. It can be locked for protection. See step S110; then proceed to step S180 and other operations thereafter; If the main disk (disk A) is the system disk, when you need to install new application software, first unlock the main disk (disk A) in the SSD management system, and then lock the main disk (disk A) after the installation is complete. Refer to S120.
[0006] The specific hard disk management system tool software is a dedicated management program written by the hard disk manufacturer, and its function is to start the opening / closing of the write protection (lock disk) of the main disk (A disk) and the write protection (lock disk) of the secondary disk (B disk), the encryption / decryption command of the secondary disk (B disk), the hiding / showing command of the secondary disk (B disk), the simultaneous destruction command of the main and secondary disks, etc.
[0007] The essence of the write protection (lock disk) function is to control the write protection (lock disk) signals of the protected primary disk (disk A) and secondary disk (disk B), turn on the write protection (lock disk) to force the memory to not be written with data, or turn off the write protection to allow the installation of programs, saving or backing up files.
[0008] The host issues commands to the SSD through a custom encryption protocol. The host uses existing data links such as SATA serial ports (mSATA interface, 2.5-inch SATA interface, NGFF interface, DOM-sata interface and other hard disks) and PCI-e (NVME hard disk) to issue commands such as lock / unlock, encrypt / decrypt, hide / show, and destroy to the SSD, steps S110 to S120.
[0009] The solid-state hard disk master controller responds to the lock / unlock command sent by the host. The SSD master controller completes the lock / unlock function command in the protocol agreed upon between the SSD master controller and the hard disk management system tool software, and completes the write protection of the main disk or the slave disk, and performs the lock / unlock operation.
[0010] The SSD master responds to the encryption / decryption command sent by the host, the slave disk (B disk) proprietary command, controls the display of the slave disk (B disk), and then encrypts / decrypts. This command is only valid when the SSD is initialized. The SSD master responds to the slave disk (B disk) hide / show command sent by the host, the slave disk (B disk) proprietary command, controls the hiding and display of the slave disk; The user can initialize the secondary disk (disk B) through the SSD management system, and can set the secondary disk to be encrypted or not. Once this feature is set, this setting cannot be changed afterwards, see step S130; if the user initializes the SSD to set the secondary disk (disk B) as a non-encrypted disk, it will be used as a normal disk, see step S131; if the secondary disk (disk B) is initialized to be an encrypted disk, an encryption password is set, and a predetermined encryption countdown time is set, see step S140; During normal use of the system, subsequent users must enter this encryption password before they can execute the secondary disk (disk B) display operation command and the secondary disk can be displayed; at this time, the user can read the secondary disk data, see step S150; if the user wants to store new confidential and sensitive data, the secondary disk must be unlocked before the new data can be stored; after saving the data, the secondary disk (disk B) must be re-locked, see S160; after storing the data, the SSD management system can be reset to hide the secondary disk, or the management system can automatically hide the secondary disk after the countdown of the confidentiality delay time set by the SSD management system is completed, or the SSD management system detects that the shutdown command is to automatically hide the secondary disk, see step S170.
[0011] The SSD master control responds to the destruction command sent by the host and destroys all data on the master disk and the slave disk. If data needs to be destroyed, the SSD management system sends a destruction command, the SSD master control executes the destruction command, and all data on the master disk and the slave disk are destroyed at the same time, see S180. If an abnormal power outage occurs during the destruction process, the SSD master control maintains the current state and waits for the host to power on next time, see S181; after the host is powered on again, it restarts from the files saved before the power outage and continues to execute the destruction command, see S182; the SSD master control executes the destruction command until all data on the master disk and the slave disk are completely destroyed, see S190; the SSD returns to the factory initial state S200. DETAILED DESCRIPTION
[0012] The present invention is described in detail below in conjunction with the accompanying drawings of the specification. In the method embodiment, the SATA bus protocol of the mSATA interface is used as the basis (refer to the accompanying drawing (iii) SATA bus), and the specific operation method steps (refer to the accompanying drawing (ii) SSD data encryption method detailed process) are as follows: A data encryption method for a solid-state hard disk based on the SATA bus protocol and a solid-state hard disk, the encryption method is a method in which a specific SSD management system tool software sends a command to the SSD. The solid-state hard disk SSD is provided with two hard disk partitions of the same capacity before leaving the factory, namely, a main disk (disk A) and a secondary disk (disk B); the main disk (disk A) can be used as a system disk, and the secondary disk (disk B) can only be used as a data disk, and the manufacturer sets the secondary disk (disk B) as a hidden partition by default when opening the card, see step S100.
[0013] The main disk (disk A) can be a system disk or a data disk. Install the operating system on the system disk and install the SSD management system dedicated to the SSD manufacturer. The SSD management system can lock the main disk (disk A) and the secondary disk (disk B). See step S110. If the main disk (disk A) is a data disk, it can only be used as a common data disk and cannot be encrypted. It can be locked for protection. See step S110. Then proceed to step S180 and other operations thereafter.
[0014] If the main disk (disk A) is the system disk, when you need to install new application software, first unlock the main disk (disk A) in the SSD management system, and then lock the main disk (disk A) after the installation is complete. Refer to S120.
[0015] The specific hard disk management system tool software is a dedicated management program written by the hard disk manufacturer, and its function is to start the opening / closing of the write protection (lock disk) of the main disk (A disk) and the write protection (lock disk) of the secondary disk (B disk), the encryption / decryption command of the secondary disk (B disk), the hiding / showing command of the secondary disk (B disk), the simultaneous destruction command of the main and secondary disks, etc.
[0016] The essence of the write protection (lock disk) function is to control the write protection (lock disk) signals of the protected primary disk (disk A) and secondary disk (disk B), turn on the write protection (lock disk) to force the memory to not be written with data, or turn off the write protection to allow the installation of programs, saving or backing up files.
[0017] The host issues commands to the SSD through a custom encryption protocol. The host uses the SATA bus protocol of the existing data link mSATA interface to issue custom lock / unlock, encrypt / decrypt, hide / show, destroy and other commands to the SSD, steps S110 to S120.
[0018] The solid-state hard disk master controller responds to the lock / unlock command sent by the host. The SSD master controller completes the lock / unlock function command in the protocol agreed upon between the SSD master controller and the hard disk management system tool software, and completes the write protection of the main disk or the slave disk, and performs the lock / unlock operation.
[0019] The SSD master responds to the encryption / decryption command sent by the host, the slave disk (B disk) proprietary command, controls the display of the slave disk (B disk), and then encrypts / decrypts. This command is only valid when the SSD is initialized. The SSD master responds to the slave disk (B disk) hide / show command sent by the host, the slave disk (B disk) proprietary command, controls the hiding and display of the slave disk; The user can initialize the secondary disk (disk B) through the SSD management system, and can set the secondary disk to be encrypted or not. Once this feature is set, this setting cannot be changed afterwards, see step S130; if the user initializes the SSD to set the secondary disk (disk B) as a non-encrypted disk, it will be used as a normal disk, see step S131; if the secondary disk (disk B) is initialized to be an encrypted disk, an encryption password is set, and a predetermined encryption countdown time is set, see step S140; During normal use of the system, subsequent users must enter this encryption password before they can execute the secondary disk (disk B) display operation command and the secondary disk can be displayed; at this time, the user can read the secondary disk data, see step S150; if the user wants to store new confidential and sensitive data, the secondary disk must be unlocked before the new data can be stored; after saving the data, the secondary disk (disk B) must be re-locked, see S160; after storing the data, the SSD management system can be reset to hide the secondary disk, or the management system can automatically hide the secondary disk after the countdown of the confidentiality delay time set by the SSD management system is completed, or the SSD management system detects that the shutdown command is to automatically hide the secondary disk, see step S170.
[0020] The SSD master control responds to the destruction command sent by the host and destroys all data on the master disk and the slave disk. If data needs to be destroyed, the SSD management system sends a destruction command, the SSD master control executes the destruction command, and all data on the master disk and the slave disk are destroyed at the same time, see S180. If an abnormal power outage occurs during the destruction process, the SSD master control maintains the current state and waits for the host to power on next time, see S181; after the host is powered on again, it restarts from the files saved before the power outage and continues to execute the destruction command, see S182; the SSD master control executes the destruction command until all data on the master disk and the slave disk are completely destroyed, see S190; the SSD returns to the factory initial state S200. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 This is a brief flow chart of the SSD data encryption method. The present invention briefly describes the process and completes SSD data encryption in three stages. When data needs to be destroyed, the primary disk and the secondary disk are destroyed at the same time, and the SSD returns to its original state.
[0022] Figure 2 It is a detailed flow chart of the SSD data encryption method, with illustrations of the invention's rights specification, invention content, and specific implementation examples, which explain the invention method flow in detail.
[0023] Figure 3 It is a SATA bus diagram, and is provided with a diagram illustrating a handshake mode between an SSD and a host under the SATA communication protocol mode of the present invention.
Claims
1. A data encryption method based on a solid state drive and a solid state drive, the encryption method is a method in which a specific hard disk management system tool software sends a command to the SSD, and the solid state drive SSD is opened with two hard disk partitions before leaving the factory, the main disk (disk A) and the secondary disk (disk B). Disk A can be used as a system disk, and disk B can only be used as a data disk (encrypted and hidden by default), see step S100.
2. The specific hard disk management system tool software is a dedicated management program written by the hard disk manufacturer. Its function is to start the opening / closing of the write protection (lock disk) of the primary disk (A disk) and the write protection (lock disk) of the secondary disk (B disk), the encryption / decryption command of the secondary disk (B disk), the hiding / showing command of the secondary disk (B disk), the simultaneous destruction command of the primary and secondary disks, etc.
3. The essence of the write protection (lock disk) function is to control the write protection (lock disk) signals of the protected primary disk (Disk A) and secondary disk (Disk B), turn on the write protection (lock disk) to force the memory to not be written with data, or turn off the write protection (lock disk) to allow the installation of programs, saving or backing up files.
4. The working environment of the specific hard disk management system tool software can be Windows, Linux, Android, iOS, Unix; domestic series of commonly used operating systems such as Kylin, Tongxin, Hongmeng, Euler operating system, and other operating systems; the main disk (disk A) can be a system disk or a data disk. Install the operating system on the system disk and install the SSD management system dedicated to the SSD manufacturer. The SSD management system can lock the main disk (disk A) and the secondary disk (disk B). See step S110.
5. The host issues commands to the SSD through a custom protocol. The host uses existing data links such as SATA serial ports (mSATA interface, 2.5-inch SATA interface, NGFF interface, DOM-sata interface and other hard disks) and PCI-e (NVME hard disk) to issue commands such as lock / unlock, encrypt / decrypt, hide / show, and destroy to the SSD, steps S110 to S120.
6. The SSD master controller responds to the lock / unlock command sent by the host. The SSD master controller completes the lock / unlock function command in the protocol agreed upon with the hard disk management system tool software to turn on / off write protection of the main disk or the slave disk and perform the lock / unlock operation.
7. The SSD master controller responds to the encryption / decryption command sent by the host, the slave disk (B disk) proprietary command, controls the display of the slave disk (B disk), and then encrypts / decrypts. This command is only valid when the SSD is initialized and cannot be changed once set.
8. The SSD master controller responds to the slave disk (B disk) hiding / showing command and slave disk (B disk) proprietary command sent by the host, and controls hiding and showing the slave disk.
9. The SSD master controller responds to the destruction command sent by the host and destroys all data on the primary disk and the secondary disk.
10. If the main disk (disk A) is the system disk, when you need to install new application software, first unlock the main disk (disk A) in the SSD management system, and then lock the main disk after the installation is complete. See S120.
11. The user must initialize the SSD to set the secondary disk (disk B) to encrypted / unencrypted, see S130; if the user initializes the SSD to set the secondary disk (disk B) to unencrypted, it will be used as a normal disk, see S131; initialize and set the secondary disk (disk B) to encrypted, set the encryption password, and set the scheduled encryption countdown time, see S140.
12. During normal use of the system, subsequent users must enter this encryption password before they can execute the secondary disk (Disk B) display operation command, so that the secondary disk can be displayed and data can be read, see S150; if the user wants to store new confidential sensitive data, the secondary disk must be unlocked before the new data can be stored; after saving the data, the secondary disk (Disk B) must be locked again, see S160.
13. After storing data, you can reset the hidden secondary disk in the SSD management system, or wait for the countdown of the confidentiality delay time set by the SSD management system to complete, and the management system automatically hides the secondary disk, or automatically hides the secondary disk when the SSD management system detects a shutdown command, see S170.
14. If data needs to be destroyed, the SSD management system sends a destruction command, the SSD master executes the destruction command, and all data on the primary and secondary disks are destroyed at the same time, see S180. If an abnormal power outage occurs during the destruction process, the SSD master maintains the current state and waits for the host to be powered on next time, see S181; after the host is powered on again, it restarts the execution of the destruction command from the files saved before the power outage, see S182; the SSD master executes the destruction command until all data on the primary and secondary disks are destroyed, see S190; the SSD returns to the factory initial state S200.
Citation Information
Cited By
Encryption hard disk and encryption control system
CN120086906A
Trusted starting method based on security coprocessor and related device
CN122548758A
Trusted boot method based on security co-processor and related device
CN122548758B
