-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
remove insecure rng providers #122
Conversation
and remove the openssl provider. We now rely exclusively on random_bytes(), as there are no reasons not to. Fix #121
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
we were testing a test class, which didn't make a lot of sense.
I cleaned up the tests, too. The |
This reverts commit f6da6be.
Maybe the last commit was a bit too hasteful. Reverted for now. |
Isn't (or wasn't) it used to test if the 2FA class checked correctly for the |
Yeah, looking at it again, and given that |
I think it's safe to throw it out, since the |
This reverts commit 06220d4.
Done. |
@@ -51,14 +49,11 @@ public function __construct( | |||
/** | |||
* Create a new secret | |||
*/ | |||
public function createSecret(int $bits = 80, bool $requirecryptosecure = true): string | |||
public function createSecret(int $bits = 80): string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mental note to document in the changelog
* master: Exclude useless files from dist archive #103
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore my previous comment. LGTM.
* master: delete files specific to code editors (#120)
this also aligns with other providers
and remove the openssl provider. We now rely exclusively on random_bytes(), as there are no reasons not to. Fix #121