Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of secrets module instead of random module #22

Open
sanket1729 opened this issue Nov 10, 2018 · 0 comments
Open

Use of secrets module instead of random module #22

sanket1729 opened this issue Nov 10, 2018 · 0 comments

Comments

@sanket1729
Copy link

The use of random is not recommended for cryptographic or security purposes.

Warning The pseudo-random generators of this module should not be used for security purposes. For security or cryptographic uses, see the secrets module.

Reference: https://docs.python.org/3/library/random.html (Red Box warning)

If the project wants to use random for legacy reasons, it should atleast be mentioned that it is insecure. If this is mentioned elsewhere in the book, please close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant