Hard disk locking and unlocking method, device, equipment and readable storage medium

文档序号:1673147 发布日期:2019-12-31 浏览:34次 中文

阅读说明:本技术 一种硬盘锁定及解锁方法、装置、设备及可读存储介质 (Hard disk locking and unlocking method, device, equipment and readable storage medium ) 是由 连秉然 于 2019-08-08 设计创作,主要内容包括:本发明公开了一种硬盘锁定及解锁方法、装置、设备及计算机可读存储介质,其中硬盘锁定方法包括:在硬盘中装入加密程序;当监测到产生锁定信号时,提取锁定信号中携带的硬盘的标识信息;根据标识信息确定需要锁定的硬盘,并向需要锁定的硬盘发送加密指令,以触发需要锁定的硬盘中的加密程序,利用本发明的技术方案可以对需要锁定的硬盘进行加密,使得硬盘存储设备中可能会处于危险境地的硬盘处于被保护的状态。(The invention discloses a hard disk locking and unlocking method, a device, equipment and a computer readable storage medium, wherein the hard disk locking method comprises the following steps: loading an encryption program into a hard disk; when the locking signal is monitored to be generated, extracting the identification information of the hard disk carried in the locking signal; the hard disk needing to be locked is determined according to the identification information, and an encryption instruction is sent to the hard disk needing to be locked so as to trigger an encryption program in the hard disk needing to be locked.)

1. A hard disk locking method is characterized by comprising the following steps:

loading an encryption program into a hard disk;

when the locking signal is monitored to be generated, extracting the identification information of the hard disk carried in the locking signal;

and determining the hard disk to be locked according to the identification information, and sending an encryption instruction to the hard disk to be locked so as to trigger an encryption program in the hard disk to be locked.

2. The hard disk locking method according to claim 1, wherein the locking signal comprises a full locking signal and a partial locking signal, the full locking signal carries identification information of a full hard disk stored in the hard disk storage device, and the partial locking signal carries identification information of a hard disk to be called; the generating a lock signal includes:

when the situation that the hard disk storage device is opened by adopting an unconventional means is monitored, generating all locking signals;

and/or receiving first identity authentication information input when the hard disk storage device is started, judging whether the first identity authentication information is consistent with preset first identity information or not, and recording the number of times that the first identity authentication information is inconsistent with the preset first identity information; when the number of times exceeds a preset first threshold value, generating all locking signals;

and/or receiving second identity authentication information input when the hard disk in the hard disk storage device is called, judging whether the second identity authentication information is consistent with preset second identity information or not, and recording the times that the second identity authentication information is inconsistent with the preset second identity information; and generating a partial locking signal when the number of times exceeds a preset second threshold value.

3. The method for locking the hard disk according to claim 1, after sending an encryption command to the hard disk to be locked to trigger an encryption program in the hard disk to be locked, further comprising:

acquiring a decryption password;

and associating the decryption password with the identification information of the hard disk to obtain the corresponding relation between the decryption password and the identification information of the hard disk.

4. The hard disk locking method according to claim 1, wherein said loading an encryption program into a hard disk stored in a hard disk storage device comprises:

dividing a hard disk stored in the hard disk storage device into a boot partition, and hiding the boot partition;

loading the encrypted program in the hidden boot partition.

5. A method for unlocking a hard disk is characterized by comprising the following steps:

receiving a decryption instruction, and extracting identification information of a hard disk carried in the decryption instruction;

receiving third identity authentication information, and judging whether the third identity authentication information is consistent with preset third identity information or not;

and when the third identity authentication information is consistent with the preset third identity information, determining the hard disk to be locked and the matched corresponding decryption password according to the identification information, and sending the decryption password to the hard disk to be decrypted.

6. The method for unlocking a hard disk according to claim 4, wherein: matching the corresponding decryption password according to the identification information comprises:

and searching in the corresponding relation between the preset decryption password and the identification information of the hard disk by taking the identification information as an index to obtain the decryption password of the hard disk.

7. A hard disk locking device, comprising:

the first processing module is used for loading an encryption program into a hard disk stored in the hard disk storage device;

the second processing module is used for extracting the identification information of the hard disk carried in the locking signal when the locking signal is monitored to be generated;

and the locking module is used for determining the hard disk to be locked according to the identification information and sending an encryption instruction to the hard disk to be locked so as to trigger an encryption program in the hard disk to be locked.

8. An unlocking device for a hard disk, comprising:

the extraction module is used for receiving a decryption instruction and extracting the identification information of the hard disk carried in the decryption instruction;

the judging module is used for receiving third identity authentication information and judging whether the third identity authentication information is consistent with preset third identity information or not;

and the unlocking module is used for determining the hard disk to be locked and matching the corresponding decryption password according to the identification information when the third identity authentication information is consistent with the preset third identity information, and sending the decryption password to the hard disk to be decrypted.

9. A hard disk storage device, comprising:

a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, the processor executing the computer instructions to perform the hard disk locking method according to any one of claims 1 to 4 and/or to perform the hard disk unlocking method according to any one of claims 5 to 6.

10. A computer-readable storage medium storing computer instructions for causing a computer to perform the hard disk locking method of any one of claims 1 to 4 and/or the hard disk unlocking method of any one of claims 5 to 6.

Technical Field

The invention relates to the technical field of communication, in particular to a hard disk locking and unlocking method, a hard disk locking and unlocking device, hard disk locking equipment and a computer readable storage medium.

Background

In the storage industry, hard disks are one of the most widely used media. With the continuous price reduction of hard disks and the emergence of various large-capacity hard disks, people can use the hard disks to manage documents, photos, bills, data and the like, so that professional hard disk management equipment such as an intelligent hard disk cabinet is brought forward. The intelligent hard disk cabinet consists of hard disk storage equipment and intelligent management equipment, and is widely applied in the storage industry. At present, although the intelligent hard disk cabinet has an authentication function, people who do not have operation authority cannot check or call information of the hard disk to a certain extent, the following phenomena can also occur: after a plurality of attempts, a person without operation authority may pass through the authentication operation, and at this time, part or all of the hard disks in the intelligent hard disk cabinet may be in a dangerous situation.

Disclosure of Invention

In view of this, embodiments of the present invention provide a hard disk locking and unlocking method, apparatus, device, and computer readable storage medium, so as to protect a hard disk in an intelligent hard disk enclosure that may be in a dangerous situation.

According to a first aspect, an embodiment of the present invention provides a hard disk locking method, including:

loading an encryption program into a hard disk;

when the locking signal is monitored to be generated, extracting the identification information of the hard disk carried in the locking signal;

and determining the hard disk to be locked according to the identification information, and sending an encryption instruction to the hard disk to be locked so as to trigger an encryption program in the hard disk to be locked.

According to the hard disk locking method provided by the embodiment of the invention, the encryption program is loaded in the hard disk, when the locking signal is monitored to be generated, the identification information of the hard disk carried in the locking signal is extracted, the hard disk needing to be locked is determined, and the encryption instruction is sent to the hard disk needing to be locked to trigger the encryption program in the hard disk needing to be locked, so that the hard disk needing to be locked can be encrypted, and the hard disk possibly in a dangerous situation in the hard disk storage device is in a protected state.

With reference to the first aspect, in a first implementation manner of the first aspect, the locking signal includes a total locking signal and a partial locking signal, where the total locking signal carries identification information of all hard disks stored in the hard disk storage device, and the partial locking signal carries identification information of a hard disk to be called; the generating a lock signal includes:

when the situation that the hard disk storage device is opened by adopting an unconventional means is monitored, generating all locking signals;

and/or receiving first identity authentication information input when the hard disk storage device is started, judging whether the first identity authentication information is consistent with preset first identity information or not, and recording the number of times that the first identity authentication information is inconsistent with the preset first identity information; when the number of times exceeds a preset first threshold value, generating all locking signals;

and/or receiving second identity authentication information input when the hard disk in the hard disk storage device is called, judging whether the second identity authentication information is consistent with preset second identity information or not, and recording the times that the second identity authentication information is inconsistent with the preset second identity information; and generating a partial locking signal when the number of times exceeds a preset second threshold value.

With reference to the first aspect, in a second implementation manner of the first aspect, after sending an encryption instruction to the hard disk needing to be locked to trigger an encryption program in the hard disk needing to be locked to encrypt the hard disk needing to be locked, the method further includes: acquiring a decryption password; and associating the decryption password with the identification information of the hard disk to obtain the corresponding relation between the decryption password and the identification information of the hard disk.

With reference to the first aspect, in a third implementation manner of the first aspect, the loading an encryption program into a hard disk stored in a hard disk storage device includes: dividing a hard disk stored in the hard disk storage device into a boot partition, and hiding the boot partition; loading the encrypted program in the hidden boot partition.

According to a second aspect, an embodiment of the present invention provides a hard disk unlocking method, including the following steps: receiving a decryption instruction, and extracting identification information of a hard disk carried in the decryption instruction; receiving third identity authentication information, and judging whether the third identity authentication information is consistent with preset third identity information or not; and when the third identity authentication information is consistent with the preset third identity information, determining the hard disk to be locked and the matched corresponding decryption password according to the identification information, and sending the decryption password to the hard disk to be decrypted.

According to the hard disk unlocking method provided by the embodiment of the invention, the identification information of the hard disk carried in the decryption instruction is extracted, when the third identity authentication information is consistent with the preset third identity information, the corresponding decryption password is matched according to the identification information, and the decryption password is sent to the hard disk needing to be decrypted, so that the encryption program in the hard disk needing to be decrypted is dormant, and the hard disk needing to be decrypted can be checked and/or called.

With reference to the second aspect, in a first implementation manner of the second aspect, matching a corresponding decryption password according to the identification information includes: and searching in the corresponding relation between the preset decryption password and the identification information of the hard disk by taking the identification information as an index to obtain the decryption password of the hard disk.

According to a third aspect, an embodiment of the present invention provides a hard disk locking device, including:

the first processing module is used for loading an encryption program in the hard disk;

the second processing module is used for extracting the identification information of the hard disk carried in the locking signal when the locking signal is monitored to be generated;

and the locking module is used for determining the hard disk to be locked according to the identification information and sending an encryption instruction to the hard disk to be locked so as to trigger an encryption program in the hard disk to be locked.

According to a fourth aspect, an embodiment of the present invention provides a hard disk unlocking device, including:

the extraction module is used for receiving a decryption instruction and extracting the identification information of the hard disk carried in the decryption instruction;

the judging module is used for receiving third identity authentication information and judging whether the third identity authentication information is consistent with preset third identity information or not;

and the unlocking module is used for determining the hard disk to be locked and matching the corresponding decryption password according to the identification information when the third identity authentication information is consistent with the preset third identity information, and sending the decryption password to the hard disk to be decrypted.

According to a fifth aspect, an embodiment of the present invention provides a hard disk storage device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions to perform the hard disk locking method according to any one of the first aspect and/or the hard disk unlocking method according to any one of the second aspect.

According to a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the hard disk locking method described in the first aspect or any one of the implementation manners of the first aspect and/or the hard disk unlocking method described in the second aspect or any one of the implementation manners of the second aspect.

Drawings

The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:

fig. 1 is a schematic flow chart of a hard disk locking method in embodiment 1 of the present invention;

fig. 2 is a schematic flowchart of a hard disk unlocking method in embodiment 2 of the present invention;

fig. 3 is a schematic structural diagram of a hard disk locking device in embodiment 3 of the present invention;

fig. 4 is a schematic structural diagram of a hard disk unlocking device in embodiment 4 of the present invention;

fig. 5 is a schematic structural diagram of a hard disk storage device in embodiment 5 of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具有RFID识别技术的电镀挂具查询系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类