Parse Local Database如何存储其数据? [英] How does the Parse Local Database store its data?

查看:69
本文介绍了Parse Local Database如何存储其数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否使用核心数据?

数据是否以任何方式加密?有没有办法让用户可以轻易地恶意修改它?

Is the data encrypted in any way? Is there a way a user could maliciously modify it easily?

我一直试图寻找这个答案,因为LDB是为iOS宣布的,并且没有找到任何关于这不仅仅是'它就像我们的Android实现'。如果这些信息以明文形式存储,我就无法在其中存储敏感信息,这就是我想知道的原因。

I have been trying to look for this answer since LDB was announced for iOS, and have not found any information regarding this other than 'it is just like our android implementation'. If this information is stored in plaintext I cannot store sensitive information in it, which is why I would like to know.

推荐答案

我我刚刚创建了一个使用本地数据库的应用程序,这就是我发现的内容。

I've just created an app that uses the local database, and here's what I've found.

内部< app sandbox目录> / Library / Private Documents / Parse 有一个名为 ParseOfflineStore 的文件。这是一个sqlite数据库。内部有2个相关表( ParseObjects 依赖项),固定对象存储在中ParseObjects

Inside <app sandbox directory>/Library/Private Documents/Parse there is a file called ParseOfflineStore. This is a sqlite database. There are 2 relevant tables inside (ParseObjects and Dependencies), and pinned objects are stored inside ParseObjects.

回答你的问题:

1)不,它确实如此不使用CoreData,但它是sqlite(与CoreData相同的db后备存储)。

1) No, it does not use CoreData, but it is sqlite (the same db backing store as CoreData).

2)不,它没有加密。它是明确的,存储在 ParseObjects 表中,在 json 列中作为明文json。

2) No, it is not encrypted. It's in the clear, stored in the ParseObjects table, in the json column as cleartext json.

任何能够将iExplorer连接到应用程序以下载,更改和上传本地数据库的人都是相对微不足道的。但是,如果你有一个用户可以做到这一点,他们很可能会用Charles代理你的应用程序; - )

It would be relatively trivial for anyone who can hook up iExplorer to the app to download, change, and upload the local database. However, if you have a user who can do that, it's likely they could proxy your app with Charles anyway ;-)

这篇关于Parse Local Database如何存储其数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆