N
N
NONAME82018-05-26 18:46:55
iOS
NONAME8, 2018-05-26 18:46:55

How to hide data in CoreData?

I know that if you connect an iPhone with JailBreak to iFunBox, then you can make changes to a variety of files, for example, to .sqlite. And I want these files not to be displayed when opening the file system.
I found a tutorial, but it's in Objective-C
https://www.youtube.com/watch?v=yavvdysvWcs
How is this done in Swift?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Globak, 2018-05-27
@maximglobak

One of the options is to make a layer for communicating with your database and encrypt the data inside it, and when you request the data, you decrypt it back.
You can pay attention to the Realm database, which can do this out of the box or almost out of the box.

S
Statusgman, 2018-05-31
@Statusgman

Have a look at the Encrypted Core Data SQLite Store .
This is a custom implementation of the persistent store, the database file contains encrypted data when it is used.
This library has performance issues with certain queries, you should take this into account, for example, when using NSFetchedResultsController with a large amount of data broken into sections.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question