如何为React Native创建代理服务器/如何将密钥存储在React Native中?

发布于 2025-02-05 01:52:05 字数 62 浏览 2 评论 0原文

谁能帮助我将秘密钥匙存储在React Native中?我读到它具有反向工程的威胁,解决方案是创建代理?怎么办?

Can anyone help me with storing secret keys in react native? I have read that it has threat from reverse engineering and the solution was to create proxy ? how can that be done?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

电影里的梦 2025-02-12 01:52:05

对于Secret Keys,如果将其存储在Asyncstorage中,则它是有问题的。但是,在Android和iOS中,您还可以安全地存储它。

对于Android:

您可以将其存储在有担保的共享首选项中。这样,敏感数据就可以保存在客户端本身。 rn- corn-安全共享的偏好
您可以检查此文档ISLEF。它很好。

对于iOS:

您可以将其存储在钥匙扣服务中。 rn-keychain-keychain 。您可以找到一些有关如何将敏感数据存储在钥匙扣中的示例。我相信有一个lib react-native-

keychain如果有任何疑问,请知道

For secret keys its a problematic if you store it in AsyncStorage. But there are other ways in both android and ios where you can store it safely.

For android:

You can store it in secured shared preferences. in that way sensitive data can be kept at the client side itself. RN- secured shared preferences
You can check this document itslef. its pretty good.

FOr Ios:

You can store it in keychain services. RN - keychain. you can find some examples on how to store sensitive data in keychain. there's a lib react-native-keychain for that i believe rn-keychain

Do letme know in case of any doubts

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文