Cryptopals Set 4 - Last two tests
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- cryptography, security
调研方向
运行 Cryptopals Set 4 的最后两个测试,并找到 issue 中描述的签名恢复计时比较。检查 sleep 和字节比较的顺序,然后验证测试能够成功完成,且不会在签名的最后一个字节处失败。
由索引模型根据 Issue 内容生成。
描述
Hi @FiloSottile ! Thanks for the cryptopals videos, they're awesome!
I know this is a silly thing, but I just wanted to point it out, because maybe someone wants to run the tests for the last two challenges in the fourth set and they're always failing trying to recover the last bytes of the signature. Since the sleep in the code is before the comparison of the bytes, for the last one, there's no noticeable timing difference between the two possible outcomes, because if the two bytes are different, it just returns false, but if they're the same, the loop ends and it returns true.
I guess you can always compare the fist signatureLen - 1 bytes, and just bruteforce the last one. Or just move the time.Sleep(pause) after the comparison (that's what I did to make the test pass).
Anyway, thanks again!
- 主要语言
- JavaScript
- 星标
- 325
- 派生
- 39
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
FiloSottile/mostly-harmless 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
查看 FiloSottile/mostly-harmless 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
Fei2411/DeepSeek-Bot#634 ·
-
难度 1/5 1-3 小时 新手友好度 77/100
-
blocked enhancement lang:dotnet
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
beginner-friendly category:sarif community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
难度 1/5 1 小时以内 新手友好度 76/100
Berserk-hub150/skillhawk#244 · 1 条评论 ·
维护者通常 8 天内回复
-
enhancement javascript python
难度 2/5 1-3 小时 新手友好度 66/100
jlab-sensing/ENTS-backend#851 ·
维护者通常 2 天内回复