# 在已有大量用户注册后添加SSO -- 如何迁移他们？

**URL:** <https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240>\
**Category:** SSO\
**Created:** [2022 年7 月 7 日 19:53 UTC](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240 "2022-07-07T19:53:40Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

作者： ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
发布日期： [2022 年9 月 5 日 05:57 UTC](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240/13 "2022-09-05T05:57:00Z")

</div>

这是一个[内置函数](https://www.php.net/manual/en/function.hash-pbkdf2.php)。

```plaintext
$hash = hash_pbkdf2('sha256', 'YourPassword', 'YourSalt', 64000, 64, false);

```

> [@EGreg](#):
>
> 如果其中一个字符最终为 0，因为“a”与“a”进行了异或运算——那个字符串会怎么样？字符串不是以 null 结尾的吗？

通常，哈希算法在二进制数据上运行，并且结果在输出时经过十六进制或 Base64 编码。所以这不是问题。

---

_[View the full topic](https://meta.discourse.org/t/adding-sso-after-many-users-already-signed-up-how-to-migrate-them/232240)._
