---
title: kSecAttrPublicKeyHash
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrpublickeyhash
---

# kSecAttrPublicKeyHash

A key whose value indicates the item’s public key hash.

## Declaration

```swift
let kSecAttrPublicKeyHash: CFString
```

## Discussion

Discussion The corresponding value is of type CFData and contains the hash of a certificate’s public key. Items of class kSecClassCertificate have this attribute. Read only.
