CN111680334B - Disk security access method, device, equipment and medium - Google Patents
Disk security access method, device, equipment and medium Download PDFInfo
- Publication number
- CN111680334B CN111680334B CN202010529188.4A CN202010529188A CN111680334B CN 111680334 B CN111680334 B CN 111680334B CN 202010529188 A CN202010529188 A CN 202010529188A CN 111680334 B CN111680334 B CN 111680334B
- Authority
- CN
- China
- Prior art keywords
- target
- disk
- uuid
- character string
- information file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
- G06F21/80—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data in storage media based on magnetic or optical technology, e.g. disks with sectors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Storage Device Security (AREA)
Abstract
本发明公开了一种磁盘安全访问方法、装置、设备、介质,该方法包括:在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID;根据预设规则对所述目标签名进行校验;如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致;如果一致,则允许对所述目标磁盘进行正常的访问操作。需要在校验通过之后,才能对所述目标磁盘进行正常的访问操作,校验通过则表明所述磁盘信息文件中的目标信息没有被修改,校验通过则表明所述磁盘信息文件中的目标信息已经被修改,这样能够保证磁盘的安全访问,提高设备的安全性能。
The invention discloses a disk security access method, device, equipment, and medium. The method includes: when a disk is detected to be loaded, reading the disk information file of the target disk on the disk, wherein the disk information file contains Including the target signature and the target device ID; verifying the target signature according to preset rules; if the target signature verification is passed, then judging the target device ID in the disk information file and the current target edge device Whether the IDs are consistent; if they are consistent, normal access operations are allowed to the target disk. After the verification is passed, the target disk can be accessed normally. If the verification passes, it indicates that the target information in the disk information file has not been modified. If the verification passes, it indicates that the target information in the disk information file has not been modified. The information has been modified to ensure secure disk access and improve device security.
Description
技术领域technical field
本发明涉及信息安全技术领域,特别涉及一种磁盘安全访问方法、装置、设备、介质。The present invention relates to the technical field of information security, in particular to a disk security access method, device, equipment and medium.
背景技术Background technique
在共享计算大力发展的当下,有很多计算、带宽、存储资源慢慢由中心化服务器演化到用户的家庭,比如用户购买企业的设备放置在家中,并接入网络,插上硬盘,给企业提供一个边缘节点,企业根据用户提供的资源质量返还给用户一定的报酬。当节点提供存储能力时,在磁盘信息文件中会存放磁盘的UUID(Universally Unique Identifier,通用唯一识别码),这个UUID是后台按照一定规则生成的一个唯一不重复的字符串,UUID是存放在用户设备上的磁盘信息文件中的,一旦UUID被修改,那么会导致该磁盘里的数据无效,甚至还会影响其他设备上的数据,比如改成了和其他设备上的UUID一致的一个UUID,后台就会有两份一样的UUID,导致整体服务受影响。With the vigorous development of shared computing, many computing, bandwidth, and storage resources are slowly evolving from centralized servers to users' homes. An edge node, the enterprise returns a certain reward to the user according to the quality of the resources provided by the user. When the node provides storage capacity, the UUID (Universally Unique Identifier) of the disk will be stored in the disk information file. This UUID is a unique and non-repetitive string generated in the background according to certain rules. In the disk information file on the device, once the UUID is modified, the data in the disk will be invalid, and even affect the data on other devices, such as changing to a UUID that is consistent with the UUID on other devices. There will be two copies of the same UUID, which will affect the overall service.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种磁盘安全访问方法、装置、设备、介质,旨在解决磁盘信息文件中的数据被修改带来的数据无效以及设备无法正常工作的问题。In view of this, the object of the present invention is to provide a disk security access method, device, device, and medium, aiming at solving the problems of data invalidation and equipment malfunction caused by modification of data in a disk information file.
为实现上述目的,本发明提出了一种磁盘安全访问方法,应用于目标边缘设备,所述方法包括:In order to achieve the above object, the present invention proposes a disk security access method, which is applied to the target edge device, and the method includes:
在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID;When detecting that there is a disk on the disk, read the disk information file of the target disk on the disk, wherein the disk information file includes the target signature and the target device ID;
根据预设规则对所述目标签名进行校验;Verifying the target signature according to preset rules;
如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致;If the target signature verification is passed, it is judged whether the target device ID in the disk information file is consistent with the current ID of the target edge device;
如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。If the target device ID in the disk information file is consistent with the current ID of the target edge device, normal access operations to the target disk are allowed.
可选地,所述判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致之后,还包括:Optionally, after the judging whether the target device ID in the disk information file is consistent with the current ID of the target edge device, further includes:
如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID不一致,则根据所述目标磁盘的当前应用场景确定是否允许对所述目标磁盘进行正常的访问操作。If the target device ID in the disk information file is inconsistent with the current ID of the target edge device, then determine whether to allow normal access to the target disk according to the current application scenario of the target disk.
可选地,所述允许对所述目标磁盘进行正常的访问操作之后,还包括:Optionally, after the normal access operation to the target disk is allowed, the method further includes:
获取所述目标磁盘按照预设时间间隔上报的磁盘信息。Obtain disk information reported by the target disk at preset time intervals.
可选地,所述在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件的过程中,还包括:Optionally, the process of reading the disk information file of the target disk on the disk when it is detected that there is a disk on the disk further includes:
如果未读取到上盘的目标磁盘的磁盘信息文件,则向本地对应的后台发起UUID请求,以便所述后台根据所述UUID请求生成与所述目标磁盘对应的目标UUID;If the disk information file of the target disk of the last disk is not read, a UUID request is initiated to the corresponding local background, so that the background generates a target UUID corresponding to the target disk according to the UUID request;
根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息;generating disk information corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device;
将所述磁盘信息保存到创建好的磁盘文件中,得到目标磁盘文件。The disk information is saved to the created disk file to obtain the target disk file.
可选地,所述根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息,包括:Optionally, the generating the disk information corresponding to the target disk according to the preset rule, the target UUID and the current ID of the target edge device includes:
根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的目标签名;generating a target signature corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device;
将所述目标UUID、所述当前ID以及所述目标签名按照预设格式进行存储,得到与所述目标磁盘对应的磁盘信息。The target UUID, the current ID, and the target signature are stored in a preset format to obtain disk information corresponding to the target disk.
可选地,所述根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的目标签名,包括:Optionally, the generating the target signature corresponding to the target disk according to the preset rule, the target UUID and the current ID of the target edge device includes:
根据第一预设规则和所述目标UUID,得到第一字符串和第二字符串;Obtain a first character string and a second character string according to the first preset rule and the target UUID;
根据第二预设规则、所述第一字符串以及所述第二字符串,得到第三字符串;obtaining a third character string according to a second preset rule, the first character string, and the second character string;
利用第一预设算法、第二预设算法以及所述第三字符串,生成第四字符串;generating a fourth character string by using the first preset algorithm, the second preset algorithm and the third character string;
利用所述第二预设算法和所述目标UUID生成第五字符串;generating a fifth character string by using the second preset algorithm and the target UUID;
将所述第四字符串和第五字符串进行异或运算,得到目标字符串;performing an XOR operation on the fourth character string and the fifth character string to obtain a target character string;
利用所述第一预设算法、所述第二预设算法、所述目标UUID、所述当前ID以及所述目标字符串生成与所述目标磁盘对应的目标签名。A target signature corresponding to the target disk is generated by using the first preset algorithm, the second preset algorithm, the target UUID, the current ID, and the target character string.
可选地,所述利用第一预设算法、第二预设算法以及所述第三字符串,生成第四字符串,包括:Optionally, the generating a fourth character string by using the first preset algorithm, the second preset algorithm and the third character string includes:
利用SHA512算法对所述第三字符串进行运算,得到目标运算值;Using the SHA512 algorithm to perform operations on the third character string to obtain a target operation value;
利用MD5算法对所述目标运算值进行运算,得到第四字符串。The MD5 algorithm is used to perform an operation on the target operation value to obtain a fourth character string.
为实现上述目的,本发明进一步提出了一种磁盘安全访问装置,应用于目标边缘设备,所述装置包括:In order to achieve the above purpose, the present invention further proposes a disk security access device, which is applied to the target edge device, and the device includes:
文件读取模块,用于在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID;The file reading module is used to read the disk information file of the target disk on the disk when it is detected that there is a disk on the disk, wherein the disk information file includes the target signature and the target device ID;
签名校验模块,用于根据预设规则对所述目标签名进行校验;a signature verification module, configured to verify the target signature according to preset rules;
ID验证模块,用于在所述目标签名校验通过时,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致;The ID verification module is used to determine whether the target device ID in the disk information file is consistent with the current ID of the target edge device when the target signature verification is passed;
磁盘访问模块,用于在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致时,则允许对所述目标磁盘进行正常的访问操作。The disk access module is configured to allow normal access to the target disk when the target device ID in the disk information file is consistent with the current ID of the target edge device.
为实现上述目的,本发明进一步提出了一种磁盘安全访问设备,包括:In order to achieve the above object, the present invention further proposes a disk security access device, comprising:
存储器和处理器;memory and processor;
所述存储器上存储有可在所述处理器上运行的磁盘安全访问程序,所述磁盘安全访问程序被所述处理器执行时实现前述的磁盘安全访问方法。A disk security access program that can run on the processor is stored in the memory, and when the disk security access program is executed by the processor, the aforementioned method for disk security access is implemented.
为实现上述目的,本发明进一步提出了一种计算机可读存储介质,所述计算机可读存储介质上存储有磁盘安全访问程序,所述磁盘安全访问程序可被一个或者多个处理器执行,以实现前述的磁盘安全访问方法。To achieve the above object, the present invention further proposes a computer-readable storage medium, on which a disk security access program is stored, and the disk security access program can be executed by one or more processors to Realize the aforementioned disk security access method.
为实现上述目的,本发明进一步提供一种计算机程序产品,所述计算机程序产品包括计算机指令,当其在计算机上运行时,使得计算机可以执行前述的磁盘安全访问方法。In order to achieve the above object, the present invention further provides a computer program product, the computer program product includes computer instructions, and when it is run on a computer, the computer can execute the aforementioned disk security access method.
可见,本发明在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID,再根据预设规则对所述目标签名进行校验,如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。由此可见,本发明在监测到有磁盘上盘之后,先读取上盘的目标磁盘的磁盘信息文件,并根据预设规则对所述磁盘信息文件中的目标签名进行校验,在校验通过之后,再判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,并在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致时,可以对所述目标磁盘进行正常的访问操作,校验通过则表明所述磁盘信息文件中的目标信息没有被修改,校验未通过则表明所述磁盘信息文件中的目标信息已经被修改,这样能够保证磁盘的安全访问,提高设备的安全性能。It can be seen that when the present invention detects that there is a disk on the disk, it reads the disk information file of the target disk on the disk, wherein the disk information file includes the target signature and the target device ID, and then according to the preset rules, the target The signature is checked, and if the target signature check is passed, it is judged whether the target device ID in the disk information file is consistent with the current ID of the target edge device, if the target device ID in the disk information file is consistent with If the current IDs of the target edge devices are consistent, normal access operations on the target disk are allowed. It can be seen that, after the present invention detects that there is a disk on the disk, it first reads the disk information file of the target disk on the disk, and checks the target signature in the disk information file according to the preset rules. After passing, judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device, and when the target device ID in the disk information file is consistent with the current ID of the target edge device , normal access operations can be performed on the target disk, if the verification passes, it indicates that the target information in the disk information file has not been modified, and if the verification fails, it indicates that the target information in the disk information file has been modified, In this way, the safe access of the disk can be guaranteed, and the security performance of the device can be improved.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明公开的一种磁盘安全访问方法流程图;Fig. 1 is a flow chart of a disk security access method disclosed by the present invention;
图2为本发明公开的一种具体的磁盘安全访问方法流程图;FIG. 2 is a flow chart of a specific disk security access method disclosed by the present invention;
图3为本发明公开的一种具体的磁盘安全访问方法流程图;FIG. 3 is a flow chart of a specific disk security access method disclosed by the present invention;
图4为本发明公开的一种磁盘安全访问装置结构示意图;Fig. 4 is a schematic structural diagram of a disk security access device disclosed by the present invention;
图5为本发明公开的一种磁盘安全访问设备结构图。Fig. 5 is a structural diagram of a disk security access device disclosed in the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions involving "first", "second", etc. in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.
目前,当节点提供存储能力时,在磁盘信息文件中会存放磁盘的UUID,这个UUID是后台按照一定规则生成的一个唯一不重复的字符串,UUID是存放在用户设备上的磁盘信息文件中的,一旦UUID被修改,那么会导致该磁盘里的数据无效,甚至还会影响其他设备上的数据,比如改成了和其他设备上的UUID一致的一个UUID,后台就会有两份一样的UUID,导致整体服务受影响。有鉴于此,本发明提出了一种磁盘安全访问方法,能够保证磁盘的安全访问,提高设备的安全性能。At present, when a node provides storage capacity, the UUID of the disk will be stored in the disk information file. This UUID is a unique and non-repetitive character string generated in the background according to certain rules. The UUID is stored in the disk information file on the user device. , once the UUID is modified, it will cause the data in the disk to be invalid, and even affect the data on other devices. For example, if it is changed to a UUID that is consistent with the UUID on other devices, there will be two copies of the same UUID in the background , causing the overall service to be affected. In view of this, the present invention proposes a disk security access method, which can ensure the security access of the disk and improve the security performance of the device.
参见图1所示,本发明实施例公开了一种磁盘安全访问方法,应用于目标边缘设备,该方法包括:Referring to Fig. 1, the embodiment of the present invention discloses a disk security access method, which is applied to a target edge device, and the method includes:
步骤S11:在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID。Step S11: When it is detected that a disk is loaded, read the disk information file of the loaded target disk, wherein the disk information file includes a target signature and a target device ID.
在监测到有磁盘上盘时,需要读取上盘的目标磁盘的磁盘信息文件,以便对所述磁盘信息文件中的信息进行校验,从而确定本地是否可以对所述目标磁盘进行正常访问操作。其中,所述磁盘信息文件中包括目标签名、目标设备ID以及所述目标磁盘的目标UUID,所述目标签名为利用预设规则对所述目标设备ID以及所述目标UUID进行处理得到的签名。When it is detected that there is a disk on the disk, it is necessary to read the disk information file of the target disk on the disk, so as to verify the information in the disk information file, so as to determine whether the local can perform normal access operations on the target disk . Wherein, the disk information file includes a target signature, a target device ID, and a target UUID of the target disk, and the target signature is a signature obtained by processing the target device ID and the target UUID using preset rules.
利用预设规则对所述目标设备ID以及所述目标UUID进行处理得到的目标签名的过程中,所述预设规则可以根据实际情况进行确定,例如,首先对所述目标UUID进行哈希运算,在将得到的运算结果与目标设备ID一起再次进行哈希运算,得到所述目标签名。或,取目标UUID的奇数位和偶数位分别拼成字符串str1,str2;将str1逆序然后和str2拼接,组成新字符串;对新字符串取MD5和SHA512值作为str3;将str3与目标UUID的MD5值进行异或运算,作为key;对key、所述目标UUID以及所述目标设备ID一起取MD5和SHA512值,得到目标签名。In the process of using preset rules to process the target device ID and the target UUID to obtain the target signature, the preset rules can be determined according to the actual situation, for example, first perform a hash operation on the target UUID, The hash operation is performed again on the obtained operation result together with the target device ID to obtain the target signature. Or, take the odd-numbered and even-numbered bits of the target UUID to form strings str1 and str2 respectively; reverse the order of str1 and then concatenate with str2 to form a new string; take the MD5 and SHA512 values of the new string as str3; combine str3 with the target UUID XOR operation is performed on the MD5 value of , and it is used as a key; MD5 and SHA512 values are taken together for the key, the target UUID and the target device ID to obtain the target signature.
步骤S12:根据预设规则对所述目标签名进行校验。Step S12: Verifying the target signature according to preset rules.
在读取到所述磁盘信息文件之后,根据预设规则对所述目标签名进行校验,这样可以确定所述磁盘信息文件中的信息是否被修改。其中,所述预设规则与生成所述目标签名的规则相同。After the disk information file is read, the target signature is verified according to preset rules, so as to determine whether the information in the disk information file has been modified. Wherein, the preset rule is the same as the rule for generating the target signature.
按照预设规则对所述目标签名进行校验,包括:利用预设规则对所述磁盘信息文件中的目标设备ID以及目标UUID进行处理,得到参考签名;将所述参考签名与所述目标签名进行比对,若所述参考签名与所述目标签名一致,则判定所述目标签名校验通过,表示所述目标设备ID和所述目标UUID未被修改;若所述参考签名与所述目标签名不一致,则判定所述目标签名校验不通过,表示所述目标设备ID或所述目标UUID被修改。Verifying the target signature according to preset rules includes: using preset rules to process the target device ID and target UUID in the disk information file to obtain a reference signature; combining the reference signature with the target signature Comparing, if the reference signature is consistent with the target signature, it is determined that the target signature has passed the verification, indicating that the target device ID and the target UUID have not been modified; if the reference signature is consistent with the target If the signatures are inconsistent, it is determined that the target signature verification fails, indicating that the target device ID or the target UUID has been modified.
步骤S13:如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致。Step S13: If the target signature verification is passed, then judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device.
在对所述目标签名进行校验之后,如果所述目标签名校验通过,则还需要判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,以确定是否允许对所述目标磁盘进行正常的访问操作。在具体的实施过程中,有的磁盘在一些使用场景下只能在特定的边缘设备上使用,所以在所述目标签名通过后,还需要判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致。After the verification of the target signature, if the verification of the target signature is passed, it is also necessary to judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device, so as to determine whether to allow Perform normal access operations on the target disk. In the specific implementation process, some disks can only be used on specific edge devices in some usage scenarios, so after the target signature is passed, it is also necessary to determine the target device ID in the disk information file and the Whether the current ID of the target edge device is consistent.
步骤S14:如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。Step S14: If the target device ID in the disk information file is consistent with the current ID of the target edge device, allow normal access to the target disk.
在判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致之后,如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID不一致,则根据所述目标磁盘的当前应用场景确定是否允许对所述目标磁盘进行正常的访问操作。如果所述目标磁盘在当前适应场景下,不允许在所处目标设备ID对应的边缘设备之外的设备上使用,则不允许所述目标边缘设备对所述目标磁盘进行正常的访问操作。如果所述目标磁盘在当前适应场景下,允许在所述目标设备ID对应的边缘设备之外的设备上使用,则允许所述目标边缘设备对所述目标磁盘进行正常的访问操作。After judging whether the target device ID in the disk information file is consistent with the current ID of the target edge device, if the target device ID in the disk information file is consistent with the current ID of the target edge device, allow the The target disk performs normal access operations. If the target device ID in the disk information file is inconsistent with the current ID of the target edge device, then determine whether to allow normal access to the target disk according to the current application scenario of the target disk. If the target disk is not allowed to be used on devices other than the edge device corresponding to the target device ID in the current adaptation scenario, the target edge device is not allowed to perform a normal access operation on the target disk. If the target disk is allowed to be used on a device other than the edge device corresponding to the target device ID in the current adaptation scenario, the target edge device is allowed to perform a normal access operation on the target disk.
可见,本发明在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID,再根据预设规则对所述目标签名进行校验,如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。由此可见,本发明在监测到有磁盘上盘之后,先读取上盘的目标磁盘的磁盘信息文件,并根据预设规则对所述磁盘信息文件中的目标签名进行校验,在校验通过之后,再判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,并在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致时,可以对所述目标磁盘进行正常的访问操作,校验通过则表明所述磁盘信息文件中的目标信息没有被修改,校验未通过则表明所述磁盘信息文件中的目标信息已经被修改,这样能够保证磁盘的安全访问,提高设备的安全性能。It can be seen that when the present invention detects that there is a disk on the disk, it reads the disk information file of the target disk on the disk, wherein the disk information file includes the target signature and the target device ID, and then according to the preset rules, the target The signature is checked, and if the target signature check is passed, it is judged whether the target device ID in the disk information file is consistent with the current ID of the target edge device, if the target device ID in the disk information file is consistent with If the current IDs of the target edge devices are consistent, normal access operations on the target disk are allowed. It can be seen that, after the present invention detects that there is a disk on the disk, it first reads the disk information file of the target disk on the disk, and checks the target signature in the disk information file according to the preset rules. After passing, judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device, and when the target device ID in the disk information file is consistent with the current ID of the target edge device , normal access operations can be performed on the target disk, if the verification passes, it indicates that the target information in the disk information file has not been modified, and if the verification fails, it indicates that the target information in the disk information file has been modified, In this way, the safe access of the disk can be guaranteed, and the security performance of the device can be improved.
参见图2所示,本发明实施例公开了一种具体的磁盘安全访问方法,应用于目标边缘设备,该方法包括:Referring to Figure 2, the embodiment of the present invention discloses a specific disk security access method, which is applied to the target edge device, and the method includes:
步骤S21:在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID。Step S21: When it is detected that a disk is loaded, read the disk information file of the loaded target disk, wherein the disk information file includes a target signature and a target device ID.
步骤S22:如果读取到所述磁盘信息文件,则根据预设规则对所述目标签名进行校验。Step S22: If the disk information file is read, verify the target signature according to preset rules.
步骤S23:如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致。Step S23: If the target signature verification is passed, then judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device.
步骤S24:如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。Step S24: If the target device ID in the disk information file is consistent with the current ID of the target edge device, allow normal access to the target disk.
在判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致之后,如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。如果不一致则可以看应用场景是否允许,如果允许的话可以视为正常,允许对所述目标磁盘进行正常的访问操作,如果应用场景不允许的话可以根据需要做相应的异常处理,不允许对所述目标磁盘进行正常的访问操作。如果所述目标签名校验未通过,则可以将所述目标磁盘的状态标记为异常,并不允许本地对所述目标磁盘进行正常的访问操作。允许对所述目标磁盘进行正常的访问操作之后,还包括:获取所述目标磁盘按照预设时间间隔上报的磁盘信息,其中,所述磁盘信息可以包括所述目标磁盘的目标UUID、总容量以及剩余容量。After judging whether the target device ID in the disk information file is consistent with the current ID of the target edge device, if the target device ID in the disk information file is consistent with the current ID of the target edge device, allow the The target disk performs normal access operations. If not, you can see whether the application scenario allows it. If it is allowed, it can be regarded as normal, allowing normal access operations to the target disk. The target disk performs normal access operations. If the target signature verification fails, the status of the target disk may be marked as abnormal, and normal local access to the target disk is not allowed. After allowing the normal access operation to the target disk, it also includes: obtaining disk information reported by the target disk at preset time intervals, wherein the disk information may include the target UUID, total capacity and The remaining capacity.
步骤S25:如果未读取到上盘的目标磁盘的磁盘信息文件,则向本地对应的后台发起UUID请求,以便所述后台根据所述UUID请求生成与所述目标磁盘对应的目标UUID。Step S25: If the disk information file of the uploaded target disk is not read, initiate a UUID request to the corresponding local background, so that the background generates a target UUID corresponding to the target disk according to the UUID request.
在具体的实施过程中,如果未读取到上盘的目标磁盘的磁盘信息文件,则所述目标磁盘是第一次上盘,则需要向本地对应的后台发起UUID请求,以便所述后台根据所述UUID请求生成与所述目标磁盘对应的目标UUID。In the specific implementation process, if the disk information file of the target disk on the disk is not read, and the target disk is on the disk for the first time, it is necessary to initiate a UUID request to the corresponding local background, so that the background can according to The UUID request generates a target UUID corresponding to the target disk.
步骤S26:根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息。Step S26: Generate disk information corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device.
所述后台生成所述目标UUID之后,需要根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息。所述根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息,包括:根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的目标签名;将所述目标UUID、所述当前ID以及所述目标签名按照预设格式进行存储,得到与所述目标磁盘对应的磁盘信息。After the background generates the target UUID, it needs to generate disk information corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device. The generating the disk information corresponding to the target disk according to the preset rule, the target UUID and the current ID of the target edge device includes: according to the preset rule, the target UUID and the target The current ID of the edge device generates a target signature corresponding to the target disk; the target UUID, the current ID, and the target signature are stored in a preset format to obtain disk information corresponding to the target disk.
具体的,所述根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的目标签名,包括:根据第一预设规则和所述目标UUID,得到第一字符串和第二字符串;根据第二预设规则、所述第一字符串以及所述第二字符串,得到第三字符串;利用第一预设算法、第二预设算法以及所述第三字符串,生成第四字符串;利用所述第二预设算法和所述目标UUID生成第五字符串;将所述第四字符串和第五字符串进行异或运算,得到目标字符串;利用所述第一预设算法、所述第二预设算法、所述目标UUID、所述当前ID以及所述目标字符串生成与所述目标磁盘对应的目标签名。具体的,可以包括:取所述目标UUID的奇数位上的组成第一字符串,取所述目标UUID的偶数位上的组成第二字符串;将第一字符串逆序与所述第二字符串拼接,得到第三字符串;利用SHA512算法对所述第三字符串进行运算,得到目标运算值,利用MD5算法对所述目标运算值进行运算,得到第四字符串;利用MD5算法对所述目标UUID进行运算生成第五字符串;将所述第四字符串和第五字符串进行异或运算,得到目标字符串;所述目标UUID、所述目标设备ID以及所述目标字符串一起拼接成一个长字符串,再次利用SHA512算法以及MD5算法对该长字符串进行处理,得到目标签名,用公式表达就是目标签名sign=MD5SHA512(device_id+UUID+key),其中,device_id为所述目标边缘设备的目标设备ID,key表示所述目标字符串。例如,所述目标UUID为abcdef,则第一字符串为ace,第二字符串为bdf,第三字符串为ecabdf。再将所述目标UUID、所述目标设备ID以及所述目标签名按照预设格式进行存储,得到与所述目标磁盘对应的磁盘信息,具体的,可以按照device_id\001uuid\001sign进行存储,其中,\001为分隔符。Specifically, the generating the target signature corresponding to the target disk according to the preset rule, the target UUID and the current ID of the target edge device includes: according to the first preset rule and the target UUID, Obtain a first character string and a second character string; obtain a third character string according to a second preset rule, the first character string and the second character string; use the first preset algorithm and the second preset algorithm and the third character string, generating a fourth character string; using the second preset algorithm and the target UUID to generate a fifth character string; performing an XOR operation on the fourth character string and the fifth character string, Obtaining a target string; using the first preset algorithm, the second preset algorithm, the target UUID, the current ID, and the target string to generate a target signature corresponding to the target disk. Specifically, it may include: taking the odd-numbered bits of the target UUID to form the first character string, taking the even-numbered bits of the target UUID to form the second character string; combining the first character string in reverse order with the second character string string splicing to obtain the third character string; use the SHA512 algorithm to operate the third character string to obtain the target calculation value, and use the MD5 algorithm to perform calculation on the target calculation value to obtain the fourth character string; use the MD5 algorithm to calculate the target calculation value The target UUID is operated to generate the fifth character string; the fourth character string and the fifth character string are XORed to obtain the target character string; the target UUID, the target device ID and the target character string are together Splice into a long character string, use the SHA512 algorithm and the MD5 algorithm to process the long character string again, and obtain the target signature, which is expressed by the formula as the target signature sign=MD5SHA512(device_id+UUID+key), where device_id is the target The target device ID of the edge device, key represents the target string. For example, if the target UUID is abcdef, the first character string is ace, the second character string is bdf, and the third character string is ecabdf. Then store the target UUID, the target device ID, and the target signature according to a preset format to obtain disk information corresponding to the target disk. Specifically, it can be stored according to device_id\001uuid\001sign, wherein, \001 is the delimiter.
步骤S27:将所述磁盘信息保存到创建好的磁盘文件中,得到目标磁盘文件。Step S27: Save the disk information to the created disk file to obtain the target disk file.
在得到所述磁盘信息之后,将所述磁盘信息保存到创建好的磁盘文件中,得到目标磁盘文件。After obtaining the disk information, save the disk information in the created disk file to obtain a target disk file.
参见图3所示,为一种磁盘安全访问流程图。在磁盘上盘之后,对磁盘的磁盘信息文件进行尝试读取,以判断是否有磁盘信息文件,如果有磁盘信息文件,则读取所述磁盘信息文件,进行所述磁盘信息文件中的签名进行校验,如果验证签名通过,则判断所述磁盘信息文件中的设备ID与当前设备的ID是否一致,如果一致,则将磁盘的状态标记为正常,如果不一致,则将磁盘的状态标记为异常,并通过心跳定时上报磁盘信息。如果没有磁盘信息文件,则向后台申请对应的UUID,并根据预设规则和所述UUID计算得到磁盘信息签名,生成磁盘信息,并保存到文件中,得到磁盘信息文件,并将所述磁盘的状态标记为正常。Referring to FIG. 3 , it is a flow chart of disk security access. After the disk is loaded, try to read the disk information file of the disk to determine whether there is a disk information file, if there is a disk information file, then read the disk information file, and perform the signature in the disk information file Check, if the verification signature is passed, then judge whether the device ID in the disk information file is consistent with the ID of the current device, if they are consistent, mark the state of the disk as normal, if not, mark the state of the disk as abnormal , and regularly report disk information through heartbeat. If there is no disk information file, apply for the corresponding UUID from the background, and calculate the disk information signature according to the preset rules and the UUID, generate disk information, and save it in the file to obtain the disk information file, and store the disk information Status is marked OK.
参见图4所示,本发明实施例公开了一种磁盘安全访问装置,应用于目标边缘设备,包括:Referring to Figure 4, the embodiment of the present invention discloses a disk security access device, which is applied to the target edge device, including:
文件读取模块11,用于在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID;The
签名校验模块12,用于根据预设规则对所述目标签名进行校验;A
ID验证模块13,用于在所述目标签名校验通过时,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致;The
磁盘访问模块14,用于在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致时,则允许对所述目标磁盘进行正常的访问操作。The
可见,本发明在监测到有磁盘上盘时,读取上盘的目标磁盘的磁盘信息文件,其中,所述磁盘信息文件中包括目标签名和目标设备ID,再根据预设规则对所述目标签名进行校验,如果所述目标签名校验通过,则判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,如果所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致,则允许对所述目标磁盘进行正常的访问操作。由此可见,本发明在监测到有磁盘上盘之后,先读取上盘的目标磁盘的磁盘信息文件,并根据预设规则对所述磁盘信息文件中的目标签名进行校验,在校验通过之后,再判断所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID是否一致,并在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID一致时,可以对所述目标磁盘进行正常的访问操作,校验通过则表明所述磁盘信息文件中的目标信息没有被修改,校验未通过则表明所述磁盘信息文件中的目标信息已经被修改,这样能够保证磁盘的安全访问,提高设备的安全性能。It can be seen that when the present invention detects that there is a disk on the disk, it reads the disk information file of the target disk on the disk, wherein the disk information file includes the target signature and the target device ID, and then according to the preset rules, the target The signature is checked, and if the target signature check is passed, it is judged whether the target device ID in the disk information file is consistent with the current ID of the target edge device, if the target device ID in the disk information file is consistent with If the current IDs of the target edge devices are consistent, normal access operations on the target disk are allowed. It can be seen that, after the present invention detects that there is a disk on the disk, it first reads the disk information file of the target disk on the disk, and checks the target signature in the disk information file according to the preset rules. After passing, judge whether the target device ID in the disk information file is consistent with the current ID of the target edge device, and when the target device ID in the disk information file is consistent with the current ID of the target edge device , normal access operations can be performed on the target disk, if the verification passes, it indicates that the target information in the disk information file has not been modified, and if the verification fails, it indicates that the target information in the disk information file has been modified, In this way, the safe access of the disk can be guaranteed, and the security performance of the device can be improved.
在具体的实施过程中,所述磁盘安全访问装置,还包括:In a specific implementation process, the disk security access device also includes:
访问操作确定模块,用于在所述磁盘信息文件中的目标设备ID与所述目标边缘设备的当前ID不一致时,则根据所述目标磁盘的当前应用场景确定是否允许对所述目标磁盘进行正常的访问操作。An access operation determining module, configured to determine whether to allow normal access to the target disk according to the current application scenario of the target disk when the target device ID in the disk information file is inconsistent with the current ID of the target edge device access operations.
在具体的实施过程中,所述磁盘安全访问装置,还包括:In a specific implementation process, the disk security access device also includes:
磁盘信息获取模块,用于获取所述目标磁盘按照预设时间间隔上报的磁盘信息。The disk information obtaining module is configured to obtain the disk information reported by the target disk at preset time intervals.
具体的,所述磁盘安全访问装置,还包括:Specifically, the disk security access device also includes:
UUID申请模块,用于在未读取到上盘的目标磁盘的磁盘信息文件时,则向本地对应的后台发起UUID请求,以便所述后台根据所述UUID请求生成与所述目标磁盘对应的目标UUID;The UUID application module is used to initiate a UUID request to the local corresponding background when the disk information file of the target disk on the disk is not read, so that the background generates a target corresponding to the target disk according to the UUID request UUID;
磁盘信息生成模块,用于根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的磁盘信息;A disk information generating module, configured to generate disk information corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device;
磁盘文件生成模块,用于将所述磁盘信息保存到创建好的磁盘文件中,得到目标磁盘文件。The disk file generation module is used to save the disk information into the created disk file to obtain the target disk file.
其中,所述磁盘信息生成模块,包括:Wherein, the disk information generation module includes:
目标签名生成子模块,用于根据所述预设规则、所述目标UUID以及所述目标边缘设备的当前ID生成与所述目标磁盘对应的目标签名;A target signature generating submodule, configured to generate a target signature corresponding to the target disk according to the preset rule, the target UUID, and the current ID of the target edge device;
磁盘信息生成子模块,用于将所述目标UUID、所述当前ID以及所述目标签名按照预设格式进行存储,得到与所述目标磁盘对应的磁盘信息。The disk information generating submodule is used to store the target UUID, the current ID and the target signature in a preset format to obtain disk information corresponding to the target disk.
所述目标签名子模块,具体可以包括:The target signature submodule may specifically include:
第一字符串生成单元,用于根据第一预设规则和所述目标UUID,得到第一字符串和第二字符串;a first character string generating unit, configured to obtain a first character string and a second character string according to a first preset rule and the target UUID;
第二字符串生成单元,用于根据第二预设规则、所述第一字符串以及所述第二字符串,得到第三字符串;a second character string generating unit, configured to obtain a third character string according to a second preset rule, the first character string, and the second character string;
第三字符串生成单元,用于利用第一预设算法、第二预设算法以及所述第三字符串,生成第四字符串;a third character string generating unit, configured to generate a fourth character string by using the first preset algorithm, the second preset algorithm, and the third character string;
第四字符串生成单元,用于利用所述第二预设算法和所述目标UUID生成第五字符串;A fourth character string generating unit, configured to generate a fifth character string by using the second preset algorithm and the target UUID;
第五字符串生成单元,用于将所述第四字符串和第五字符串进行异或运算,得到目标字符串;The fifth character string generating unit is used to perform XOR operation on the fourth character string and the fifth character string to obtain a target character string;
目标签名生成单元,用于利用所述第一预设算法、所述第二预设算法、所述目标UUID、所述当前ID以及所述目标字符串生成与所述目标磁盘对应的目标签名。A target signature generating unit, configured to generate a target signature corresponding to the target disk by using the first preset algorithm, the second preset algorithm, the target UUID, the current ID, and the target character string.
所述第三字符串生成单元,具体用于利用SHA512算法对所述第三字符串进行运算,得到目标运算值;利用MD5算法对所述目标运算值进行运算,得到第四字符串。The third character string generation unit is specifically configured to use the SHA512 algorithm to operate on the third character string to obtain a target operation value; to use the MD5 algorithm to perform operation on the target operation value to obtain a fourth character string.
进一步的,参见图5所示,本发明实施例还公开了一种磁盘安全访问设备20,包括:处理器21和存储器22。Further, referring to FIG. 5 , the embodiment of the present invention also discloses a disk
所述存储器22上存储有可在所述处理器21上运行的磁盘安全访问程序,所述磁盘安全访问程序被所述处理器21执行时实现前述的磁盘安全访问方法。The
其中,关于上述磁盘安全访问方法的具体过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Wherein, regarding the specific process of the above-mentioned disk security access method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
其中,存储器22至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器22在一些实施例中可以是磁盘安全访问设备20的内部存储单元,例如磁盘安全访问设备20的硬盘。存储器22在另一些实施例中也可以是磁盘安全访问设备20的外部存储设备,例如磁盘安全访问设备20上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器22还可以既包括磁盘安全访问设备20的内部存储单元也包括外部存储设备。存储器22不仅可以用于存储安装于磁盘安全访问设备20的应用软件及各类数据,还可以用于暂时地存储已经输出或者将要输出的数据。Wherein, the
处理器21在一些实施例中可以是一中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器或其他数据处理芯片,用于运行存储器22中存储的程序代码或处理数据。In some embodiments, the
另外,所述磁盘安全访问设备20还包括总线23,所述总线23可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。In addition, the disk
进一步地,所述磁盘安全访问设备20还可以包括网络接口24,所述网络接口24可选地可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在磁盘安全访问设备20与其他电子设备之间建立通信连接。Further, the disk
可选地,磁盘安全访问设备20还可以包括用户接口25,用户接口可以包括显示器(Display)、输入单元比如键盘(Keyboard),可选地用户接口还可以包括标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在磁盘安全访问设备20中处理的信息以及用于显示可视化的用户界面。Optionally, the disk
图5仅示出了具有组件21-25的磁盘安全访问设备20,本领域技术人员可以理解的是,图5示出的结构并不构成对磁盘安全访问设备20的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。FIG. 5 only shows the disk
进一步的,本发明实施例还公开了一种计算机可读存储介质,Further, the embodiment of the present invention also discloses a computer-readable storage medium,
用于保存磁盘安全访问程序,其中,所述磁盘安全访问程序被处理器执行时实现前述实施例公开的磁盘安全访问方法。It is used to save the disk security access program, wherein when the disk security access program is executed by the processor, the disk security access method disclosed in the foregoing embodiments is implemented.
关于上述磁盘安全访问方法的具体过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。Regarding the specific process of the above disk security access method, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程设备。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, all or part of the processes or functions according to the embodiments of the present invention will be generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server, or data center by wired (eg, coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, DVD), or a semiconductor medium (for example, a Solid State Disk (SSD)).
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc and other media that can store program codes.
需要说明的是,上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。并且本文中的术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、设备、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、设备、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、设备、物品或者方法中还存在另外的相同要素。It should be noted that the serial numbers of the above embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments. And herein the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, apparatus, article or method comprising a set of elements includes not only those elements, but also includes not expressly included other elements listed, or also include elements inherent in the process, apparatus, article, or method. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, apparatus, article or method comprising that element.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010529188.4A CN111680334B (en) | 2020-06-11 | 2020-06-11 | Disk security access method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010529188.4A CN111680334B (en) | 2020-06-11 | 2020-06-11 | Disk security access method, device, equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111680334A CN111680334A (en) | 2020-09-18 |
| CN111680334B true CN111680334B (en) | 2023-05-09 |
Family
ID=72454626
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010529188.4A Active CN111680334B (en) | 2020-06-11 | 2020-06-11 | Disk security access method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111680334B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112800493B (en) * | 2021-02-07 | 2025-04-22 | 联想(北京)有限公司 | Information processing method and device |
| CN114186280B (en) * | 2022-02-14 | 2022-05-20 | 统信软件技术有限公司 | A file access method, computing device and readable storage medium |
Citations (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104184713A (en) * | 2013-05-27 | 2014-12-03 | 阿里巴巴集团控股有限公司 | Terminal identification method, machine identification code registration method, and corresponding system and equipment |
| CN105574439A (en) * | 2015-04-17 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | System disk verifying method and device |
| EP3239882A1 (en) * | 2016-04-26 | 2017-11-01 | Deutsche Telekom AG | Accessing a log file |
| CN107579999A (en) * | 2017-10-17 | 2018-01-12 | 山东渔翁信息技术股份有限公司 | Authentication method, device and the network equipment of data source equipment |
| CN107682160A (en) * | 2017-10-31 | 2018-02-09 | 美的智慧家居科技有限公司 | The authentication method and device of a kind of production equipment, electronic equipment |
| CN108701201A (en) * | 2018-04-08 | 2018-10-23 | 深圳大学 | A kind of access control method of mobile terminal, device, terminal and storage medium |
| CN109189333A (en) * | 2018-08-15 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of hard disk adaptation |
| CN109218009A (en) * | 2017-06-30 | 2019-01-15 | 武汉斗鱼网络科技有限公司 | It is a kind of to improve the method for device id safety, client and server |
| CN109547205A (en) * | 2017-09-22 | 2019-03-29 | 中国电信股份有限公司 | Authentication method and device, internet-of-things terminal |
| CN110351089A (en) * | 2019-05-23 | 2019-10-18 | 西安电子科技大学 | A kind of data signature authentication method and device |
| CN110555293A (en) * | 2019-09-10 | 2019-12-10 | 百度在线网络技术(北京)有限公司 | Method, apparatus, electronic device and computer readable medium for protecting data |
-
2020
- 2020-06-11 CN CN202010529188.4A patent/CN111680334B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104184713A (en) * | 2013-05-27 | 2014-12-03 | 阿里巴巴集团控股有限公司 | Terminal identification method, machine identification code registration method, and corresponding system and equipment |
| CN105574439A (en) * | 2015-04-17 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | System disk verifying method and device |
| EP3239882A1 (en) * | 2016-04-26 | 2017-11-01 | Deutsche Telekom AG | Accessing a log file |
| CN109218009A (en) * | 2017-06-30 | 2019-01-15 | 武汉斗鱼网络科技有限公司 | It is a kind of to improve the method for device id safety, client and server |
| CN109547205A (en) * | 2017-09-22 | 2019-03-29 | 中国电信股份有限公司 | Authentication method and device, internet-of-things terminal |
| CN107579999A (en) * | 2017-10-17 | 2018-01-12 | 山东渔翁信息技术股份有限公司 | Authentication method, device and the network equipment of data source equipment |
| CN107682160A (en) * | 2017-10-31 | 2018-02-09 | 美的智慧家居科技有限公司 | The authentication method and device of a kind of production equipment, electronic equipment |
| CN108701201A (en) * | 2018-04-08 | 2018-10-23 | 深圳大学 | A kind of access control method of mobile terminal, device, terminal and storage medium |
| WO2019195957A1 (en) * | 2018-04-08 | 2019-10-17 | 深圳大学 | Mobile terminal access control method, device, terminal and storage medium |
| CN109189333A (en) * | 2018-08-15 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of method, apparatus and system of hard disk adaptation |
| CN110351089A (en) * | 2019-05-23 | 2019-10-18 | 西安电子科技大学 | A kind of data signature authentication method and device |
| CN110555293A (en) * | 2019-09-10 | 2019-12-10 | 百度在线网络技术(北京)有限公司 | Method, apparatus, electronic device and computer readable medium for protecting data |
Non-Patent Citations (2)
| Title |
|---|
| 王艳娜.安全管理系统中软件保护关键技术研究.中国优秀硕士学位论文全文数据库.2012,(第08期),全文. * |
| 许照慧.基于CPK的网络终端软件管理系统的研究与实现.中国优秀硕士学位论文全文数据库.2011,(第11期),全文. * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111680334A (en) | 2020-09-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9092230B2 (en) | Configuration of componentized software applications | |
| JP2010541070A (en) | Creating and deploying scalable distributed applications | |
| CN111541753A (en) | Distributed storage system, method, computer device and medium for block chain data | |
| CN111158767B (en) | BMC-based server secure startup method and device | |
| CN106528194A (en) | Network switch and method for updating device using network switch | |
| US20190327315A1 (en) | Declarative security management plugins | |
| CN110058867B (en) | Application image packaging, installation method, computer device, and storage medium | |
| CH716656A2 (en) | System and method of generating and archiving metadata specific to computer forensics. | |
| CN111680334B (en) | Disk security access method, device, equipment and medium | |
| AU2017370317A1 (en) | Method of detecting transaction system error, device, storage medium, and computer equipment | |
| WO2020181696A1 (en) | Network bandwidth evaluation method, device and system, and storage medium | |
| CN110909000B (en) | A data processing method, system, device and computer-readable storage medium | |
| CN110879701B (en) | Workflow visualization configuration method, server, system and medium | |
| JP2019003275A (en) | Confirmation system, controller and confirmation method | |
| CN110008758B (en) | ID obtaining method and device, electronic equipment and storage medium | |
| CN118075022A (en) | Applet login method and device, electronic equipment and storage medium | |
| JP2007047884A (en) | Information processing system | |
| CN114154153A (en) | Malicious code detection method and device, electronic equipment and storage medium | |
| CN114036068B (en) | Update detection method, device, equipment and storage medium based on privacy security | |
| CN115964721A (en) | Program verification method and electronic equipment | |
| WO2026045439A1 (en) | Firmware upgrade method, computer program product, electronic device and medium | |
| CN111783119B (en) | Form data security control method, form data security control device, electronic equipment and storage medium | |
| CN111224826B (en) | Configuration update method, device, system and medium based on distributed system | |
| US11321156B1 (en) | System for updating resources independently from source code | |
| CN109739857B (en) | Data distributed writing method, device, terminal and storage medium under high concurrency |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
