保护Flutter应用程序中的秘密免受反向工程的影响
我开始在现有的扑动应用程序上开发,并看到他们使用了常规文件来保留API和秘密。当然,这是在.gitignore文件中,但是我想知道当应用程序捆绑和发布时会发生什么。如果有人对应用程序进行了反向工程,那么这些文件是否可见?
我正在考虑使用.env文件,并且此库 flutter_env package 而不是。这是一个更好的解决方案,还是如果应用程序进行了逆转,则全部相同?
I started developing on an existing flutter application and see that they have used regular .dart files to keep the api and secrets. This is of course in the .gitignore file, but I was wondering what will happen when the application is bundled and released. If somebody does reverse engineer the application, wouldn't those files be visible then?
I was thinking of using .env file and this library flutter_env package instead. Will this be a better solution or is it all the same if the application is reverse engineered?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使它变得轻松或更难,以获取客户中的事物。但总的来说,期望在客户端代码或客户端设备上存储的所有内容迟早会遭到损害。
因此,如果客户的用户不知道该秘密,请不要将其保存在客户端。根本。
Yes, you can make it dead easy, or a little harder, to get to the things in the client. But generally, expect everything stored in client code or on the client device to be compromised sooner or later.
So if said secret should not be known to the client's user, don't save it on the client. At all.