|
Posted by Zak on September 13, 2006, 4:57 pm
If you were Registered and logged in, you could reply and use other advanced thread options >> I am running XP.
>>
>> I have a utility which calculates the MD5 hash for individual
>> files.
>>
>> I find that it calculates the same MD5 value even if I change the
>> file's name.
>>
>> (1) Is the name of the file not used in calculating the MD5 value?
>
> That is correct. The hash is computed from the data of hte file.
> The filename is stored in the FAT, or the NTFS equivalent thereof,
> not as part of the file data.
>> (2) Is this just a quirk of my utility?
>
> Nope.
Thanks fo the info. Are there other widely used hashes such as the SHA
hashes that do include the name of the file in their calculation?
|