如何为React Native创建代理服务器/如何将密钥存储在React Native中?
谁能帮助我将秘密钥匙存储在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于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