Skip to content

giofid/Encrypted-Core-Data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encrypted Core Data

Proof of Concept for attribute-level, on-the-fly, passive encryption with Core Data.

  • Encrypts object attributes with AES256
  • Uses CommonCrypto for Encryption/Decryption
  • All encryption is done passively (without any extra method calls)
  • Once files are added, encryption can be set up on an attribute in the XCode GUI
  • No Cryptography knowledge needed to use in projects

The project uses NSValueTransformer subclasses to encrypt entity attributes before they are saved into the Core Data sqlite database. The attributes are decrypted automatically when the object is fetched back. You can manipulate the Core Data entities normally, as the encryption will be done behind the scenes.

Installation

Add the following folders to your project
  • Crypto
  • Random Data
Set the following options on your Entity attributes
  • Set Attribute Type to Transformable
  • Set Name to NSStringEncryptionTransformer

License

MIT

About

Field-Level AES256 Encryption for Core Data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 96.3%
  • Ruby 3.7%