Hashes resource type

The Hashes resource groups available hashes into a single structure for an item.

Note: Not all services provide a value for all hash properties listed.

JSON representation

Here is a JSON representation of the resource.

  "crc32Hash": "string (hex)",
  "sha1Hash": "string (hex)",
  "quickXorHash": "string (base64)"


Property Type Description
sha1Hash String (Hex string). SHA1 hash for the contents of the file (if available). Read-only.
crc32Hash String (Hex string). The CRC32 value of the file in little endian (if available). Read-only.
quickXorHash String (Base64 string). A proprietary hash of the file that can be used to determine if the contents of the file have changed (if available). Read-only.

Note: In some cases hash values may not be available. If this is the case, the hash values on an item will be updated after the item is downloaded.


In OneDrive for Business and SharePoint Server 2016, sha1Hash and crc32Hash are not available.

In OneDrive Personal, quickXorHash is not available.

To calculate quickXorHash for a file, refer to the QuickXorHash snippet.

For more information about the facets on a DriveItem, see DriveItem.