unity (c#) 和 php 密码处理

unity (c#) and php password handling

我有一个网站,用户可以在其中创建帐户,密码使用 SHA256 进行哈希处理,所有信息都存储在数据库中。

我有一个用 unity3d 制作的游戏,玩家必须登录。

我使用 WWW class 访问我网站的登录页面并从中获取信息(当然不能直接访问数据库)。但我必须将用户名和密码作为 POST 值传递...

现在我有两个问题:

看看这个 link here:

If you're a web developer, you've probably had to make a user account system. The most important aspect of a user account system is how user passwords are protected. User account databases are hacked frequently, so you absolutely must do something to protect your users' passwords if your website is ever breached. The best way to protect passwords is to employ salted password hashing. This page will explain why it's done the way it is.

它将向您介绍如何在 php 中安全地发送、存储和使用密码的基础知识,甚至还提供经过测试的源代码供您使用。 不要尝试想出你自己的自制解决方案,如果你想让你的登录安全,请使用这个资源并确保你理解它。