You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
generate_secret_key.py is a convenience tool used to generate one-off random values for Django's SECRET_KEY configuration setting. If we were generating millions of keys per second, this might be a concern, but I see no reason to deviate from the current logic. (Additionally, the PR submitted against this would have reduced the key space by a factor of 12^50.)
Issue type: bug report
Python version:
NetBox version:
While the seed is cryptographically secure the random module uses the Mersenne Twister by default which is not secure.
Additionally, the way that
random.seed
works (by taking a hash of the provided value) results in a significantly smaller keyspace than intended.The text was updated successfully, but these errors were encountered: