feat(python): use secrets module
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 54/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- JavaScript
- Stars
- 36
- Forks
- 26
- Avg merge
- 15m
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web-push-libs/encrypted-content-encoding
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
`encrypt_data.json` file failing to pass http_ece/tests/test_ece.py::TestNode::test_(en|de)cryptOpen
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
web-push-libs/encrypted-content-encoding#80 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
All issues in web-push-libs/encrypted-content-encoding
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
react-component/image#541 ·
-
area: html
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
Electron queries reject a major version without a minor partPossibly taken @minilan677-netizen claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
browserslist/browserslist#967 ·
-
area: docs domain: technical-writing good first issue type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Deepak3699/Ai_Mentor#919 ·
Maintainers usually reply within 2 days