<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecCodeInfoUnique",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecCodeInfoUnique"
  },
  "title" : "kSecCodeInfoUnique"
}
-->

# kSecCodeInfoUnique

A key whose value is a binary number that uniquely identifies static code.

```
let kSecCodeInfoUnique: CFString
```

## Discussion

The value is a <doc://com.apple.documentation/documentation/CoreFoundation/CFData> object. This identifier can be used to recognize this specific code in the future. This identifier is tied to the current version of the code, unlike the [`kSecCodeInfoIdentifier`](/documentation/Security/kSecCodeInfoIdentifier) identifier, which remains stable across developer-approved updates. The algorithm used for the [`kSecCodeInfoUnique`](/documentation/Security/kSecCodeInfoUnique) identifier may change over time. However, the identifier remains stable for existing, signed code.

This is generic information returned regardless of which [Code Signing Information Flags](/documentation/Security/code-signing-information-flags) you pass to the [`SecCodeCopySigningInformation(_:_:_:)`](/documentation/Security/SecCodeCopySigningInformation(_:_:_:)) function.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)