如何保存Gmail的密码?
在我的一个开源应用程序中,我必须使用 Gmail Atom feed。
现在,我正在使用 AES 加密 Gmail 密码并存储它。 是系统的 MAC 地址以及一些硬编码字符串。)
(关键 这里受到高度损害。如果任何人都可以访问该机器(因此 MAC 地址)和我的源代码(它是开源的),那么他/她就可以获得 Gmail 密码。
因此,我强烈建议用户创建一个新的 Gmail 帐户,仅用于此软件的目的。
有没有更好的方法来存储密码?
我同意你们所有人的观点,存储密码不是一个好主意。
实际上,我的应用程序将在一段时间内监视 Gmail 帐户的邮件,因此,如果我不保存密码,那么每次程序启动时我都必须要求用户输入密码。该应用程序的想法是,用户必须输入密码一次,我的应用程序将通知所有新邮件。经用户同意,该应用程序还将从 Windows 启动。
所以,我必须存储密码。
有办法吗?
In one of my open source applications, I have to work with Gmail Atom feeds.
Right now, I am using AES to encrypt the Gmail password and store it. (The key is the MAC address of the system along with some hard-coded string.)
The security is highly compromised here. If anyone has access to the machine (thus the MAC address) and my source code (it's open source), then he/she can get the Gmail password.
Thus, I strongly suggest users to create a new Gmail account, only for this software's purpose.
Is there a better mean of storing the password?
I agree with all of you that it's not a very good idea to store the password.
Actually my application will monitor the Gmail account for mails over a period of time, so if I don't save the password then I'll have to ask the user to enter the password every time the program starts. The idea of the application is that the user has to enter the password once and my application will notify about all new mails. The application will also, with the user's consent start with windows.
So, I have to store the password.
Is there a way?
(I am using Visual Basic 2008 Express Edition.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确实需要在 Windows 应用程序中存储个人信息,请尝试 数据保护 API - 它使用绑定到用户帐户和/或其密码的密钥来加密您的数据。
If you absolutely need to store personal information in a Windows application, try the Data Protection API - it encrypts your data using a key that is bound to the user account and / or its password.