当我用Md5哈希文件时,哈希是什么? [英] when I hash a file with Md5 what is hashed?

查看:88
本文介绍了当我用Md5哈希文件时,哈希是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅仅是散列的文件内容吗?有什么方法可以将文件名和/或元数据(例如创建日期)包含在哈希过程中?

is it just the file contents that get hashed? Is there any way to include the file name and or metadata such as creation date into the hashing process?

推荐答案

通常,所有文件哈希均仅加密文件的二进制内容.

In general, all the file hashers encrypts only the binary content of the file.

您可以通过以下过程证明这一点:

You can prove this with the following process:

  1. 将md5算法应用于文件
  2. 将此文件复制到其他目录并更改其名称.
  3. 将md5算法应用于副本.
  4. 比较两个结果.他们是平等的!

这篇关于当我用Md5哈希文件时,哈希是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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