Does NTFS store the hash or CRC32 of every inode/file, how to access it?

2.3k Views Asked by At

I know how to read a file, pass these bytes to a hashing algorithm such as MD5SUM, SHA256 or CRC32, and get the hash.

Here I'm asking something slightly different:

Each time we write/modify a file on a NTFS partition, does it re-compute a hash or CRC32 and store this information in the NTFS metadata / FAT / MFT (Master File Table) (I don't remember the exact name)?

Note: the important thing is that I just want to read the stored hash/CRC stored in the filesystem (i.e. read a few bytes, should be a few milliseconds maximum), and not recompute the hash (that would take many seconds for a 10 GB file).


If so, how to access this CRC or hash for a specific file, using Python? Is there something like:

import ntfsutil
ntfsutil.getCRC('d:/big50GBfile.dat')  # done in < 10 ms
0

There are 0 best solutions below