I have the following question / requirement.
My website has 2000 users, however the passwords are stored using Plain text (I know this is super bad). From reading various website blogs, i found that i need to use modern password-hashing and salting. I found php-login.net . They use modern salting / hashing.
I have downloaded the minimal login script which i will implement in my website. I have set up xampp to test locally. When i register a user is hashes the passwords and i can login.
My main requirement is that i want to hash all my current plain text passwords. php login using php password compatibility library.
password_compatibility_library
How can i hash all the plain passwords in database, because i am not going to hash 2000 1 by 1.
I assume i can write a script that will update all records in database using the password library.