feat(python): use secrets module
评估
调研方向
The issue names os.urandom(n) and secrets.token_bytes(n) but gives no file or test path. Search the Python code for os.urandom and check where it generates secure random bytes. Replace the usage with the secrets API and run the relevant tests to confirm behavior is preserved.
由索引模型根据 Issue 内容生成。
描述
os.urandom(n) is low-level to generate secure random bytes. For modern usage use the secrets module by secrets.token_bytes(n) which is more explicit way.
- 主要语言
- JavaScript
- 星标
- 36
- 派生
- 26
- 平均合并
- 15 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
web-push-libs/encrypted-content-encoding 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 42/100
-
`encrypt_data.json` file failing to pass http_ece/tests/test_ece.py::TestNode::test_(en|de)crypt未关闭
难度 3/5 1-2 天 新手友好度 38/100
-
难度 5/5 一周以上 新手友好度 25/100
web-push-libs/encrypted-content-encoding#80 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 32/100
查看 web-push-libs/encrypted-content-encoding 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
react-component/image#541 ·
-
area: html
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
Electron queries reject a major version without a minor part可能已有人在做 @minilan677-netizen 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
browserslist/browserslist#967 ·
-
area: docs domain: technical-writing good first issue type: documentation
难度 2/5 1-3 小时 新手友好度 80/100
Deepak3699/Ai_Mentor#919 ·
维护者通常 2 天内回复