---
title: kSecAttrIsPermanent
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrispermanent
---

# kSecAttrIsPermanent

A key whose value indicates the item’s permanence.

## Declaration

```swift
let kSecAttrIsPermanent: CFString
```

## Mentioned in

Generating New Cryptographic Keys

## Discussion

Discussion The corresponding value is of type CFBoolean and indicates whether or not this cryptographic key or key pair should be stored in the default keychain at creation time. On key creation, if not explicitly specified, this attribute defaults to kCFBooleanFalse.
