I have a application called A which was developed in Laravel 5.4 and having more than 5000 users. I have to migrate the application to Laravel 5.6 without asking them to change the password.
Asked
Active
Viewed 33 times
0
-
I would think the hashes generated in 5.4 would be compatible with 5.6. – Devon Bessemer Sep 10 '18 at 12:36
-
That should work fine, just make sure you use the same cipher. – Jerodev Sep 10 '18 at 12:39
1 Answers
1
Hashes generated in 5.4 should have used bcrypt, if you did not alter the service provider or bind a different implementation.
Hashes in 5.6 support both bcrypt and argon but default to bcrypt if you did not change the driver in your config/hashing.php file.
Therefore, by default both use bcrypt and should be compatible.

Devon Bessemer
- 34,461
- 9
- 69
- 95
-
Wondering how it works when the APP_KEY is different for both the application. APP_KEY is also considered in registration right?[bcrypt() consider the app_key] – Albert Sep 10 '18 at 13:30
-
-
-
@AlbertRaj great. Mark this answer as accepted if it looks valid to you. – Devon Bessemer Sep 11 '18 at 11:09