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

[Important] the default random library is **not** pure random #4

Open
bee-san opened this issue Apr 2, 2019 · 0 comments
Open

[Important] the default random library is **not** pure random #4

bee-san opened this issue Apr 2, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@bee-san
Copy link
Member

bee-san commented Apr 2, 2019

Use Secrets:
https://docs.python.org/3/library/secrets.html
Better yet, i don't trust this package. since we're using Linux we can just get the OS to do it for us ?
https://pynative.com/cryptographically-secure-random-data-in-python/

For this file:
https://github.com/exgen-code/ExGen-Client/blob/master/py/saltgen.py
If we use the normal random library we can be hacked easily :)

@bee-san bee-san added the bug Something isn't working label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant