如何在 firebase 实时数据上保护用户数据

How to secure data of user on firebase realtime data

我正在学习 firebase for react native 来制作一个简单的笔记应用程序,但从用户的角度来看,我不确定如何在 firebase 上实时安全地存储数据,这意味着开发者(我)可以读取数据,例如 firebase 上已有的注释。现在。我正在使用 firebase 来保存数据,它看起来像这样

{
    "id":"some note Id",
    "header":"some note Header",
    "note": "This note is not secure at all",
    "date":"some date"
}

那么我怎样才能使这些数据安全,然后我(或开发人员)不知道用户在写什么?

听起来您正在寻找一种端到端加密用户数据的方法。虽然这不是 Firebase 本身内置的,但您绝对可以在其之上添加一层。

我建议阅读其中一些以前的 questions on end-to-end encryption in Firebase, and there also seem some promising results in this search on the topic