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

# kSecEncodeLineLengthAttribute

The length of encoded Base32 or Base64 lines.

```
let kSecEncodeLineLengthAttribute: CFString
```

## Discussion

Some systems can’t handle excessively long lines, or may be defined to limit lines to specific lengths (for example RFC1421 - 64, and RFC2045 - 76).

The corresponding value may be set to any positive value using a <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber> to limit to a specific length (values smaller then X for Base32 or Y for Base64 are assume to be X or Y), or to zero for no specific limit. Either of the string constants [`kSecLineLength64`](/documentation/Security/kSecLineLength64) (RFC1421), or [`kSecLineLength76`](/documentation/Security/kSecLineLength76) (RFC2045) may be used to set line lengths of 64 or 76 bytes.

---

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)