---
title: kSecKeyPrivate
framework: security
role: symbol
role_heading: Global Variable
path: security/kseckeyprivate
---

# kSecKeyPrivate

Type uint32; value is nonzero. This key is protected by a user login, a password, or both.

## Declaration

```swift
var kSecKeyPrivate: Int32 { get }
```
