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

[PHP 7.4] Use of undefined constant PASSWORD_ARGON2ID - assumed 'PASSWORD_ARGON2ID' (this will throw an Error in a future version of PHP) #29815

Closed
HepplerDotNet opened this issue Sep 1, 2019 · 2 comments

Comments

@HepplerDotNet
Copy link

  • Laravel Version: 5.8.34
  • PHP Version: 7.4-beta4
  • Database Driver & Version: not involved

Description:

Hash::make('secret-password')
throws ErrorException in /vendor/laravel/framework/src/Illuminate/Hashing/ArgonHasher.php:83

Steps To Reproduce:

  1. Install laravel/laravel on PHP 7.4-beta4
  2. Set 'driver' => 'argon' in hashing.php
  3. Call Hash::make('something')
@crissi
Copy link
Contributor

crissi commented Sep 1, 2019

This algorithm is only available if PHP has been compiled with Argon2 support. See here: https://www.php.net/manual/en/function.password-hash.php

@HepplerDotNet
Copy link
Author

From repo maintainer:
php 7.3 use argon2 lib
php 7.4 use argon2 from libsodium
Had to install php74-php-sodium

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

No branches or pull requests

2 participants