更新时间:2023-02-03 08:33:42
我不认为以任何方式掩盖密码将会解决你的问题。如果用户必须将密码发送到服务器,并且密码位于该框上,则根据定义,运行应用程序的用户必须具有对该密码的访问权限并能够对其进行解密。否则,您将无法对其进行身份验证。这意味着,无论您在何处存储,都将始终有一种方式让用户获取密码。
I don't think that encyrpting the password by any means is going to solve your problem. If the user has to send the password to server, and the password is located on the box, then by definition the user running the application must have access to the password and be able to decrypt it. Otherwise, you wouldn't be able to authenticate them. This means that there will always be a way for the user to get at the password, regardless of where you store it.
我可以想到可能有两种方式可以工作,但我恐怕他们不完全是你要找的。 p>
I can think of 2 ways that could possibly work, but I'm afraid they're not exactly what you're looking for.