---
title: noFileProtection
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsdata/writingoptions/nofileprotection
---

# noFileProtection

An option to not encrypt the file when writing it out.

## Declaration

```swift
static var noFileProtection: NSData.WritingOptions { get }
```

## Discussion

Discussion In this case, the system doesn’t store the file in an encrypted format and your app can access this file at boot time and while the device is unlocked.

## See Also

### Constants

- [atomic](foundation/nsdata/writingoptions/atomic.md)
- [withoutOverwriting](foundation/nsdata/writingoptions/withoutoverwriting.md)
- [completeFileProtection](foundation/nsdata/writingoptions/completefileprotection.md)
- [completeFileProtectionUnlessOpen](foundation/nsdata/writingoptions/completefileprotectionunlessopen.md)
- [completeFileProtectionUntilFirstUserAuthentication](foundation/nsdata/writingoptions/completefileprotectionuntilfirstuserauthentication.md)
- [fileProtectionMask](foundation/nsdata/writingoptions/fileprotectionmask.md)
- [completeFileProtectionWhenUserInactive](foundation/nsdata/writingoptions/completefileprotectionwhenuserinactive.md)
