硬盘驱动器哈希? [英] Hard disk drive hashing ?

查看:138
本文介绍了硬盘驱动器哈希?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

寻找可以为项目散列整个物理硬盘的代码



克隆时需要哈希磁盘驱动器/固态硬盘&成像



我尝试了什么:



尝试过如何搜索为物理驱动器实现散列但没有找到任何具体的东西。

Looking for some code which can hash an entire physical hard disk for a project

Need to Hash Disk Drive/Solid State Drives while Cloning & Imaging

What I have tried:

Have tried searching over how to implement hashing for physical drive but didn't find anything concrete.

推荐答案

散列工作在字节流上,或类似的 - 它不关心你从哪里得到它来自的数据。因此,只要您可以读取可用空间,就可以将其包含在哈希值中。我不会,出于同样的原因,大多数备份系统都没有 - 这是技术上不相关的数据,占用了宝贵的备份空间,这是一个潜在的安全风险。



无论您使用散列算法提供的任何字节都将用于生成散列码,因此您可以使用任何您认为合适的散列算法。我建议使用MD5,尽管它被破坏,因为没有尝试反转代码,这不是一个安全应用程序 - 它比SHA-512或类似的快得多,并将提供类似的确认。



快速谷歌会在MD5和SHA哈希上找到大量信息。
Hashing works on a byte stream, or similar - it doesn't care where you get it's data from. So as long as you can read your free space you can include it in the hash value. I wouldn't though, for the same reasons that most backup systems don't - it's technically irrelevant data which takes up valuable backup space, was well as being a potential security risk.

Whatever bytes you provide to the hashing algorithm will be used to generate the hash code, so you can use any hashing algorithm you feel appropriate. I'd suggest MD5 for this, despite it being "broken" since there is no attempt to reverse the code and this isn't a security application - it's a lot faster than SHA-512 or similar and will provide a similar level of "confirmation".

A quick google will find you loads of info on MD5 and SHA hashes.


这篇关于硬盘驱动器哈希?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆