<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SystemConfiguration",
  "identifier" : "/documentation/SystemConfiguration/kSCPropNetIPSecXAuthPasswordEncryption-swift.var",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "System Configuration"
    ],
    "preciseIdentifier" : "c:@kSCPropNetIPSecXAuthPasswordEncryption"
  },
  "title" : "kSCPropNetIPSecXAuthPasswordEncryption"
}
-->

# kSCPropNetIPSecXAuthPasswordEncryption

The IPSec key XAuthPasswordEncryption.

```
let kSCPropNetIPSecXAuthPasswordEncryption: CFString
```

## Discussion

The value of this key is of type <doc://com.apple.documentation/documentation/CoreFoundation/CFString>. This key can accept the following constants:

- [`kSCValNetIPSecXAuthPasswordEncryptionKeychain`](/documentation/SystemConfiguration/kSCValNetIPSecXAuthPasswordEncryptionKeychain-swift.var), which has the value `Keychain`
- [`kSCValNetIPSecXAuthPasswordEncryptionPrompt`](/documentation/SystemConfiguration/kSCValNetIPSecXAuthPasswordEncryptionPrompt-swift.var), which has the value `Prompt`

---

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)