-
Notifications
You must be signed in to change notification settings - Fork 222
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
Add tests for behavior when mcrypt isn't installed #79
Comments
It definitely shouldn't require PHP 7. It falls back to using https://github.com/defuse/password-hashing/blob/master/PasswordStorage.php#L36-L48 If both I'm concerned that you aren't seeing that exception get thrown. Could you double check that that's the case? If the library isn't throwing an exception that's definitely a bug. |
@Torniojaws: Is it still broken for you? |
I got it working with the "random_compat" library I mentioned in my original post. Basically just unzip them to a subdir and then require the "main" php of the library.
|
Glad you got it working! That shouldn't have been necessary. Perhaps |
It would be good to notify that the PHP implementation requires PHP 7, because it needs the
random_bytes
function that is only available in PHP 7 (http://php.net/manual/en/function.random-bytes.php). It can be added to the far more common PHP 5.x with a 3rd party plugin though: https://github.com/paragonie/random_compatBut it is very hard to notice that this requires PHP 7 and spend quite a while wondering why it fails silently on PHP 5.x. There are no Exceptions thrown and no other warnings, even with
error_reporting(E_ALL);
The text was updated successfully, but these errors were encountered: