DOCUMENTATION CENTER SEARCH
Mathematica
>
File Operations
>
Built-in
Mathematica
Symbol
FileByteCount
FileDate
Hash
BinaryReadList
FileFormat
See Also »
|
Compression and Archive Formats
Cryptographic Number Theory
External Operations
File Operations
Files
New in 6.0: System Interfaces & Deployment
More About »
FileHash
FileHash
["
file
"]
gives an integer hash code for the contents of the specified file.
FileHash
["
file
", "
type
"]
gives an integer hash of the specified type.
MORE INFORMATION
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
EXAMPLES
CLOSE ALL
Basic Examples
(2)
The fingerprint of a file:
In[1]:=
Out[1]=
The
"SHA512"
hash code of a file:
In[1]:=
Out[1]=
SEE ALSO
FileByteCount
FileDate
Hash
BinaryReadList
FileFormat
MORE ABOUT
Compression and Archive Formats
Cryptographic Number Theory
External Operations
File Operations
Files
New in 6.0: System Interfaces & Deployment
New in 6
© 2008 Wolfram Research, Inc.