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.
- Crypto
- Random Data
- Set
Attribute Type
toTransformable
- Set
Name
toNSStringEncryptionTransformer
MIT