在 Java 桌面应用程序中安全存储数据库密码的位置
我正在研究类似的问题,但没有找到正确的答案,我认为必须有一些安全的解决方案。
我有客户端服务器应用程序。客户端连接到服务器上的中央 MySQL 数据库。我的问题是如何在客户端桌面应用程序上安全存储数据库密码。现在我将其以 crypt 形式存储在 java 属性文件中。但是属性文件是可读的,而且在反编译我的应用程序后,每个人都可以看到我使用哪个 crypt 函数来编码密码,并且可以轻松获取密码。所以我认为没有办法如何在客户端应用程序中安全存储数据库密码,对吗?
解决方案可以是客户端应用程序将与服务器进行一些握手以获取数据库密码,是否有任何规则或模式如何进行此握手?
i was looking over the similarly questions but i didn't find the right answer and i think that there has to be some secure solution.
I have the client- server application. The clients are connecting to the central MySQL database which is on server. My problem is how to secure store database password on client desktop application. For now i am storing it in crypt form in java properties file. But properties files are readable and also after decompiling my application everybody can see which crypt function i use for encoding the password and can easily get the password. So i think that there is no way how to secure store the db password in client application, am I right?
The solution can be that the client application will do some handshake with the server to get the database password, is there any rules or patterns how to do this handshake?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 OAuth 进行授权。
Take a look at OAuth for authorization.