How secure is data stored using chrome.storage.local.set

青春壹個敷衍的年華 提交于 2020-01-24 20:25:07

问题


I'm storing options data in a chrome extension using chrome.storage.local.set

How secure is that data?

Can it be read easily by anyone who has access to the file it is stored in?


回答1:


It is not secure, and per the official chrome.storage docs is stored unencrypted in the user's profile folder under their Chrome data directory. You will need to use some additional encryption if you are storing more sensitive data using these APIs.

They are stored in a LevelDB database in the following location:

C:\Users\<User>\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\<Extension id>



回答2:


  1. It's saved in the following path (For other OS, the path is similar), can be easily accessed.

    C:\Users\<User>\AppData\Local\Google\Chrome\User Data\Default\Local Extension Settings\<Extension id>
    
  2. Basically, since the data is saved in local machine, you can't trust it as secure, since there're tons of ways to get the data. For example, other extension/scripts may overrite chrome.storage.local.set and they may get the data first, like what Storage Area Explorer does.



来源:https://stackoverflow.com/questions/41039239/how-secure-is-data-stored-using-chrome-storage-local-set

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!