title: CoreData & Data Protection
body: <p>So I am working on a app which stores user information with <code>CoreData</code> framework locally. The information can be sensitive, so I am thinking how to protect the information stored to the data base. In Xcode dashboard, under the capabilities tab, I found this Data Protection switch:</p>
  
  <p><a href="https://i.stack.imgur.com/ONNLJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ONNLJ.png" alt=""></a></p>
  
  <p>Anyone knows how this works? If I turn on the switch will Xcode encode my <code>CoreData</code> files automatically? Or how to implement this protection on my <code>CoreData</code> files?
  Appreciate your time and patient. Thank you!</p>