---
title: cdhash
framework: endpointsecurity
role: symbol
role_heading: Instance Property
path: endpointsecurity/es_process_t/cdhash
---

# cdhash

The code directory hash value.

## Declaration

```swift
var cdhash: es_cdhash_t
```

## Discussion

Discussion The code directory hash identifies a specific version of a program. This allows the system to verify that the contents of a binary have not changed since being code-signed.

## See Also

### Inspecting Code Signing Properties

- [codesigning_flags](endpointsecurity/es_process_t/codesigning_flags.md)
- [signing_id](endpointsecurity/es_process_t/signing_id.md)
- [team_id](endpointsecurity/es_process_t/team_id.md)
