Support the ongoing development of Laravel.io →
Authentication Security
Last updated 2 years ago.
0

you cannot convert your md5 hashes since, md5 cannot be de-crypted, you cannot read the user's passwords.

what you can do is:

  • maintain two columns in users table, old password (md5) and new password (bcrypt).
  • if a user does not have a new password setup let then login with the old password
  • ask them to change their password, and save that as the new password.
  • next time they login use the new password to login

aliraza170 liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

9bits 9bits Joined 9 Nov 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.