Feat/hash way#3389
Open
qixing-jk wants to merge 4 commits into
Open
Conversation
因为实现机制的缘故,hash只考虑密码,不再加上path。但也可能会存在误判问题,但应该不会有人设置刚好符合符合特征的密码,所以不增设相关标志位等额外机制 Closes notionnext-org#2620
|
@qixing-jk is attempting to deploy a commit to the tangly1024's projects Team on Vercel. A member of the Team first needs to authorize it. |
Collaborator
|
已在当前 main 上按原 PR 意图重做实现(避免直接合并过期分支),并单独开 PR:
要点:文章锁摘要改为 SHA256(明文);校验时 兼容旧版 md5(slug+明文);修复 localStorage 键与 query/hash 不一致导致的自动解锁失败。主题里 Gravatar 邮箱仍用 md5,未随文章锁改为 SHA256(避免破坏头像服务)。 原分支若无需保留,可在审阅 #4022 后关闭本 PR(#3389)。感谢 @qixing-jk 的贡献与思路。 |
tangly1024
added a commit
that referenced
this pull request
May 9, 2026
- Notion 明文密码同步为 SHA256(hex);支持字段内直接填 64 位 SHA256;保留 32 位 md5 串视为旧摘要\n- 前台校验:同时尝试 SHA256(明文) 与 md5(slug+明文)\n- localStorage 键改为 pathname only,与 getPasswordQuery 一致\n- 新增依赖 js-sha256;Gravatar 等仍使用 md5(email),未改动 Co-authored-by: t <dev@x3game.org> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
已知问题
具体改动
测试确认