admin管理员组文章数量:1320780
I'm implementing a Chrome extension, which needs to access a 3rd party API endpoint using a token.
How do I store a token securely in the Chrome extension, assuming other Chrome extension scripts can access the page's localStorage & cookie?
I'm implementing a Chrome extension, which needs to access a 3rd party API endpoint using a token.
How do I store a token securely in the Chrome extension, assuming other Chrome extension scripts can access the page's localStorage & cookie?
Share Improve this question edited Mar 17, 2014 at 18:18 Keven Wang asked Mar 7, 2014 at 1:11 Keven WangKeven Wang 1,2781 gold badge19 silver badges30 bronze badges2 Answers
Reset to default 6Other scripts cannot access your storage. But a user can always debug your script and see it. You wont be able to encrypt it. At most you can obfuscate it.
I too don't see how it could be done. The only ways seem to be either calling your server and have server do the request that involves using the API key or obfuscate it for example by converting to base64 string in code but even then it'll be visible in developer tools network tab
本文标签: javascriptSecurely store tokenpassword in Chrome extensionStack Overflow
版权声明:本文标题:javascript - Securely store tokenpassword in Chrome extension - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742090219a2420220.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论