---
title: kSecEncryptionMode
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecencryptionmode
---

# kSecEncryptionMode

The encryption mode.

## Declaration

```swift
let kSecEncryptionMode: CFString
```

## Discussion

Discussion If you do not supply this key, an appropriate value will be supplied for you. See Encryption Modes for a list of possible values.
