Purpose: | Display a hash value for the specified file(s) |
Format: | HASH [/[range] /A:xxx /E /L /S /CKSUM /CRC32 /MD5 /SHA1 /SHA256 /SHA384 /SHA512] filename ... |
File Selection
Supports extended wildcards, ranges, multiple file names, and include lists.
Usage:
The HASH command generates a file's hash value using the specified algorithm. The hash value is a unique value corresponding to the content of a file. If two files have the same hash value and they're using SHA256, SHA384, or SHA512, then they have the same content (regardless of their file names or locations).
HASH will default to SHA256.
Example:
Return a SHA256 hash (in lower case) for the file TCMD.EXE:
hash /sha256 /L tcmd.exe
Option:
/A: | Select only those files that have the specified attribute(s) set. See Attribute Switches for information on the attributes which can follow /A:. Do not use /A: with @file lists. See @file lists for details. You can specify /A:= to display a dialog to help you set individual attributes. |
/CKSUM | A Linux cksum-compatible CRC32 10-digit decimal number. CKSUM is not considered secure or unique. |
/CRC32 | A CRC-32 hash value is an 8-digit hexadecimal number. CRC-32 is not considered secure or unique. |