Use crypto-secure random module
See original GitHub issueFeature request
Thesis
I would like to switch from random
module to a secure version of random module: secrets
.
It is available since python3.6
and is cryptographically secure.
It has the same API as regular random
, so the switch should be painless.
Reasoning
Having this feature is a good thing. Some users might generate data that is used in real world apps, so we need to take care of them for this usecase.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
secrets — Generate secure random numbers for managing ...
The secrets module is used for generating cryptographically strong random numbers suitable for managing data such as passwords, account authentication, ...
Read more >Generate Cryptographically Secure Random Numbers in Python
Generate Cryptographically secure random numbers and data using os.urandom(), random.SystemRandom class and Secrets module.
Read more >How can I create a random number that is cryptographically ...
Since you want to generate integers in some specific range, it's a lot easier to use the random.SystemRandom class instead.
Read more >crypto-secure-random-digit - npm
A Cryptographically Secure Pseudo-Random Number Generator for NodeJS. ... Start using crypto-secure-random-digit in your project by running ...
Read more >ottokruse/crypto-secure-random-digit - GitHub
This is a node package for generating cryptographically secure random digits. ... I wrote this module because I wanted something simple without any...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
P.S. If you want to work on some open-source - we have a lot of opened tasks in
wemake-python-styleguide
: https://github.com/wemake-services/wemake-python-styleguide/issues?q=is%3Aissue+is%3Aopen+label%3A"help+wanted" I would appreciate your help.I’ll try to work on some issue. Thanks!