1

I am working on a small OS X application that uses core data (sqllite) to store the data.

I am trying to encrypt the data that will be entered by the user. All properties in the entities are transformable.

I have found this post here on stackoverflow.

You can encrypt individual properties in your Core Data model entities by making them transformable properties, then creating an NSValueTransformer subclass which will encrypt and decrypt the data for that property.

Unlucky for me, the author of the answer, @Brad Larson, didn't provide an simple example of how this can be done.

Can anyone post an simple example - codesnippet of how I can encrypt the user entry and store it in the database encrypted?

Community
  • 1
  • 1
user2417624
  • 653
  • 10
  • 32
  • you can check out this url https://github.com/DavidBenko/Encrypted-Core-Data - it's built for iOS but you can tinker with it. – StefanS Dec 16 '15 at 17:22
  • tip : next time you need to find something regarding a method / specific keyword, start searching on github.com / other opensource code hosting sites, you'll find plenty of implementations there to adapt. – StefanS Dec 16 '15 at 17:23

0 Answers0