Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)"
}
Properties
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. |
Remarks
Note quickXorHash is the only value that is guaranteed to be available for both OneDrive for Business and OneDriver Personal.
To calculate quickXorHash for a file, refer to the QuickXorHash snippet.
For more information about the facets on a DriveItem, see DriveItem.