Skip to content

Conversation

@rebane2001
Copy link
Contributor

See #599 for the issue.

This PR generates the SECRET_SALT with urandom instead of bytes(randint(0, 1000000)), making the SALT realistically unguessable, and also improving the performance a bit.

I'm using urandom instead of secrets because it'll keep the library compatible with its current supported Python versions (3.5+).

@nicholasserra
Copy link
Collaborator

Thanks!

@nicholasserra nicholasserra merged commit 6ea287c into trentm:master Sep 23, 2024
15 checks passed
@rebane2001 rebane2001 deleted the patch-1 branch September 24, 2024 07:05
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

Successfully merging this pull request may close these issues.

2 participants