You can encrypt before storing into indexeddb. That is how I do in my open source library, http://dev.yathit.com/ydn-db/doc/usage/encryption.html One thing to note, encrypted database cannot be query. You can only retrieve with known primary key. You still need to pass encryption key from the server after user login.
2条答案
按热度按时间h7appiyu1#
You can encrypt before storing into indexeddb. That is how I do in my open source library, http://dev.yathit.com/ydn-db/doc/usage/encryption.html
One thing to note, encrypted database cannot be query. You can only retrieve with known primary key.
You still need to pass encryption key from the server after user login.
gwo2fgha2#
除非你的用户在他们的笔记本电脑上使用了全磁盘加密,否则这些文件都是未加密的,你可以考虑使用一些javascript加密技术来加密你存储的数据,密钥来自用户的密码。