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.




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.




Return a SHA256 hash (in lower case) for the file TCMD.EXE:


hash /sha256 /L tcmd.exe




/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.


/EIgnore errors (i.e., file not found)


/LDisplay hash in lower case


/SHash matching files in the current directory and subdirectories


/CKSUMA Linux cksum-compatible CRC32 10-digit decimal number. CKSUM is not considered secure or unique.


/CRC32A CRC-32 hash value is an 8-digit hexadecimal number. CRC-32 is not considered secure or unique.


/MD5An MD-5 hash value is a 32-digit hexadecimal number. MD-5 is not considered secure.


/SHA1A SHA-1 hash value is a 40-digit hexadecimal number. SHA-1 is no longer considered secure.


/SHA256A SHA-256 hash value is a 64-digit hexadecimal number


/SHA384A SHA-384 hash value is a 96-digit hexadecimal number


/SHA512A SHA-512 hash value is a 128-digit hexadecimal number