是否有类似于“Windows-MY”的unix密钥存储?在java中?
我有一个项目要求我存储用户 ID 和密码...显然我不想以明文形式存储密码。
在 Windows 计算机上,我可以使用“Windows-MY”密钥库...但该应用程序也可能在非 Windows 计算机(Redhat Linux、Solaris 等)上运行。
非 Windows 操作系统上是否有一个类似于 Windows-MY 的 java 密钥库,它与经过身份验证的用户绑定?
I have a project that requires me to store a user id and password ... obviously I don't want to store the password in clear text.
On windows machines I can use the "Windows-MY" keystore ... but this application will probably be run on non-windows machines as well (Redhat Linux, Solaris, etc).
Is there a java keystore on non-windows OS's that is similar to Windows-MY in that it is tied to a authenticated user?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果有的话,我从来没有听说过(所以它不太可能存在)。您可以尝试使用浏览器密钥库,或者创建自己的密钥库(给予足够的访问权限),但从加密的角度来看,最后一个选项并不直接与用户帐户绑定:
http://mindprod.com/jgloss/keystore.html
对于 Windows,您可能已经发现,您可以使用 SunMSCAPI 提供程序(因为1.6)。
http://www.berthou。 com/us/2007/12/05/ms-capi-and-java-jce-sunmscapi/
您当然也可以使用盐、散列和迭代计数来存储它(如果访问不需要密码的全文)。
If there is, I've never heard of it (so that would make it unlikely that it exists). You could try and use the browser keystore though, or create your own one (given enough access rights), but those last options are not tied directly to the user account, cryptographically speaking:
http://mindprod.com/jgloss/keystore.html
For Windows, as you probably already found out, you can use the SunMSCAPI provider (since 1.6).
http://www.berthou.com/us/2007/12/05/ms-capi-and-java-jce-sunmscapi/
You could of course also store it using a salt, hash and iteration count instead (if access to the full text of the password is not required).