i have a problem.
i am a rookie programmer, about a year ago i started learning php by myself to write an application.
like all rookies i made some big mistakes that i realized after the application was launched.
things like missing foreign keys un-encrypted cookie stored password....and stuff like that.
now before you judge me i got the application to work and i wasnt anticipating the application to well, and was expecting well below 500 users.
now a year and 25k users later i find my self in a bind, i have improved the original code, made all the necessary security improvements and what not and i am ready to launch a 2.0 version.
the problem is this the passwords are stored in mysql in plain text. after i launch the 2.0 version the passwords will be salted and sha256'd. the problem is how do i update the existing records so that i can slat and encrypt them.
i need to pull each password from mysql run it through a script and save them back to the database again. what would be the best way to do that?
thanks in advance.