mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
There isn't a specific problem with using MD5 here, but there's just no reason to use a hash function with serious known flaws. We have to truncate to 30 characters for Django's username field. Using Base32 instead of hex gives us twice as many bits. This reduces the chances of a collision (which are pretty low already) and also provides resistance against a targetted attack based on some weakness in SHA256. (There are better ways to reduce a hash to fewer bits but let's not get too fancy.) We still need to use MD5 for Gravatar because that's their protocol. (imported from commit ffe6955312f580676409d4f9c4ed2d7f3d0df62c) |
||
|---|---|---|
| humbug | ||
| servers | ||
| templates | ||
| tools | ||
| zephyr | ||
| .gitignore | ||
| manage.py | ||