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

# kSecEncryptionMode

The encryption mode.

```
let kSecEncryptionMode: CFString
```

## Discussion

If you do not supply this key, an appropriate value will be supplied for you. See [Encryption Modes](/documentation/Security/transform-attributes#Encryption-Modes) for a list of possible values.

---

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)