question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use crypto-secure random module

See original GitHub issue

Feature 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Aug 15, 2019

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.

0reactions
lk-geimfaricommented, Aug 15, 2019

I’ll try to work on some issue. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found