<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeyImportExportFlags/securePassphrase",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecKeyImportExportFlags@kSecKeySecurePassphrase"
  },
  "title" : "securePassphrase"
}
-->

# securePassphrase

A flag that indicates the user should be prompted for a passphrase on import or export.

```
static var securePassphrase: SecKeyImportExportFlags { get }
```

## Discussion

When set, the password for import or export is obtained by user prompt. (A password is sometimes referred to as a passphrase to emphasize the fact that a longer string that includes non-letter characters, such as numbers, punctuation, and spaces, is more secure than a simple word.) Otherwise, you must provide the password in the [`passphrase`](/documentation/Security/SecItemImportExportKeyParameters/passphrase) field of the [`SecItemImportExportKeyParameters`](/documentation/Security/SecItemImportExportKeyParameters) structure. A user-supplied password is preferred, because it avoids having the cleartext password appear in the application’s address space at any time.

---

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)