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 cryptographically secure random number generator for APP_SALT whe… #1944

Merged
merged 2 commits into from Mar 15, 2020

Conversation

plinss
Copy link
Contributor

@plinss plinss commented Nov 20, 2019

This uses the built-in random_bytes if available, falling back to openssl_random_pseudo_bytes, and finally falling back to the existing algorithm to generate the APP_SALT. When availalable, either of the two functions will generate a salt that is significantly more secure than the existing time based algorithm.

Fixes part of #1635

@RainLoop RainLoop merged commit 538312e into RainLoop:master Mar 15, 2020
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.

None yet

2 participants