This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


gives an integer hash code for the contents of the specified file.
FileHash["file", "type"]
gives an integer hash of the specified type.
  • Values generated by FileHash are based on the raw bytes in a file.
  • Possible hash code types include:
"Adler32"Adler 32-bit cyclic redundancy check
"CRC32"32-bit cyclic redundancy check
"MD2"128-bit MD2 code
"MD5"128-bit MD5 code
"SHA"160-bit SHA-1 code
"SHA256"256-bit SHA code
"SHA384"384-bit SHA code
"SHA512"512-bit SHA code
New in 6